lage 2.2.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lage.js
CHANGED
|
@@ -511,7 +511,7 @@ Object.defineProperty(Xh,"__esModule",{value:!0});const e=vh,t=bh,n=_h,r=$h.Cont
|
|
|
511
511
|
* license information.
|
|
512
512
|
*
|
|
513
513
|
* Azure Core LRO SDK for JavaScript - 1.0.5
|
|
514
|
-
*/Object.defineProperty(hg,"__esModule",{value:!0});var gg=is,yg=function(e){function t(n){var r=e.call(this,n)||this;return r.name="PollerStoppedError",Object.setPrototypeOf(r,t.prototype),r}return gg.__extends(t,e),t}(Error),vg=function(e){function t(n){var r=e.call(this,n)||this;return r.name="PollerCancelledError",Object.setPrototypeOf(r,t.prototype),r}return gg.__extends(t,e),t}(Error),bg=function(){function e(e){var t=this;this.stopped=!0,this.pollProgressCallbacks=[],this.operation=e,this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n})),this.promise.catch((function(){}))}return e.prototype.startPolling=function(){return gg.__awaiter(this,void 0,void 0,(function(){return gg.__generator(this,(function(e){switch(e.label){case 0:this.stopped&&(this.stopped=!1),e.label=1;case 1:return this.isStopped()||this.isDone()?[3,4]:[4,this.poll()];case 2:return e.sent(),[4,this.delay()];case 3:return e.sent(),[3,1];case 4:return[2]}}))}))},e.prototype.pollOnce=function(e){return void 0===e&&(e={}),gg.__awaiter(this,void 0,void 0,(function(){var t,n;return gg.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),this.isDone()?[3,2]:(t=this,[4,this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})]);case 1:t.operation=r.sent(),this.isDone()&&this.resolve&&this.resolve(this.operation.state.result),r.label=2;case 2:return[3,4];case 3:throw n=r.sent(),this.operation.state.error=n,this.reject&&this.reject(n),n;case 4:return[2]}}))}))},e.prototype.fireProgress=function(e){for(var t=0,n=this.pollProgressCallbacks;t<n.length;t++){(0,n[t])(e)}},e.prototype.cancelOnce=function(e){return void 0===e&&(e={}),gg.__awaiter(this,void 0,void 0,(function(){var t;return gg.__generator(this,(function(n){switch(n.label){case 0:return t=this,[4,this.operation.cancel(e)];case 1:return t.operation=n.sent(),this.reject&&this.reject(new vg("Poller cancelled")),[2]}}))}))},e.prototype.poll=function(e){var t=this;if(void 0===e&&(e={}),!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);var n=function(){t.pollOncePromise=void 0};this.pollOncePromise.then(n,n).catch(this.reject)}return this.pollOncePromise},e.prototype.pollUntilDone=function(){return gg.__awaiter(this,void 0,void 0,(function(){return gg.__generator(this,(function(e){return this.stopped&&this.startPolling().catch(this.reject),[2,this.promise]}))}))},e.prototype.onProgress=function(e){var t=this;return this.pollProgressCallbacks.push(e),function(){t.pollProgressCallbacks=t.pollProgressCallbacks.filter((function(t){return t!==e}))}},e.prototype.isDone=function(){var e=this.operation.state;return Boolean(e.isCompleted||e.isCancelled||e.error)},e.prototype.stopPolling=function(){this.stopped||(this.stopped=!0,this.reject&&this.reject(new yg("This poller is already stopped")))},e.prototype.isStopped=function(){return this.stopped},e.prototype.cancelOperation=function(e){if(void 0===e&&(e={}),this.stopped||(this.stopped=!0),this.cancelPromise){if(e.abortSignal)throw new Error("A cancel request is currently pending")}else this.cancelPromise=this.cancelOnce(e);return this.cancelPromise},e.prototype.getOperationState=function(){return this.operation.state},e.prototype.getResult=function(){return this.operation.state.result},e.prototype.toString=function(){return this.operation.toString()},e}();hg.Poller=bg,hg.PollerCancelledError=vg,hg.PollerStoppedError=yg;var wg={};Object.defineProperty(wg,"__esModule",{value:!0});var _g=is;function xg(e,t={}){return _g.__asyncGenerator(this,arguments,(function*(){const{pageLink:n,maxPageSize:r}=t;let a=yield _g.__await(e.getPage(null!=n?n:e.firstPageLink,r));if(!a)return yield _g.__await(void 0);for(yield yield _g.__await(a.page);a.nextPageLink;){if(a=yield _g.__await(e.getPage(a.nextPageLink,r)),!a)return yield _g.__await(void 0);yield yield _g.__await(a.page)}}))}wg.getPagedAsyncIterator=function(e){var t;const n=function(e){return _g.__asyncGenerator(this,arguments,(function*(){var t,n,r,a;const i=xg(e),o=yield _g.__await(i.next());if(Array.isArray(o.value)){yield _g.__await(yield*_g.__asyncDelegator(_g.__asyncValues(o.value)));try{for(var s,u=_g.__asyncValues(i);!(s=yield _g.__await(u.next())).done;){const e=s.value;yield _g.__await(yield*_g.__asyncDelegator(_g.__asyncValues(e)))}}catch(e){r={error:e}}finally{try{s&&!s.done&&(a=u.return)&&(yield _g.__await(a.call(u)))}finally{if(r)throw r.error}}}else{const{toElements:r}=e;if(r){yield _g.__await(yield*_g.__asyncDelegator(_g.__asyncValues(r(o.value))));try{for(var l,c=_g.__asyncValues(i);!(l=yield _g.__await(c.next())).done;){const e=l.value;yield _g.__await(yield*_g.__asyncDelegator(_g.__asyncValues(r(e))))}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=c.return)&&(yield _g.__await(n.call(c)))}finally{if(t)throw t.error}}}else yield yield _g.__await(o.value),yield _g.__await(yield*_g.__asyncDelegator(_g.__asyncValues(i)))}}))}(e);return{next:()=>n.next(),[Symbol.asyncIterator](){return this},byPage:null!==(t=null==e?void 0:e.byPage)&&void 0!==t?t:t=>{const{continuationToken:n,maxPageSize:r}=null!=t?t:{};return xg(e,{pageLink:n,maxPageSize:r})}}},function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Qo,n=gh,r=yh,a=Oc,i=Tl,o=M.default,s=z.default,u=R.default,l=L.default,c=q.default,p=P.default,d=Jh,f=hg,m={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{xmlName:"Start",required:!0,serializedName:"Start",type:{name:"String"}},expiresOn:{xmlName:"Expiry",required:!0,serializedName:"Expiry",type:{name:"String"}}}}},h={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{xmlName:"SignedOid",required:!0,serializedName:"SignedOid",type:{name:"String"}},signedTenantId:{xmlName:"SignedTid",required:!0,serializedName:"SignedTid",type:{name:"String"}},signedStartsOn:{xmlName:"SignedStart",required:!0,serializedName:"SignedStart",type:{name:"String"}},signedExpiresOn:{xmlName:"SignedExpiry",required:!0,serializedName:"SignedExpiry",type:{name:"String"}},signedService:{xmlName:"SignedService",required:!0,serializedName:"SignedService",type:{name:"String"}},signedVersion:{xmlName:"SignedVersion",required:!0,serializedName:"SignedVersion",type:{name:"String"}},value:{xmlName:"Value",required:!0,serializedName:"Value",type:{name:"String"}}}}},g={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{xmlName:"Message",serializedName:"Message",type:{name:"String"}}}}},y={serializedName:"DataLakeStorageError",type:{name:"Composite",className:"DataLakeStorageError",modelProperties:{error:{xmlName:"error",serializedName:"error",type:{name:"Composite",className:"DataLakeStorageErrorError"}}}}},v={xmlName:"EnumerationResults",serializedName:"ListBlobsFlatSegmentResponse",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{xmlIsAttribute:!0,xmlName:"ServiceEndpoint",required:!0,serializedName:"ServiceEndpoint",type:{name:"String"}},containerName:{xmlIsAttribute:!0,xmlName:"ContainerName",required:!0,serializedName:"ContainerName",type:{name:"String"}},prefix:{xmlName:"Prefix",serializedName:"Prefix",type:{name:"String"}},marker:{xmlName:"Marker",serializedName:"Marker",type:{name:"String"}},maxPageSize:{xmlName:"MaxResults",serializedName:"MaxResults",type:{name:"Number"}},segment:{xmlName:"Blobs",required:!0,serializedName:"Segment",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{xmlName:"NextMarker",serializedName:"NextMarker",type:{name:"String"}}}}},b={xmlName:"EnumerationResults",serializedName:"ListBlobsHierarchySegmentResponse",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{xmlIsAttribute:!0,xmlName:"ServiceEndpoint",required:!0,serializedName:"ServiceEndpoint",type:{name:"String"}},containerName:{xmlIsAttribute:!0,xmlName:"ContainerName",required:!0,serializedName:"ContainerName",type:{name:"String"}},prefix:{xmlName:"Prefix",serializedName:"Prefix",type:{name:"String"}},marker:{xmlName:"Marker",serializedName:"Marker",type:{name:"String"}},maxPageSize:{xmlName:"MaxResults",serializedName:"MaxResults",type:{name:"Number"}},delimiter:{xmlName:"Delimiter",serializedName:"Delimiter",type:{name:"String"}},segment:{xmlName:"Blobs",required:!0,serializedName:"Segment",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{xmlName:"NextMarker",serializedName:"NextMarker",type:{name:"String"}}}}},w={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{xmlIsWrapped:!0,xmlName:"CommittedBlocks",xmlElementName:"Block",serializedName:"CommittedBlocks",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{xmlIsWrapped:!0,xmlName:"UncommittedBlocks",xmlElementName:"Block",serializedName:"UncommittedBlocks",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}},_={xmlName:"BlockList",serializedName:"BlockLookupList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{xmlName:"Committed",xmlElementName:"Committed",serializedName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{xmlName:"Uncommitted",xmlElementName:"Uncommitted",serializedName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{xmlName:"Latest",xmlElementName:"Latest",serializedName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},x={xmlName:"EnumerationResults",serializedName:"ListContainersSegmentResponse",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{xmlIsAttribute:!0,xmlName:"ServiceEndpoint",required:!0,serializedName:"ServiceEndpoint",type:{name:"String"}},prefix:{xmlName:"Prefix",serializedName:"Prefix",type:{name:"String"}},marker:{xmlName:"Marker",serializedName:"Marker",type:{name:"String"}},maxPageSize:{xmlName:"MaxResults",serializedName:"MaxResults",type:{name:"Number"}},containerItems:{xmlIsWrapped:!0,xmlName:"Containers",xmlElementName:"Container",required:!0,serializedName:"ContainerItems",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{xmlName:"NextMarker",serializedName:"NextMarker",type:{name:"String"}}}}},k={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{xmlName:"PageRange",xmlElementName:"PageRange",serializedName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{xmlName:"ClearRange",xmlElementName:"ClearRange",serializedName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}}}}},S={xmlName:"StorageServiceProperties",serializedName:"BlobServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{xmlName:"Logging",serializedName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{xmlName:"HourMetrics",serializedName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{xmlName:"MinuteMetrics",serializedName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{xmlIsWrapped:!0,xmlName:"Cors",xmlElementName:"CorsRule",serializedName:"Cors",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{xmlName:"DefaultServiceVersion",serializedName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{xmlName:"DeleteRetentionPolicy",serializedName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{xmlName:"StaticWebsite",serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}},E={xmlName:"StorageServiceStats",serializedName:"BlobServiceStatistics",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{xmlName:"GeoReplication",serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}},C={serializedName:"service-setproperties-headers",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},D={serializedName:"service-getproperties-headers",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},O={serializedName:"service-getstatistics-headers",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},N={serializedName:"service-listcontainerssegment-headers",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},j={serializedName:"service-getuserdelegationkey-headers",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},T={serializedName:"service-getaccountinfo-headers",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2"]}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},A={serializedName:"service-submitbatch-headers",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},I={serializedName:"container-create-headers",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},F={serializedName:"container-getproperties-headers",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",type:{name:"String"}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},B={serializedName:"container-delete-headers",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},U={serializedName:"container-setmetadata-headers",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},$={serializedName:"container-getaccesspolicy-headers",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",type:{name:"String"}},etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},V={serializedName:"container-setaccesspolicy-headers",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},H={serializedName:"container-acquirelease-headers",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},W={serializedName:"container-releaselease-headers",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},G={serializedName:"container-renewlease-headers",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},K={serializedName:"container-breaklease-headers",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Y={serializedName:"container-changelease-headers",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Q={serializedName:"container-listblobflatsegment-headers",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},X={serializedName:"container-listblobhierarchysegment-headers",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},J={serializedName:"container-getaccountinfo-headers",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2"]}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Z={serializedName:"blob-download-headers",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},contentLength:{serializedName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},contentCrc64:{serializedName:"x-ms-content-crc64",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},ee={serializedName:"blob-getproperties-headers",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},blobType:{serializedName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},te={serializedName:"blob-delete-headers",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},ne={serializedName:"blob-setaccesscontrol-headers",type:{name:"Composite",className:"BlobSetAccessControlHeaders",modelProperties:{date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}}}}},re={serializedName:"blob-getaccesscontrol-headers",type:{name:"Composite",className:"BlobGetAccessControlHeaders",modelProperties:{date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},xMsOwner:{serializedName:"x-ms-owner",type:{name:"String"}},xMsGroup:{serializedName:"x-ms-group",type:{name:"String"}},xMsPermissions:{serializedName:"x-ms-permissions",type:{name:"String"}},xMsAcl:{serializedName:"x-ms-acl",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}}}}},ae={serializedName:"blob-rename-headers",type:{name:"Composite",className:"BlobRenameHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},contentLength:{serializedName:"content-length",type:{name:"Number"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}}}}},ie={serializedName:"pageblob-create-headers",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},oe={serializedName:"appendblob-create-headers",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},se={serializedName:"blockblob-upload-headers",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},ue={serializedName:"blob-undelete-headers",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},le={serializedName:"blob-sethttpheaders-headers",type:{name:"Composite",className:"BlobSetHTTPHeadersHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},ce={serializedName:"blob-setmetadata-headers",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},pe={serializedName:"blob-acquirelease-headers",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},de={serializedName:"blob-releaselease-headers",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},fe={serializedName:"blob-renewlease-headers",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},me={serializedName:"blob-changelease-headers",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},he={serializedName:"blob-breaklease-headers",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},ge={serializedName:"blob-createsnapshot-headers",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},ye={serializedName:"blob-startcopyfromurl-headers",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},ve={serializedName:"blob-copyfromurl-headers",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["success"]}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},be={serializedName:"blob-abortcopyfromurl-headers",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},we={serializedName:"blob-settier-headers",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},_e={serializedName:"blob-getaccountinfo-headers",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2"]}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},xe={serializedName:"blockblob-stageblock-headers",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},ke={serializedName:"blockblob-stageblockfromurl-headers",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Se={serializedName:"blockblob-commitblocklist-headers",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Ee={serializedName:"blockblob-getblocklist-headers",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Ce={serializedName:"pageblob-uploadpages-headers",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},De={serializedName:"pageblob-clearpages-headers",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Oe={serializedName:"pageblob-uploadpagesfromurl-headers",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Ne={serializedName:"pageblob-getpageranges-headers",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},je={serializedName:"pageblob-getpagerangesdiff-headers",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Pe={serializedName:"pageblob-resize-headers",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Te={serializedName:"pageblob-updatesequencenumber-headers",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Ae={serializedName:"pageblob-copyincremental-headers",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Re={serializedName:"appendblob-appendblock-headers",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Ie={serializedName:"appendblob-appendblockfromurl-headers",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Me=Object.freeze({__proto__:null,BlobServiceProperties:S,BlobServiceStatistics:E,ContainerItem:{xmlName:"Container",serializedName:"ContainerItem",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{xmlName:"Name",required:!0,serializedName:"Name",type:{name:"String"}},properties:{xmlName:"Properties",required:!0,serializedName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{xmlName:"Metadata",serializedName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},ContainerProperties:{serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{xmlName:"Last-Modified",required:!0,serializedName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{xmlName:"Etag",required:!0,serializedName:"Etag",type:{name:"String"}},leaseStatus:{xmlName:"LeaseStatus",serializedName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{xmlName:"LeaseState",serializedName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{xmlName:"LeaseDuration",serializedName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{xmlName:"PublicAccess",serializedName:"PublicAccess",type:{name:"String"}},hasImmutabilityPolicy:{xmlName:"HasImmutabilityPolicy",serializedName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{xmlName:"HasLegalHold",serializedName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{xmlName:"DefaultEncryptionScope",serializedName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{xmlName:"DenyEncryptionScopeOverride",serializedName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}}}}},CorsRule:{serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{xmlName:"AllowedOrigins",required:!0,serializedName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{xmlName:"AllowedMethods",required:!0,serializedName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{xmlName:"AllowedHeaders",required:!0,serializedName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{xmlName:"ExposedHeaders",required:!0,serializedName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{xmlName:"MaxAgeInSeconds",required:!0,serializedName:"MaxAgeInSeconds",constraints:{InclusiveMinimum:0},type:{name:"Number"}}}}},GeoReplication:{serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{xmlName:"Status",required:!0,serializedName:"Status",type:{name:"String"}},lastSyncOn:{xmlName:"LastSyncTime",required:!0,serializedName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}},KeyInfo:m,ListContainersSegmentResponse:x,Logging:{serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{xmlName:"Version",required:!0,serializedName:"Version",type:{name:"String"}},deleteProperty:{xmlName:"Delete",required:!0,serializedName:"Delete",type:{name:"Boolean"}},read:{xmlName:"Read",required:!0,serializedName:"Read",type:{name:"Boolean"}},write:{xmlName:"Write",required:!0,serializedName:"Write",type:{name:"Boolean"}},retentionPolicy:{xmlName:"RetentionPolicy",required:!0,serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}},Metrics:{serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{xmlName:"Version",serializedName:"Version",type:{name:"String"}},enabled:{xmlName:"Enabled",required:!0,serializedName:"Enabled",type:{name:"Boolean"}},includeAPIs:{xmlName:"IncludeAPIs",serializedName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{xmlName:"RetentionPolicy",serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}},RetentionPolicy:{serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{xmlName:"Enabled",required:!0,serializedName:"Enabled",type:{name:"Boolean"}},days:{xmlName:"Days",serializedName:"Days",constraints:{InclusiveMinimum:1},type:{name:"Number"}}}}},ServiceGetAccountInfoHeaders:T,ServiceGetPropertiesHeaders:D,ServiceGetStatisticsHeaders:O,ServiceGetUserDelegationKeyHeaders:j,ServiceListContainersSegmentHeaders:N,ServiceSetPropertiesHeaders:C,ServiceSubmitBatchHeaders:A,StaticWebsite:{serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{xmlName:"Enabled",required:!0,serializedName:"Enabled",type:{name:"Boolean"}},indexDocument:{xmlName:"IndexDocument",serializedName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{xmlName:"ErrorDocument404Path",serializedName:"ErrorDocument404Path",type:{name:"String"}}}}},StorageError:g,UserDelegationKey:h}),Le={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",type:{name:"String"}}},Fe={parameterPath:"action",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-lease-action",defaultValue:"acquire",type:{name:"String"}}},ze={parameterPath:"action",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-lease-action",defaultValue:"release",type:{name:"String"}}},Be={parameterPath:"action",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-lease-action",defaultValue:"renew",type:{name:"String"}}},Ue={parameterPath:"action",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-lease-action",defaultValue:"break",type:{name:"String"}}},qe={parameterPath:"action",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-lease-action",defaultValue:"change",type:{name:"String"}}},$e={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}},Ve={parameterPath:["options","blobHTTPHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",type:{name:"String"}}},He={parameterPath:["options","blobHTTPHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",type:{name:"String"}}},We={parameterPath:["options","blobHTTPHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",type:{name:"String"}}},Ge={parameterPath:["options","blobHTTPHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",type:{name:"String"}}},Ke={parameterPath:"blobContentLength",mapper:{required:!0,serializedName:"x-ms-blob-content-length",type:{name:"Number"}}},Ye={parameterPath:["options","blobHTTPHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}},Qe={parameterPath:["options","blobHTTPHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",type:{name:"String"}}},Xe={parameterPath:["options","blobSequenceNumber"],mapper:{serializedName:"x-ms-blob-sequence-number",defaultValue:0,type:{name:"Number"}}},Je={parameterPath:"blockId",mapper:{required:!0,serializedName:"blockid",type:{name:"String"}}},Ze={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",type:{name:"Number"}}},et={parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"properties",type:{name:"String"}}},tt={parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"page",type:{name:"String"}}},nt={parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"pagelist",type:{name:"String"}}},rt={parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"appendblock",type:{name:"String"}}},at={parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"block",type:{name:"String"}}},it={parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"blocklist",type:{name:"String"}}},ot={parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"list",type:{name:"String"}}},st={parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"metadata",type:{name:"String"}}},ut={parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"acl",type:{name:"String"}}},lt={parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"lease",type:{name:"String"}}},ct={parameterPath:"contentLength",mapper:{required:!0,serializedName:"Content-Length",type:{name:"Number"}}},pt={parameterPath:"copySource",mapper:{required:!0,serializedName:"x-ms-copy-source",type:{name:"String"}}},dt={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",type:{name:"Number"}}},ft={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",type:{name:"Enum",allowedValues:["AES256"]}}},mt={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",type:{name:"String"}}},ht={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}}},gt={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",type:{name:"String"}}},yt={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",type:{name:"String"}}},vt={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}},bt={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",type:{name:"String"}}},wt={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}},_t={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}},xt={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",type:{name:"Number"}}},kt={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}},St={parameterPath:["options","include"],mapper:{serializedName:"include",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs"]}}}},collectionFormat:t.QueryCollectionFormat.Csv},Et={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",type:{name:"String"}}},Ct={parameterPath:"leaseId",mapper:{required:!0,serializedName:"x-ms-lease-id",type:{name:"String"}}},Dt={parameterPath:["options","marker"],mapper:{serializedName:"marker",type:{name:"String"}}},Ot={parameterPath:["options","maxPageSize"],mapper:{serializedName:"maxresults",constraints:{InclusiveMinimum:1},type:{name:"Number"}}},Nt={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}},jt={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"}},Pt={parameterPath:"pageWrite",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-page-write",defaultValue:"update",type:{name:"String"}}},Tt={parameterPath:["options","posixPermissions"],mapper:{serializedName:"x-ms-permissions",type:{name:"String"}}},At={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",type:{name:"String"}}},Rt={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",type:{name:"String"}}},It={parameterPath:"proposedLeaseId",mapper:{required:!0,serializedName:"x-ms-proposed-lease-id",type:{name:"String"}}},Mt={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",type:{name:"String"}}},Lt={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",type:{name:"String"}}},Ft={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",type:{name:"String"}}},zt={parameterPath:"restype",mapper:{required:!0,isConstant:!0,serializedName:"restype",defaultValue:"service",type:{name:"String"}}},Bt={parameterPath:"restype",mapper:{required:!0,isConstant:!0,serializedName:"restype",defaultValue:"account",type:{name:"String"}}},Ut={parameterPath:"restype",mapper:{required:!0,isConstant:!0,serializedName:"restype",defaultValue:"container",type:{name:"String"}}},qt={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",type:{name:"String"}}},$t={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}},Vt={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",type:{name:"ByteArray"}}},Ht={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",type:{name:"String"}}},Wt={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}},Gt={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",type:{name:"String"}}},Kt={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},Yt={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",type:{name:"String"}}},Qt={parameterPath:"sourceUrl",mapper:{required:!0,serializedName:"x-ms-copy-source",type:{name:"String"}}},Xt={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",type:{name:"String"}}},Jt={parameterPath:["options","timeoutInSeconds"],mapper:{serializedName:"timeout",constraints:{InclusiveMinimum:0},type:{name:"Number"}}},Zt={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",type:{name:"ByteArray"}}},en={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",type:{name:"ByteArray"}}},tn={parameterPath:"url",mapper:{required:!0,serializedName:"url",defaultValue:"",type:{name:"String"}},skipEncoding:!0},nn={parameterPath:"version",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-version",defaultValue:"2019-07-07",type:{name:"String"}}},rn=function(){function e(e){this.client=e}return e.prototype.setProperties=function(e,t,n){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},on,n)},e.prototype.getProperties=function(e,t){return this.client.sendOperationRequest({options:e},sn,t)},e.prototype.getStatistics=function(e,t){return this.client.sendOperationRequest({options:e},un,t)},e.prototype.listContainersSegment=function(e,t){return this.client.sendOperationRequest({options:e},ln,t)},e.prototype.getUserDelegationKey=function(e,t,n){return this.client.sendOperationRequest({keyInfo:e,options:t},cn,n)},e.prototype.getAccountInfo=function(e,t){return this.client.sendOperationRequest({options:e},pn,t)},e.prototype.submitBatch=function(e,t,n,r,a){return this.client.sendOperationRequest({body:e,contentLength:t,multipartContentType:n,options:r},dn,a)},e}(),an=new t.Serializer(Me,!0),on={httpMethod:"PUT",urlParameters:[tn],queryParameters:[Jt,zt,et],headerParameters:[nn,Ft],requestBody:{parameterPath:"blobServiceProperties",mapper:n.__assign(n.__assign({},S),{required:!0})},contentType:"application/xml; charset=utf-8",responses:{202:{headersMapper:C},default:{bodyMapper:g,headersMapper:C}},isXML:!0,serializer:an},sn={httpMethod:"GET",urlParameters:[tn],queryParameters:[Jt,zt,et],headerParameters:[nn,Ft],responses:{200:{bodyMapper:S,headersMapper:D},default:{bodyMapper:g,headersMapper:D}},isXML:!0,serializer:an},un={httpMethod:"GET",urlParameters:[tn],queryParameters:[Jt,zt,{parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"stats",type:{name:"String"}}}],headerParameters:[nn,Ft],responses:{200:{bodyMapper:E,headersMapper:O},default:{bodyMapper:g,headersMapper:O}},isXML:!0,serializer:an},ln={httpMethod:"GET",urlParameters:[tn],queryParameters:[At,Dt,Ot,{parameterPath:["options","include"],mapper:{serializedName:"include",type:{name:"Enum",allowedValues:["metadata"]}}},Jt,ot],headerParameters:[nn,Ft],responses:{200:{bodyMapper:x,headersMapper:N},default:{bodyMapper:g,headersMapper:N}},isXML:!0,serializer:an},cn={httpMethod:"POST",urlParameters:[tn],queryParameters:[Jt,zt,{parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"userdelegationkey",type:{name:"String"}}}],headerParameters:[nn,Ft],requestBody:{parameterPath:"keyInfo",mapper:n.__assign(n.__assign({},m),{required:!0})},contentType:"application/xml; charset=utf-8",responses:{200:{bodyMapper:h,headersMapper:j},default:{bodyMapper:g,headersMapper:j}},isXML:!0,serializer:an},pn={httpMethod:"GET",urlParameters:[tn],queryParameters:[Bt,et],headerParameters:[nn],responses:{200:{headersMapper:T},default:{bodyMapper:g,headersMapper:T}},isXML:!0,serializer:an},dn={httpMethod:"POST",urlParameters:[tn],queryParameters:[Jt,{parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"batch",type:{name:"String"}}}],headerParameters:[ct,{parameterPath:"multipartContentType",mapper:{required:!0,serializedName:"Content-Type",type:{name:"String"}}},nn,Ft],requestBody:{parameterPath:"body",mapper:{required:!0,serializedName:"body",type:{name:"Stream"}}},contentType:"application/xml; charset=utf-8",responses:{202:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Stream"}},headersMapper:A},default:{bodyMapper:g,headersMapper:A}},isXML:!0,serializer:an},fn=Object.freeze({__proto__:null,AccessPolicy:{serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{xmlName:"Start",serializedName:"Start",type:{name:"String"}},expiresOn:{xmlName:"Expiry",serializedName:"Expiry",type:{name:"String"}},permissions:{xmlName:"Permission",serializedName:"Permission",type:{name:"String"}}}}},BlobFlatListSegment:{xmlName:"Blobs",serializedName:"BlobFlatListSegment",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{xmlName:"BlobItems",xmlElementName:"Blob",required:!0,serializedName:"BlobItems",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItem"}}}}}}},BlobHierarchyListSegment:{xmlName:"Blobs",serializedName:"BlobHierarchyListSegment",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",serializedName:"BlobPrefixes",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{xmlName:"BlobItems",xmlElementName:"Blob",required:!0,serializedName:"BlobItems",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItem"}}}}}}},BlobItem:{xmlName:"Blob",serializedName:"BlobItem",type:{name:"Composite",className:"BlobItem",modelProperties:{name:{xmlName:"Name",required:!0,serializedName:"Name",type:{name:"String"}},deleted:{xmlName:"Deleted",required:!0,serializedName:"Deleted",type:{name:"Boolean"}},snapshot:{xmlName:"Snapshot",required:!0,serializedName:"Snapshot",type:{name:"String"}},properties:{xmlName:"Properties",required:!0,serializedName:"Properties",type:{name:"Composite",className:"BlobProperties"}},metadata:{xmlName:"Metadata",serializedName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},BlobPrefix:{serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{xmlName:"Name",required:!0,serializedName:"Name",type:{name:"String"}}}}},BlobProperties:{xmlName:"Properties",serializedName:"BlobProperties",type:{name:"Composite",className:"BlobProperties",modelProperties:{createdOn:{xmlName:"Creation-Time",serializedName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{xmlName:"Last-Modified",required:!0,serializedName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{xmlName:"Etag",required:!0,serializedName:"Etag",type:{name:"String"}},contentLength:{xmlName:"Content-Length",serializedName:"Content-Length",type:{name:"Number"}},contentType:{xmlName:"Content-Type",serializedName:"Content-Type",type:{name:"String"}},contentEncoding:{xmlName:"Content-Encoding",serializedName:"Content-Encoding",type:{name:"String"}},contentLanguage:{xmlName:"Content-Language",serializedName:"Content-Language",type:{name:"String"}},contentMD5:{xmlName:"Content-MD5",serializedName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{xmlName:"Content-Disposition",serializedName:"Content-Disposition",type:{name:"String"}},cacheControl:{xmlName:"Cache-Control",serializedName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{xmlName:"x-ms-blob-sequence-number",serializedName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{xmlName:"BlobType",serializedName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{xmlName:"LeaseStatus",serializedName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{xmlName:"LeaseState",serializedName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{xmlName:"LeaseDuration",serializedName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{xmlName:"CopyId",serializedName:"CopyId",type:{name:"String"}},copyStatus:{xmlName:"CopyStatus",serializedName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{xmlName:"CopySource",serializedName:"CopySource",type:{name:"String"}},copyProgress:{xmlName:"CopyProgress",serializedName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{xmlName:"CopyCompletionTime",serializedName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{xmlName:"CopyStatusDescription",serializedName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{xmlName:"ServerEncrypted",serializedName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{xmlName:"IncrementalCopy",serializedName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{xmlName:"DestinationSnapshot",serializedName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{xmlName:"DeletedTime",serializedName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{xmlName:"RemainingRetentionDays",serializedName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{xmlName:"AccessTier",serializedName:"AccessTier",type:{name:"String"}},accessTierInferred:{xmlName:"AccessTierInferred",serializedName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{xmlName:"ArchiveStatus",serializedName:"ArchiveStatus",type:{name:"String"}},customerProvidedKeySha256:{xmlName:"CustomerProvidedKeySha256",serializedName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{xmlName:"EncryptionScope",serializedName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{xmlName:"AccessTierChangeTime",serializedName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}}}}},ContainerAcquireLeaseHeaders:H,ContainerBreakLeaseHeaders:K,ContainerChangeLeaseHeaders:Y,ContainerCreateHeaders:I,ContainerDeleteHeaders:B,ContainerGetAccessPolicyHeaders:$,ContainerGetAccountInfoHeaders:J,ContainerGetPropertiesHeaders:F,ContainerListBlobFlatSegmentHeaders:Q,ContainerListBlobHierarchySegmentHeaders:X,ContainerReleaseLeaseHeaders:W,ContainerRenewLeaseHeaders:G,ContainerSetAccessPolicyHeaders:V,ContainerSetMetadataHeaders:U,ListBlobsFlatSegmentResponse:v,ListBlobsHierarchySegmentResponse:b,SignedIdentifier:{serializedName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{xmlName:"Id",required:!0,serializedName:"Id",type:{name:"String"}},accessPolicy:{xmlName:"AccessPolicy",required:!0,serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}},StorageError:g}),mn=function(){function e(e){this.client=e}return e.prototype.create=function(e,t){return this.client.sendOperationRequest({options:e},gn,t)},e.prototype.getProperties=function(e,t){return this.client.sendOperationRequest({options:e},yn,t)},e.prototype.deleteMethod=function(e,t){return this.client.sendOperationRequest({options:e},vn,t)},e.prototype.setMetadata=function(e,t){return this.client.sendOperationRequest({options:e},bn,t)},e.prototype.getAccessPolicy=function(e,t){return this.client.sendOperationRequest({options:e},wn,t)},e.prototype.setAccessPolicy=function(e,t){return this.client.sendOperationRequest({options:e},_n,t)},e.prototype.acquireLease=function(e,t){return this.client.sendOperationRequest({options:e},xn,t)},e.prototype.releaseLease=function(e,t,n){return this.client.sendOperationRequest({leaseId:e,options:t},kn,n)},e.prototype.renewLease=function(e,t,n){return this.client.sendOperationRequest({leaseId:e,options:t},Sn,n)},e.prototype.breakLease=function(e,t){return this.client.sendOperationRequest({options:e},En,t)},e.prototype.changeLease=function(e,t,n,r){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},Cn,r)},e.prototype.listBlobFlatSegment=function(e,t){return this.client.sendOperationRequest({options:e},Dn,t)},e.prototype.listBlobHierarchySegment=function(e,t,n){return this.client.sendOperationRequest({delimiter:e,options:t},On,n)},e.prototype.getAccountInfo=function(e,t){return this.client.sendOperationRequest({options:e},Nn,t)},e}(),hn=new t.Serializer(fn,!0),gn={httpMethod:"PUT",path:"{containerName}",urlParameters:[tn],queryParameters:[Jt,Ut],headerParameters:[jt,Le,nn,Ft,{parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",type:{name:"String"}}},{parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}}],responses:{201:{headersMapper:I},default:{bodyMapper:g,headersMapper:I}},isXML:!0,serializer:hn},yn={httpMethod:"GET",path:"{containerName}",urlParameters:[tn],queryParameters:[Jt,Ut],headerParameters:[nn,Ft,Et],responses:{200:{headersMapper:F},default:{bodyMapper:g,headersMapper:F}},isXML:!0,serializer:hn},vn={httpMethod:"DELETE",path:"{containerName}",urlParameters:[tn],queryParameters:[Jt,Ut],headerParameters:[nn,Ft,Et,vt,kt],responses:{202:{headersMapper:B},default:{bodyMapper:g,headersMapper:B}},isXML:!0,serializer:hn},bn={httpMethod:"PUT",path:"{containerName}",urlParameters:[tn],queryParameters:[Jt,Ut,st],headerParameters:[jt,nn,Ft,Et,vt],responses:{200:{headersMapper:U},default:{bodyMapper:g,headersMapper:U}},isXML:!0,serializer:hn},wn={httpMethod:"GET",path:"{containerName}",urlParameters:[tn],queryParameters:[Jt,Ut,ut],headerParameters:[nn,Ft,Et],responses:{200:{bodyMapper:{xmlElementName:"SignedIdentifier",serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}},headersMapper:$},default:{bodyMapper:g,headersMapper:$}},isXML:!0,serializer:hn},_n={httpMethod:"PUT",path:"{containerName}",urlParameters:[tn],queryParameters:[Jt,Ut,ut],headerParameters:[Le,nn,Ft,Et,vt,kt],requestBody:{parameterPath:["options","containerAcl"],mapper:{xmlName:"SignedIdentifiers",xmlElementName:"SignedIdentifier",serializedName:"containerAcl",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}},contentType:"application/xml; charset=utf-8",responses:{200:{headersMapper:V},default:{bodyMapper:g,headersMapper:V}},isXML:!0,serializer:hn},xn={httpMethod:"PUT",path:"{containerName}",urlParameters:[tn],queryParameters:[Jt,lt,Ut],headerParameters:[dt,Rt,nn,Ft,Fe,vt,kt],responses:{201:{headersMapper:H},default:{bodyMapper:g,headersMapper:H}},isXML:!0,serializer:hn},kn={httpMethod:"PUT",path:"{containerName}",urlParameters:[tn],queryParameters:[Jt,lt,Ut],headerParameters:[Ct,nn,Ft,ze,vt,kt],responses:{200:{headersMapper:W},default:{bodyMapper:g,headersMapper:W}},isXML:!0,serializer:hn},Sn={httpMethod:"PUT",path:"{containerName}",urlParameters:[tn],queryParameters:[Jt,lt,Ut],headerParameters:[Ct,nn,Ft,Be,vt,kt],responses:{200:{headersMapper:G},default:{bodyMapper:g,headersMapper:G}},isXML:!0,serializer:hn},En={httpMethod:"PUT",path:"{containerName}",urlParameters:[tn],queryParameters:[Jt,lt,Ut],headerParameters:[Ze,nn,Ft,Ue,vt,kt],responses:{202:{headersMapper:K},default:{bodyMapper:g,headersMapper:K}},isXML:!0,serializer:hn},Cn={httpMethod:"PUT",path:"{containerName}",urlParameters:[tn],queryParameters:[Jt,lt,Ut],headerParameters:[Ct,It,nn,Ft,qe,vt,kt],responses:{200:{headersMapper:Y},default:{bodyMapper:g,headersMapper:Y}},isXML:!0,serializer:hn},Dn={httpMethod:"GET",path:"{containerName}",urlParameters:[tn],queryParameters:[At,Dt,Ot,St,Jt,Ut,ot],headerParameters:[nn,Ft],responses:{200:{bodyMapper:v,headersMapper:Q},default:{bodyMapper:g,headersMapper:Q}},isXML:!0,serializer:hn},On={httpMethod:"GET",path:"{containerName}",urlParameters:[tn],queryParameters:[At,{parameterPath:"delimiter",mapper:{required:!0,serializedName:"delimiter",type:{name:"String"}}},Dt,Ot,St,Jt,Ut,ot],headerParameters:[nn,Ft],responses:{200:{bodyMapper:b,headersMapper:X},default:{bodyMapper:g,headersMapper:X}},isXML:!0,serializer:hn},Nn={httpMethod:"GET",path:"{containerName}",urlParameters:[tn],queryParameters:[Bt,et],headerParameters:[nn],responses:{200:{headersMapper:J},default:{bodyMapper:g,headersMapper:J}},isXML:!0,serializer:hn},jn=Object.freeze({__proto__:null,BlobAbortCopyFromURLHeaders:be,BlobAcquireLeaseHeaders:pe,BlobBreakLeaseHeaders:he,BlobChangeLeaseHeaders:me,BlobCopyFromURLHeaders:ve,BlobCreateSnapshotHeaders:ge,BlobDeleteHeaders:te,BlobDownloadHeaders:Z,BlobGetAccessControlHeaders:re,BlobGetAccountInfoHeaders:_e,BlobGetPropertiesHeaders:ee,BlobReleaseLeaseHeaders:de,BlobRenameHeaders:ae,BlobRenewLeaseHeaders:fe,BlobSetAccessControlHeaders:ne,BlobSetHTTPHeadersHeaders:le,BlobSetMetadataHeaders:ce,BlobSetTierHeaders:we,BlobStartCopyFromURLHeaders:ye,BlobUndeleteHeaders:ue,DataLakeStorageError:y,DataLakeStorageErrorError:{serializedName:"DataLakeStorageError_error",type:{name:"Composite",className:"DataLakeStorageErrorError",modelProperties:{code:{xmlName:"Code",serializedName:"Code",type:{name:"String"}},message:{xmlName:"Message",serializedName:"Message",type:{name:"String"}}}}},StorageError:g}),Pn=function(){function e(e){this.client=e}return e.prototype.download=function(e,t){return this.client.sendOperationRequest({options:e},An,t)},e.prototype.getProperties=function(e,t){return this.client.sendOperationRequest({options:e},Rn,t)},e.prototype.deleteMethod=function(e,t){return this.client.sendOperationRequest({options:e},In,t)},e.prototype.setAccessControl=function(e,t){return this.client.sendOperationRequest({options:e},Mn,t)},e.prototype.getAccessControl=function(e,t){return this.client.sendOperationRequest({options:e},Ln,t)},e.prototype.rename=function(e,t,n){return this.client.sendOperationRequest({renameSource:e,options:t},Fn,n)},e.prototype.undelete=function(e,t){return this.client.sendOperationRequest({options:e},zn,t)},e.prototype.setHTTPHeaders=function(e,t){return this.client.sendOperationRequest({options:e},Bn,t)},e.prototype.setMetadata=function(e,t){return this.client.sendOperationRequest({options:e},Un,t)},e.prototype.acquireLease=function(e,t){return this.client.sendOperationRequest({options:e},qn,t)},e.prototype.releaseLease=function(e,t,n){return this.client.sendOperationRequest({leaseId:e,options:t},$n,n)},e.prototype.renewLease=function(e,t,n){return this.client.sendOperationRequest({leaseId:e,options:t},Vn,n)},e.prototype.changeLease=function(e,t,n,r){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},Hn,r)},e.prototype.breakLease=function(e,t){return this.client.sendOperationRequest({options:e},Wn,t)},e.prototype.createSnapshot=function(e,t){return this.client.sendOperationRequest({options:e},Gn,t)},e.prototype.startCopyFromURL=function(e,t,n){return this.client.sendOperationRequest({copySource:e,options:t},Kn,n)},e.prototype.copyFromURL=function(e,t,n){return this.client.sendOperationRequest({copySource:e,options:t},Yn,n)},e.prototype.abortCopyFromURL=function(e,t,n){return this.client.sendOperationRequest({copyId:e,options:t},Qn,n)},e.prototype.setTier=function(e,t,n){return this.client.sendOperationRequest({tier:e,options:t},Xn,n)},e.prototype.getAccountInfo=function(e,t){return this.client.sendOperationRequest({options:e},Jn,t)},e}(),Tn=new t.Serializer(jn,!0),An={httpMethod:"GET",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[qt,Jt],headerParameters:[Mt,{parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}},{parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}},nn,Ft,Et,mt,ht,ft,vt,kt,yt,bt],responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Stream"}},headersMapper:Z},206:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Stream"}},headersMapper:Z},default:{bodyMapper:g,headersMapper:Z}},isXML:!0,serializer:Tn},Rn={httpMethod:"HEAD",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[qt,Jt],headerParameters:[nn,Ft,Et,mt,ht,ft,vt,kt,yt,bt],responses:{200:{headersMapper:ee},default:{bodyMapper:g,headersMapper:ee}},isXML:!0,serializer:Tn},In={httpMethod:"DELETE",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[qt,Jt],headerParameters:[{parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}},nn,Ft,Et,vt,kt,yt,bt],responses:{202:{headersMapper:te},default:{bodyMapper:g,headersMapper:te}},isXML:!0,serializer:Tn},Mn={httpMethod:"PATCH",path:"{filesystem}/{path}",urlParameters:[tn],queryParameters:[Jt,{parameterPath:"action",mapper:{required:!0,isConstant:!0,serializedName:"action",defaultValue:"setAccessControl",type:{name:"String"}}}],headerParameters:[{parameterPath:["options","owner"],mapper:{serializedName:"x-ms-owner",type:{name:"String"}}},{parameterPath:["options","group"],mapper:{serializedName:"x-ms-group",type:{name:"String"}}},Tt,{parameterPath:["options","posixAcl"],mapper:{serializedName:"x-ms-acl",type:{name:"String"}}},Ft,nn,Et,yt,bt,vt,kt],responses:{200:{headersMapper:ne},default:{bodyMapper:y,headersMapper:ne}},isXML:!0,serializer:Tn},Ln={httpMethod:"HEAD",path:"{filesystem}/{path}",urlParameters:[tn],queryParameters:[Jt,{parameterPath:["options","upn"],mapper:{serializedName:"upn",type:{name:"Boolean"}}},{parameterPath:"action",mapper:{required:!0,isConstant:!0,serializedName:"action",defaultValue:"getAccessControl",type:{name:"String"}}}],headerParameters:[Ft,nn,Et,yt,bt,vt,kt],responses:{200:{headersMapper:re},default:{bodyMapper:y,headersMapper:re}},isXML:!0,serializer:Tn},Fn={httpMethod:"PUT",path:"{filesystem}/{path}",urlParameters:[tn],queryParameters:[Jt,{parameterPath:["options","pathRenameMode"],mapper:{serializedName:"mode",type:{name:"Enum",allowedValues:["legacy","posix"]}}}],headerParameters:[{parameterPath:"renameSource",mapper:{required:!0,serializedName:"x-ms-rename-source",type:{name:"String"}}},{parameterPath:["options","directoryProperties"],mapper:{serializedName:"x-ms-properties",type:{name:"String"}}},Tt,{parameterPath:["options","posixUmask"],mapper:{serializedName:"x-ms-umask",type:{name:"String"}}},{parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",type:{name:"String"}}},nn,Ft,{parameterPath:["options","directoryHttpHeaders","cacheControl"],mapper:{serializedName:"x-ms-cache-control",type:{name:"String"}}},{parameterPath:["options","directoryHttpHeaders","contentType"],mapper:{serializedName:"x-ms-content-type",type:{name:"String"}}},{parameterPath:["options","directoryHttpHeaders","contentEncoding"],mapper:{serializedName:"x-ms-content-encoding",type:{name:"String"}}},{parameterPath:["options","directoryHttpHeaders","contentLanguage"],mapper:{serializedName:"x-ms-content-language",type:{name:"String"}}},{parameterPath:["options","directoryHttpHeaders","contentDisposition"],mapper:{serializedName:"x-ms-content-disposition",type:{name:"String"}}},Et,vt,kt,yt,bt,Wt,Kt,Ht,Gt],responses:{201:{headersMapper:ae},default:{bodyMapper:y,headersMapper:ae}},isXML:!0,serializer:Tn},zn={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,{parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"undelete",type:{name:"String"}}}],headerParameters:[nn,Ft],responses:{200:{headersMapper:ue},default:{bodyMapper:g,headersMapper:ue}},isXML:!0,serializer:Tn},Bn={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,et],headerParameters:[nn,Ft,Ve,Qe,Ye,We,Ge,He,Et,vt,kt,yt,bt],responses:{200:{headersMapper:le},default:{bodyMapper:g,headersMapper:le}},isXML:!0,serializer:Tn},Un={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,st],headerParameters:[jt,gt,nn,Ft,Et,mt,ht,ft,vt,kt,yt,bt],responses:{200:{headersMapper:ce},default:{bodyMapper:g,headersMapper:ce}},isXML:!0,serializer:Tn},qn={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,lt],headerParameters:[dt,Rt,nn,Ft,Fe,vt,kt,yt,bt],responses:{201:{headersMapper:pe},default:{bodyMapper:g,headersMapper:pe}},isXML:!0,serializer:Tn},$n={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,lt],headerParameters:[Ct,nn,Ft,ze,vt,kt,yt,bt],responses:{200:{headersMapper:de},default:{bodyMapper:g,headersMapper:de}},isXML:!0,serializer:Tn},Vn={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,lt],headerParameters:[Ct,nn,Ft,Be,vt,kt,yt,bt],responses:{200:{headersMapper:fe},default:{bodyMapper:g,headersMapper:fe}},isXML:!0,serializer:Tn},Hn={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,lt],headerParameters:[Ct,It,nn,Ft,qe,vt,kt,yt,bt],responses:{200:{headersMapper:me},default:{bodyMapper:g,headersMapper:me}},isXML:!0,serializer:Tn},Wn={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,lt],headerParameters:[Ze,nn,Ft,Ue,vt,kt,yt,bt],responses:{202:{headersMapper:he},default:{bodyMapper:g,headersMapper:he}},isXML:!0,serializer:Tn},Gn={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,{parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"snapshot",type:{name:"String"}}}],headerParameters:[jt,gt,nn,Ft,mt,ht,ft,vt,kt,yt,bt,Et],responses:{201:{headersMapper:ge},default:{bodyMapper:g,headersMapper:ge}},isXML:!0,serializer:Tn},Kn={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt],headerParameters:[jt,Xt,Lt,pt,nn,Ft,Wt,Kt,Ht,Gt,vt,kt,yt,bt,Et],responses:{202:{headersMapper:ye},default:{bodyMapper:g,headersMapper:ye}},isXML:!0,serializer:Tn},Yn={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt],headerParameters:[jt,Xt,pt,nn,Ft,Vt,{parameterPath:"xMsRequiresSync",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-requires-sync",defaultValue:"true",type:{name:"String"}}},Wt,Kt,Ht,Gt,vt,kt,yt,bt,Et],responses:{202:{headersMapper:ve},default:{bodyMapper:g,headersMapper:ve}},isXML:!0,serializer:Tn},Qn={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[{parameterPath:"copyId",mapper:{required:!0,serializedName:"copyid",type:{name:"String"}}},Jt,{parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"copy",type:{name:"String"}}}],headerParameters:[nn,Ft,{parameterPath:"copyActionAbortConstant",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-copy-action",defaultValue:"abort",type:{name:"String"}}},Et],responses:{204:{headersMapper:be},default:{bodyMapper:g,headersMapper:be}},isXML:!0,serializer:Tn},Xn={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,{parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"tier",type:{name:"String"}}}],headerParameters:[{parameterPath:"tier",mapper:{required:!0,serializedName:"x-ms-access-tier",type:{name:"String"}}},Lt,nn,Ft,Et],responses:{200:{headersMapper:we},202:{headersMapper:we},default:{bodyMapper:g,headersMapper:we}},isXML:!0,serializer:Tn},Jn={httpMethod:"GET",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Bt,et],headerParameters:[nn],responses:{200:{headersMapper:_e},default:{bodyMapper:g,headersMapper:_e}},isXML:!0,serializer:Tn},Zn=Object.freeze({__proto__:null,ClearRange:{serializedName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{xmlName:"Start",required:!0,serializedName:"Start",type:{name:"Number"}},end:{xmlName:"End",required:!0,serializedName:"End",type:{name:"Number"}}}}},PageBlobClearPagesHeaders:De,PageBlobCopyIncrementalHeaders:Ae,PageBlobCreateHeaders:ie,PageBlobGetPageRangesDiffHeaders:je,PageBlobGetPageRangesHeaders:Ne,PageBlobResizeHeaders:Pe,PageBlobUpdateSequenceNumberHeaders:Te,PageBlobUploadPagesFromURLHeaders:Oe,PageBlobUploadPagesHeaders:Ce,PageList:k,PageRange:{serializedName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{xmlName:"Start",required:!0,serializedName:"Start",type:{name:"Number"}},end:{xmlName:"End",required:!0,serializedName:"End",type:{name:"Number"}}}}},StorageError:g}),er=function(){function e(e){this.client=e}return e.prototype.create=function(e,t,n,r){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:n},nr,r)},e.prototype.uploadPages=function(e,t,n,r){return this.client.sendOperationRequest({body:e,contentLength:t,options:n},rr,r)},e.prototype.clearPages=function(e,t,n){return this.client.sendOperationRequest({contentLength:e,options:t},ar,n)},e.prototype.uploadPagesFromURL=function(e,t,n,r,a,i){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:n,range:r,options:a},ir,i)},e.prototype.getPageRanges=function(e,t){return this.client.sendOperationRequest({options:e},or,t)},e.prototype.getPageRangesDiff=function(e,t){return this.client.sendOperationRequest({options:e},sr,t)},e.prototype.resize=function(e,t,n){return this.client.sendOperationRequest({blobContentLength:e,options:t},ur,n)},e.prototype.updateSequenceNumber=function(e,t,n){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},lr,n)},e.prototype.copyIncremental=function(e,t,n){return this.client.sendOperationRequest({copySource:e,options:t},cr,n)},e}(),tr=new t.Serializer(Zn,!0),nr={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt],headerParameters:[ct,Xt,jt,gt,Ke,Xe,nn,Ft,{parameterPath:"blobType",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-blob-type",defaultValue:"PageBlob",type:{name:"String"}}},Qe,We,Ge,Ye,Ve,He,Et,mt,ht,ft,vt,kt,yt,bt],responses:{201:{headersMapper:ie},default:{bodyMapper:g,headersMapper:ie}},isXML:!0,serializer:tr},rr={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,tt],headerParameters:[ct,en,Zt,Mt,gt,nn,Ft,Pt,Et,mt,ht,ft,xt,_t,wt,vt,kt,yt,bt],requestBody:{parameterPath:"body",mapper:{required:!0,serializedName:"body",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{201:{headersMapper:Ce},default:{bodyMapper:g,headersMapper:Ce}},isXML:!0,serializer:tr},ar={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,tt],headerParameters:[ct,Mt,gt,nn,Ft,{parameterPath:"pageWrite",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-page-write",defaultValue:"clear",type:{name:"String"}}},Et,mt,ht,ft,xt,_t,wt,vt,kt,yt,bt],responses:{201:{headersMapper:De},default:{bodyMapper:g,headersMapper:De}},isXML:!0,serializer:tr},ir={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,tt],headerParameters:[Qt,{parameterPath:"sourceRange",mapper:{required:!0,serializedName:"x-ms-source-range",type:{name:"String"}}},Vt,$t,ct,{parameterPath:"range",mapper:{required:!0,serializedName:"x-ms-range",type:{name:"String"}}},gt,nn,Ft,Pt,mt,ht,ft,Et,xt,_t,wt,vt,kt,yt,bt,Wt,Kt,Ht,Gt],responses:{201:{headersMapper:Oe},default:{bodyMapper:g,headersMapper:Oe}},isXML:!0,serializer:tr},or={httpMethod:"GET",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[qt,Jt,nt],headerParameters:[Mt,nn,Ft,Et,vt,kt,yt,bt],responses:{200:{bodyMapper:k,headersMapper:Ne},default:{bodyMapper:g,headersMapper:Ne}},isXML:!0,serializer:tr},sr={httpMethod:"GET",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[qt,Jt,{parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",type:{name:"String"}}},nt],headerParameters:[{parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",type:{name:"String"}}},Mt,nn,Ft,Et,vt,kt,yt,bt],responses:{200:{bodyMapper:k,headersMapper:je},default:{bodyMapper:g,headersMapper:je}},isXML:!0,serializer:tr},ur={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,et],headerParameters:[gt,Ke,nn,Ft,Et,mt,ht,ft,vt,kt,yt,bt],responses:{200:{headersMapper:Pe},default:{bodyMapper:g,headersMapper:Pe}},isXML:!0,serializer:tr},lr={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,et],headerParameters:[{parameterPath:"sequenceNumberAction",mapper:{required:!0,serializedName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}},Xe,nn,Ft,Et,vt,kt,yt,bt],responses:{200:{headersMapper:Te},default:{bodyMapper:g,headersMapper:Te}},isXML:!0,serializer:tr},cr={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,{parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"incrementalcopy",type:{name:"String"}}}],headerParameters:[pt,nn,Ft,vt,kt,yt,bt],responses:{202:{headersMapper:Ae},default:{bodyMapper:g,headersMapper:Ae}},isXML:!0,serializer:tr},pr=Object.freeze({__proto__:null,AppendBlobAppendBlockFromUrlHeaders:Ie,AppendBlobAppendBlockHeaders:Re,AppendBlobCreateHeaders:oe,StorageError:g}),dr=function(){function e(e){this.client=e}return e.prototype.create=function(e,t,n){return this.client.sendOperationRequest({contentLength:e,options:t},mr,n)},e.prototype.appendBlock=function(e,t,n,r){return this.client.sendOperationRequest({body:e,contentLength:t,options:n},hr,r)},e.prototype.appendBlockFromUrl=function(e,t,n,r){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:n},gr,r)},e}(),fr=new t.Serializer(pr,!0),mr={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt],headerParameters:[ct,jt,gt,nn,Ft,{parameterPath:"blobType",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-blob-type",defaultValue:"AppendBlob",type:{name:"String"}}},Qe,We,Ge,Ye,Ve,He,Et,mt,ht,ft,vt,kt,yt,bt],responses:{201:{headersMapper:oe},default:{bodyMapper:g,headersMapper:oe}},isXML:!0,serializer:fr},hr={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,rt],headerParameters:[ct,en,Zt,gt,nn,Ft,Et,Nt,$e,mt,ht,ft,vt,kt,yt,bt],requestBody:{parameterPath:"body",mapper:{required:!0,serializedName:"body",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{201:{headersMapper:Re},default:{bodyMapper:g,headersMapper:Re}},isXML:!0,serializer:fr},gr={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,rt],headerParameters:[Qt,Yt,Vt,$t,ct,en,gt,nn,Ft,mt,ht,ft,Et,Nt,$e,vt,kt,yt,bt,Wt,Kt,Ht,Gt],responses:{201:{headersMapper:Ie},default:{bodyMapper:g,headersMapper:Ie}},isXML:!0,serializer:fr},yr=Object.freeze({__proto__:null,Block:{serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{xmlName:"Name",required:!0,serializedName:"Name",type:{name:"String"}},size:{xmlName:"Size",required:!0,serializedName:"Size",type:{name:"Number"}}}}},BlockBlobCommitBlockListHeaders:Se,BlockBlobGetBlockListHeaders:Ee,BlockBlobStageBlockFromURLHeaders:ke,BlockBlobStageBlockHeaders:xe,BlockBlobUploadHeaders:se,BlockList:w,BlockLookupList:_,StorageError:g}),vr=function(){function e(e){this.client=e}return e.prototype.upload=function(e,t,n,r){return this.client.sendOperationRequest({body:e,contentLength:t,options:n},wr,r)},e.prototype.stageBlock=function(e,t,n,r,a){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:n,options:r},_r,a)},e.prototype.stageBlockFromURL=function(e,t,n,r,a){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:n,options:r},xr,a)},e.prototype.commitBlockList=function(e,t,n){return this.client.sendOperationRequest({blocks:e,options:t},kr,n)},e.prototype.getBlockList=function(e,t,n){return this.client.sendOperationRequest({listType:e,options:t},Sr,n)},e}(),br=new t.Serializer(yr,!0),wr={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt],headerParameters:[en,ct,jt,gt,Xt,nn,Ft,{parameterPath:"blobType",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-blob-type",defaultValue:"BlockBlob",type:{name:"String"}}},Qe,We,Ge,Ye,Ve,He,Et,mt,ht,ft,vt,kt,yt,bt],requestBody:{parameterPath:"body",mapper:{required:!0,serializedName:"body",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{201:{headersMapper:se},default:{bodyMapper:g,headersMapper:se}},isXML:!0,serializer:br},_r={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Je,Jt,at],headerParameters:[ct,en,Zt,gt,nn,Ft,Et,mt,ht,ft],requestBody:{parameterPath:"body",mapper:{required:!0,serializedName:"body",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{201:{headersMapper:xe},default:{bodyMapper:g,headersMapper:xe}},isXML:!0,serializer:br},xr={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Je,Jt,at],headerParameters:[ct,Qt,Yt,Vt,$t,gt,nn,Ft,mt,ht,ft,Et,Wt,Kt,Ht,Gt],responses:{201:{headersMapper:ke},default:{bodyMapper:g,headersMapper:ke}},isXML:!0,serializer:br},kr={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,it],headerParameters:[en,Zt,jt,gt,Xt,nn,Ft,Ve,Qe,We,Ge,Ye,He,Et,mt,ht,ft,vt,kt,yt,bt],requestBody:{parameterPath:"blocks",mapper:n.__assign(n.__assign({},_),{required:!0})},contentType:"application/xml; charset=utf-8",responses:{201:{headersMapper:Se},default:{bodyMapper:g,headersMapper:Se}},isXML:!0,serializer:br},Sr={httpMethod:"GET",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[qt,{parameterPath:"listType",mapper:{required:!0,serializedName:"blocklisttype",defaultValue:"committed",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}},Jt,it],headerParameters:[nn,Ft,Et],responses:{200:{bodyMapper:w,headersMapper:Ee},default:{bodyMapper:g,headersMapper:Ee}},isXML:!0,serializer:br},Er=a.createClientLogger("storage-blob"),Cr="12.1.2",Dr="2019-07-07",Or=268435456,Nr=104857600,jr=5e4,Pr=4194304,Tr="https://storage.azure.com/.default",Ar={FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",TIMEOUT:"timeout"},Rr=202,Ir={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version"},Mr=4194304,Lr="\r\n",Fr="HTTP/1.1",zr="AES256",Br="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Ur=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256"],qr=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"];function $r(e){var n=t.URLBuilder.parse(e),r=n.getPath();return r=r||"/",r=encodeURIComponent(r).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%"),n.setPath(r),n.toString()}function Vr(e,t){for(var n=0,r=e.split(";");n<r.length;n++){var a=r[n];if(a.trim().startsWith(t))return a.trim().match(t+"=(.*)")[1]}return""}function Hr(e){var t="";e.startsWith("UseDevelopmentStorage=true")&&(t=function(e){var t="";if(-1!==e.search("DevelopmentStorageProxyUri="))for(var n=0,r=e.split(";");n<r.length;n++){var a=r[n];a.trim().startsWith("DevelopmentStorageProxyUri=")&&(t=a.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return t}(e),e=Br);var n=Vr(e,"BlobEndpoint");if(n=n.endsWith("/")?n.slice(0,-1):n,-1!==e.search("DefaultEndpointsProtocol=")&&-1!==e.search("AccountKey=")){var r="",a="",i=Buffer.from("accountKey","base64"),o="";if(a=Vr(e,"AccountName"),i=Buffer.from(Vr(e,"AccountKey"),"base64"),!n){var s=(r=Vr(e,"DefaultEndpointsProtocol")).toLowerCase();if("https"!==s&&"http"!==s)throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(!(o=Vr(e,"EndpointSuffix")))throw new Error("Invalid EndpointSuffix in the provided Connection String");n=r+"://"+a+".blob."+o}if(!a)throw new Error("Invalid AccountName in the provided Connection String");if(0===i.length)throw new Error("Invalid AccountKey in the provided Connection String");return{kind:"AccountConnString",url:n,accountName:a,accountKey:i,proxyUri:t}}var u=Vr(e,"SharedAccessSignature");a=ea(n);if(!n)throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");if(!u)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String");if(!a)throw new Error("Invalid AccountName in the provided SAS Connection String");return{kind:"SASConnString",url:n,accountName:a,accountSas:u}}function Wr(e,n){var r=t.URLBuilder.parse(e),a=r.getPath();return a=a?a.endsWith("/")?""+a+n:a+"/"+n:n,r.setPath(a),r.toString()}function Gr(e,n,r){var a=t.URLBuilder.parse(e);return a.setQueryParameter(n,r),a.toString()}function Kr(e){return t.URLBuilder.parse(e).getPath()}function Yr(e){var n=t.URLBuilder.parse(e),r=n.getPath();if(!r)throw new RangeError("Invalid url without valid path.");var a=n.getQuery()||"";return""!=(a=a.trim())&&(a=a.startsWith("?")?a:"?"+a),""+r+a}function Qr(e,t){void 0===t&&(t=!0);var n=e.toISOString();return t?n.substring(0,n.length-1)+"0000Z":n.substring(0,n.length-5)+"Z"}function Xr(e,n){e.length>42&&(e=e.slice(0,42));var r,a=e+function(e,t,n){void 0===n&&(n=" ");if(String.prototype.padStart)return e.padStart(t,n);return n=n||" ",e.length>t?e:((t-=e.length)>n.length&&(n+=n.repeat(t/n.length)),n.slice(0,t)+e)}(n.toString(),48-e.length,"0");return r=a,t.isNode?Buffer.from(r).toString("base64"):btoa(r)}function Jr(e,t,r){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(n){return[2,new Promise((function(n,a){var i,o=function(){void 0!==i&&clearTimeout(i),a(r)};i=setTimeout((function(){void 0!==t&&t.removeEventListener("abort",o),n()}),e),void 0!==t&&t.addEventListener("abort",o)}))]}))}))}function Zr(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function ea(e){var n,r=t.URLBuilder.parse(e);try{if(!(n="blob"===r.getHost().split(".")[1]?r.getHost().split(".")[0]:r.getPath().split("/")[1]))throw new Error("Provided accountName is invalid.");return n}catch(e){throw new Error("Unable to extract accountName with provided information.")}}var ta,na=function(e){function t(t,n){return e.call(this,t,n)||this}return n.__extends(t,e),t.prototype.sendRequest=function(e){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(t){return[2,this._nextPolicy.sendRequest(e)]}))}))},t}(t.BaseRequestPolicy),ra=function(){function e(){}return e.prototype.create=function(e,t){return new na(e,t)},e}();(ta=e.StorageRetryPolicyType||(e.StorageRetryPolicyType={}))[ta.EXPONENTIAL=0]="EXPONENTIAL",ta[ta.FIXED=1]="FIXED";var aa={maxRetryDelayInMs:12e4,maxTries:4,retryDelayInMs:4e3,retryPolicyType:e.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},ia=new i.AbortError("The operation was aborted."),oa=function(r){function a(e,t,n){void 0===n&&(n=aa);var a=r.call(this,e,t)||this;return a.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:aa.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):aa.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:aa.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:aa.maxRetryDelayInMs):aa.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:aa.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:aa.secondaryHost},a}return n.__extends(a,r),a.prototype.sendRequest=function(e){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(t){return[2,this.attemptSendRequest(e,!1,1)]}))}))},a.prototype.attemptSendRequest=function(e,r,a){return n.__awaiter(this,void 0,void 0,(function(){var i,o,s,u;return n.__generator(this,(function(n){switch(n.label){case 0:i=e.clone(),(o=r||!this.retryOptions.secondaryHost||!("GET"===e.method||"HEAD"===e.method||"OPTIONS"===e.method)||a%2==1)||(i.url=function(e,n){var r=t.URLBuilder.parse(e);return r.setHost(n),r.toString()}(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=Gr(i.url,Ar.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())),n.label=1;case 1:return n.trys.push([1,3,,4]),Er.info("RetryPolicy: =====> Try="+a+" "+(o?"Primary":"Secondary")),[4,this._nextPolicy.sendRequest(i)];case 2:return s=n.sent(),this.shouldRetry(o,a,s)?(r=r||!o&&404===s.status,[3,4]):[2,s];case 3:if(u=n.sent(),Er.error("RetryPolicy: Caught error, message: "+u.message+", code: "+u.code),!this.shouldRetry(o,a,s,u))throw u;return[3,4];case 4:return[4,this.delay(o,a,e.abortSignal)];case 5:return n.sent(),[4,this.attemptSendRequest(e,r,++a)];case 6:return[2,n.sent()]}}))}))},a.prototype.shouldRetry=function(e,t,n,r){if(t>=this.retryOptions.maxTries)return Er.info("RetryPolicy: Attempt(s) "+t+" >= maxTries "+this.retryOptions.maxTries+", no further try."),!1;if(r)for(var a=0,i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];a<i.length;a++){var o=i[a];if(r.name.toUpperCase().includes(o)||r.message.toUpperCase().includes(o)||r.code&&r.code.toString().toUpperCase().includes(o))return Er.info("RetryPolicy: Network error "+o+" found, will retry."),!0}if(n||r){var s=n?n.status:r?r.statusCode:0;if(!e&&404===s)return Er.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(503===s||500===s)return Er.info("RetryPolicy: Will retry for status code "+s+"."),!0}return!1},a.prototype.delay=function(t,r,a){return n.__awaiter(this,void 0,void 0,(function(){var i;return n.__generator(this,(function(n){if(i=0,t)switch(this.retryOptions.retryPolicyType){case e.StorageRetryPolicyType.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case e.StorageRetryPolicyType.FIXED:i=this.retryOptions.retryDelayInMs}else i=1e3*Math.random();return Er.info("RetryPolicy: Delay for "+i+"ms"),[2,Jr(i,a,ia)]}))}))},a}(t.BaseRequestPolicy),sa=function(){function e(e){this.retryOptions=e}return e.prototype.create=function(e,t){return new oa(e,t,this.retryOptions)},e}(),ua=function(e){function r(t,n,r){var a=e.call(this,t,n)||this;return a.telemetry=r,a}return n.__extends(r,e),r.prototype.sendRequest=function(e){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(n){return e.headers||(e.headers=new t.HttpHeaders),e.headers.get(Ir.USER_AGENT)||e.headers.set(Ir.USER_AGENT,this.telemetry),[2,this._nextPolicy.sendRequest(e)]}))}))},r}(t.BaseRequestPolicy),la=function(){function e(e){var t=[];if(e){var n=(e.userAgentPrefix||"").replace(" ","");n.length>0&&-1===t.indexOf(n)&&t.push(n)}var r="azsdk-js-storageblob/"+Cr;-1===t.indexOf(r)&&t.push(r);var a="(NODE-VERSION "+process.version+"; "+o.type()+" "+o.release()+")";-1===t.indexOf(a)&&t.push(a),this.telemetryString=t.join(" ")}return e.prototype.create=function(e,t){return new ua(e,t,this.telemetryString)},e}(),ca=new t.DefaultHttpClient;var pa=function(){function e(e,t){void 0===t&&(t={}),this.factories=e,this.options=n.__assign(n.__assign({},t),{httpClient:t.httpClient||ca})}return e.prototype.toServiceClientOptions=function(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}},e}();function da(e,n){void 0===n&&(n={});var r=new la(n.userAgentOptions),a=[t.tracingPolicy({userAgent:r.telemetryString}),t.keepAlivePolicy(n.keepAliveOptions),r,t.generateClientRequestIdPolicy(),new ra,t.deserializationPolicy(),new sa(n.retryOptions),t.logPolicy({logger:Er.info,allowedHeaderNames:Ur,allowedQueryParameters:qr})];return a.push(t.proxyPolicy(n.proxyOptions)),a.push(t.disableResponseDecompressionPolicy()),a.push(t.isTokenCredential(e)?t.bearerTokenAuthenticationPolicy(e,Tr):e),new pa(a,n)}var fa,ma,ha=new i.AbortError("The operation was aborted."),ga=function(e){function t(t,n,r,a,o){void 0===o&&(o={});var s=e.call(this)||this;return s.retries=0,s.abortHandler=function(){s.source.pause(),s.emit("error",ha)},s.aborter=o.abortSignal||i.AbortSignal.none,s.getter=n,s.source=t,s.start=r,s.offset=r,s.end=r+a-1,s.maxRetryRequests=o.maxRetryRequests&&o.maxRetryRequests>=0?o.maxRetryRequests:0,s.onProgress=o.onProgress,s.options=o,s.aborter.addEventListener("abort",s.abortHandler),s.setSourceDataHandler(),s.setSourceEndHandler(),s.setSourceErrorHandler(),s}return n.__extends(t,e),t.prototype._read=function(){this.aborter.aborted||this.source.resume()},t.prototype.setSourceDataHandler=function(){var e=this;this.source.on("data",(function(t){if(e.options.doInjectErrorOnce)return e.options.doInjectErrorOnce=void 0,e.source.pause(),e.source.removeAllListeners("data"),void e.source.emit("end");e.offset+=t.length,e.onProgress&&e.onProgress({loadedBytes:e.offset-e.start}),e.push(t)||e.source.pause()}))},t.prototype.setSourceEndHandler=function(){var e=this;this.source.on("end",(function(){e.offset-1===e.end?(e.aborter.removeEventListener("abort",e.abortHandler),e.push(null)):e.offset<=e.end?e.retries<e.maxRetryRequests?(e.retries+=1,e.getter(e.offset).then((function(t){e.source=t,e.setSourceDataHandler(),e.setSourceEndHandler(),e.setSourceErrorHandler()})).catch((function(t){e.emit("error",t)}))):e.emit("error",new Error("Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: "+(e.offset-1)+", data needed offset: "+e.end+", retries: "+e.retries+", max retries: "+e.maxRetryRequests)):e.emit("error",new Error("Data corruption failure: Received more data than original request, data needed offset is "+e.end+", received offset: "+(e.offset-1)))}))},t.prototype.setSourceErrorHandler=function(){var e=this;this.source.on("error",(function(t){e.emit("error",t)}))},t}(s.Readable),ya=function(){function e(e,t,n,r,a){void 0===a&&(a={}),this.originalResponse=e,this.blobDownloadStream=new ga(this.originalResponse.readableStreamBody,t,n,r,a)}return Object.defineProperty(e.prototype,"acceptRanges",{get:function(){return this.originalResponse.acceptRanges},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cacheControl",{get:function(){return this.originalResponse.cacheControl},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentDisposition",{get:function(){return this.originalResponse.contentDisposition},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentEncoding",{get:function(){return this.originalResponse.contentEncoding},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentLanguage",{get:function(){return this.originalResponse.contentLanguage},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"blobSequenceNumber",{get:function(){return this.originalResponse.blobSequenceNumber},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"blobType",{get:function(){return this.originalResponse.blobType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentLength",{get:function(){return this.originalResponse.contentLength},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentMD5",{get:function(){return this.originalResponse.contentMD5},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentRange",{get:function(){return this.originalResponse.contentRange},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentType",{get:function(){return this.originalResponse.contentType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copyCompletedOn",{get:function(){return this.originalResponse.copyCompletedOn},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copyId",{get:function(){return this.originalResponse.copyId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copyProgress",{get:function(){return this.originalResponse.copyProgress},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copySource",{get:function(){return this.originalResponse.copySource},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copyStatus",{get:function(){return this.originalResponse.copyStatus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copyStatusDescription",{get:function(){return this.originalResponse.copyStatusDescription},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leaseDuration",{get:function(){return this.originalResponse.leaseDuration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leaseState",{get:function(){return this.originalResponse.leaseState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leaseStatus",{get:function(){return this.originalResponse.leaseStatus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"date",{get:function(){return this.originalResponse.date},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"blobCommittedBlockCount",{get:function(){return this.originalResponse.blobCommittedBlockCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"etag",{get:function(){return this.originalResponse.etag},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errorCode",{get:function(){return this.originalResponse.errorCode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isServerEncrypted",{get:function(){return this.originalResponse.isServerEncrypted},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"blobContentMD5",{get:function(){return this.originalResponse.blobContentMD5},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastModified",{get:function(){return this.originalResponse.lastModified},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"metadata",{get:function(){return this.originalResponse.metadata},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"requestId",{get:function(){return this.originalResponse.requestId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clientRequestId",{get:function(){return this.originalResponse.clientRequestId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this.originalResponse.version},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"encryptionKeySha256",{get:function(){return this.originalResponse.encryptionKeySha256},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentCrc64",{get:function(){return this.originalResponse.contentCrc64},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentAsBlob",{get:function(){return this.originalResponse.blobBody},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readableStreamBody",{get:function(){return t.isNode?this.blobDownloadStream:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_response",{get:function(){return this.originalResponse._response},enumerable:!0,configurable:!0}),e}();function va(e){if(e.offset<0)throw new RangeError("Range.offset cannot be smaller than 0.");if(e.count&&e.count<=0)throw new RangeError("Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.");return e.count?"bytes="+e.offset+"-"+(e.offset+e.count-1):"bytes="+e.offset+"-"}function ba(e){if(null!=e)return e}function wa(e,t){if(e&&!t)throw new RangeError("Customer-provided encryption key must be used over HTTPS.");e&&!e.encryptionAlgorithm&&(e.encryptionAlgorithm=zr)}function _a(e,t,r,a,i){return n.__awaiter(this,void 0,void 0,(function(){var o,s;return n.__generator(this,(function(n){return o=0,s=a-r,[2,new Promise((function(n,a){e.on("readable",(function(){if(o>=s)n();else{var a=e.read();if(a){"string"==typeof a&&(a=Buffer.from(a,i));var u=o+a.length>s?s-o:a.length;t.fill(a.slice(0,u),r+o,r+o+u),o+=u}}})),e.on("end",(function(){o<s&&a(new Error("Stream drains before getting enough data needed. Data read: "+o+", data need: "+s)),n()})),e.on("error",a)}))]}))}))}function xa(e,t,r){return n.__awaiter(this,void 0,void 0,(function(){var a,i;return n.__generator(this,(function(n){return a=0,i=t.length,[2,new Promise((function(n,o){e.on("readable",(function(){var n=e.read();n&&("string"==typeof n&&(n=Buffer.from(n,r)),a+n.length>i?o(new Error("Stream exceeds buffer size. Buffer size: "+i)):(t.fill(n,a,a+n.length),a+=n.length))})),e.on("end",(function(){n(a)})),e.on("error",o)}))]}))}))}function ka(e,t){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(n){return[2,new Promise((function(n,r){var a=u.createWriteStream(t);e.on("error",(function(e){r(e)})),a.on("error",(function(e){r(e)})),a.on("close",n),e.pipe(a)}))]}))}))}(fa=e.BlockBlobTier||(e.BlockBlobTier={})).Hot="Hot",fa.Cool="Cool",fa.Archive="Archive",(ma=e.PremiumPageBlobTier||(e.PremiumPageBlobTier={})).P4="P4",ma.P6="P6",ma.P10="P10",ma.P15="P15",ma.P20="P20",ma.P30="P30",ma.P40="P40",ma.P50="P50",ma.P60="P60",ma.P70="P70",ma.P80="P80";var Sa,Ea=l.promisify(u.stat),Ca=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.sendRequest=function(e){return this._nextPolicy.sendRequest(this.signRequest(e))},t.prototype.signRequest=function(e){return e},t}(t.BaseRequestPolicy),Da=function(e){function r(t,n,r){var a=e.call(this,t,n)||this;return a.factory=r,a}return n.__extends(r,e),r.prototype.signRequest=function(e){e.headers.set(Ir.X_MS_DATE,(new Date).toUTCString()),e.body&&"string"==typeof e.body&&e.body.length>0&&e.headers.set(Ir.CONTENT_LENGTH,Buffer.byteLength(e.body));var t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,Ir.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,Ir.CONTENT_ENCODING),this.getHeaderValueToSign(e,Ir.CONTENT_LENGTH),this.getHeaderValueToSign(e,Ir.CONTENT_MD5),this.getHeaderValueToSign(e,Ir.CONTENT_TYPE),this.getHeaderValueToSign(e,Ir.DATE),this.getHeaderValueToSign(e,Ir.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,Ir.IF_MATCH),this.getHeaderValueToSign(e,Ir.IF_NONE_MATCH),this.getHeaderValueToSign(e,Ir.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,Ir.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(t);return e.headers.set(Ir.AUTHORIZATION,"SharedKey "+this.factory.accountName+":"+n),"function"==typeof e.body||e.body&&e.onUploadProgress||e.headers.remove(Ir.CONTENT_LENGTH),e},r.prototype.getHeaderValueToSign=function(e,t){var n=e.headers.get(t);return n?t===Ir.CONTENT_LENGTH&&"0"===n?"":n:""},r.prototype.getCanonicalizedHeadersString=function(e){var t=e.headers.headersArray().filter((function(e){return e.name.toLowerCase().startsWith(Ir.PREFIX_FOR_STORAGE)}));t.sort((function(e,t){return e.name.toLowerCase().localeCompare(t.name.toLowerCase())})),t=t.filter((function(e,t,n){return!(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase())}));var n="";return t.forEach((function(e){n+=e.name.toLowerCase().trimRight()+":"+e.value.trimLeft()+"\n"})),n},r.prototype.getCanonicalizedResourceString=function(e){var n=Kr(e.url)||"/",r="";r+="/"+this.factory.accountName+n;var a=function(e){var n=t.URLBuilder.parse(e).getQuery();if(!n)return{};var r=(n=(n=n.trim()).startsWith("?")?n.substr(1):n).split("&");r=r.filter((function(e){var t=e.indexOf("="),n=e.lastIndexOf("=");return t>0&&t===n&&n<e.length-1}));for(var a={},i=0,o=r;i<o.length;i++){var s=o[i].split("="),u=s[0],l=s[1];a[u]=l}return a}(e.url),i={};if(a){var o=[];for(var s in a)if(a.hasOwnProperty(s)){var u=s.toLowerCase();i[u]=a[s],o.push(u)}o.sort();for(var l=0,c=o;l<c.length;l++){r+="\n"+(s=c[l])+":"+decodeURIComponent(i[s])}}return r},r}(Ca),Oa=function(){function e(){}return e.prototype.create=function(e,t){throw new Error("Method should be implemented in children classes.")},e}(),Na=function(e){function t(t,n){var r=e.call(this)||this;return r.accountName=t,r.accountKey=Buffer.from(n,"base64"),r}return n.__extends(t,e),t.prototype.create=function(e,t){return new Da(e,t,this)},t.prototype.computeHMACSHA256=function(e){return c.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")},t}(Oa),ja=function(e){function t(t,n){return e.call(this,t,n)||this}return n.__extends(t,e),t}(Ca),Pa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.create=function(e,t){return new ja(e,t)},t}(Oa);!function(e){e[e.Good=0]="Good",e[e.Error=1]="Error"}(Sa||(Sa={}));var Ta=function(){function e(e){if(void 0===e&&(e=5),this.actives=0,this.completed=0,this.offset=0,this.operations=[],this.state=Sa.Good,e<1)throw new RangeError("concurrency must be larger than 0");this.concurrency=e,this.emitter=new p.EventEmitter}return e.prototype.addOperation=function(e){var t=this;this.operations.push((function(){return n.__awaiter(t,void 0,void 0,(function(){var t;return n.__generator(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),this.actives++,[4,e()];case 1:return n.sent(),this.actives--,this.completed++,this.parallelExecute(),[3,3];case 2:return t=n.sent(),this.emitter.emit("error",t),[3,3];case 3:return[2]}}))}))}))},e.prototype.do=function(){return n.__awaiter(this,void 0,void 0,(function(){var e=this;return n.__generator(this,(function(t){return 0===this.operations.length?[2,Promise.resolve()]:(this.parallelExecute(),[2,new Promise((function(t,n){e.emitter.on("finish",t),e.emitter.on("error",(function(t){e.state=Sa.Error,n(t)}))}))])}))}))},e.prototype.nextOperation=function(){return this.offset<this.operations.length?this.operations[this.offset++]:null},e.prototype.parallelExecute=function(){if(this.state!==Sa.Error)if(this.completed>=this.operations.length)this.emitter.emit("finish");else for(;this.actives<this.concurrency;){var e=this.nextOperation();if(!e)return;e()}},e}();function Aa(e,t){void 0===t&&(t={});var a=d.getTracer(),i=n.__assign(n.__assign({},t.spanOptions),{kind:r.SpanKind.INTERNAL}),o=a.startSpan("Azure.Storage.Blob."+e,i);o.setAttribute("az.namespace","Microsoft.Storage");var s=t.spanOptions||{};return o.isRecording()&&(s=n.__assign(n.__assign({},t.spanOptions),{parent:o.context(),attributes:n.__assign(n.__assign({},i.attributes),{"az.namespace":"Microsoft.Storage"})})),{span:o,spanOptions:s}}var Ra="azure-storage-blob",Ia="12.1.2",Ma=function(e){function r(n,r){var a=this;if(null==n)throw new Error("'url' cannot be null.");if(r||(r={}),!r.userAgent){var i=t.getDefaultUserAgentValue();r.userAgent=Ra+"/"+Ia+" "+i}return(a=e.call(this,void 0,r)||this).version="2019-07-07",a.baseUri="{url}",a.requestContentType="application/json; charset=utf-8",a.url=n,a}return n.__extends(r,e),r}(t.ServiceClient),La=function(e,n){this.url=$r(e),this.accountName=ea(e),this.pipeline=n,this.storageClientContext=new Ma(this.url,n.toServiceClientOptions()),this.isHttps=Zr(function(e){return t.URLBuilder.parse(e).getScheme()}(this.url)||"","https"),this.credential=new Pa;for(var r=0,a=this.pipeline.factories;r<a.length;r++){var i=a[r];(t.isNode&&i instanceof Na||i instanceof Pa||t.isTokenCredential(i))&&(this.credential=i)}this.storageClientContext.requestContentType=void 0},Fa=function(){function e(e,t,n,r,a,i){if(this.emitter=new p.EventEmitter,this.offset=0,this.isStreamEnd=!1,this.isError=!1,this.executingOutgoingHandlers=0,this.numBuffers=0,this.unresolvedDataArray=[],this.unresolvedLength=0,this.incoming=[],this.outgoing=[],t<=0)throw new RangeError("bufferSize must be larger than 0, current is "+t);if(n<=0)throw new RangeError("maxBuffers must be larger than 0, current is "+n);if(a<=0)throw new RangeError("concurrency must be larger than 0, current is "+a);this.bufferSize=t,this.maxBuffers=n,this.readable=e,this.outgoingHandler=r,this.concurrency=a,this.encoding=i}return e.prototype.do=function(){return n.__awaiter(this,void 0,void 0,(function(){var e=this;return n.__generator(this,(function(t){return[2,new Promise((function(t,n){e.readable.on("data",(function(t){t="string"==typeof t?Buffer.from(t,e.encoding):t,e.appendUnresolvedData(t),e.resolveData()||e.readable.pause()})),e.readable.on("error",(function(t){e.emitter.emit("error",t)})),e.readable.on("end",(function(){e.isStreamEnd=!0,e.emitter.emit("checkEnd")})),e.emitter.on("error",(function(t){e.isError=!0,e.readable.pause(),n(t)})),e.emitter.on("checkEnd",(function(){if(e.outgoing.length>0)e.triggerOutgoingHandlers();else if(e.isStreamEnd&&0===e.executingOutgoingHandlers)if(e.unresolvedLength>0&&e.unresolvedLength<e.bufferSize)e.outgoingHandler(e.shiftBufferFromUnresolvedDataArray(),e.offset).then(t).catch(n);else{if(e.unresolvedLength>=e.bufferSize)return;t()}}))}))]}))}))},e.prototype.appendUnresolvedData=function(e){this.unresolvedDataArray.push(e),this.unresolvedLength+=e.length},e.prototype.shiftBufferFromUnresolvedDataArray=function(){if(this.unresolvedLength>=this.bufferSize){if(this.bufferSize===this.unresolvedDataArray[0].length)return this.unresolvedLength-=this.bufferSize,this.unresolvedDataArray.shift();var e=(t=Buffer.concat(this.unresolvedDataArray,this.unresolvedLength)).slice(0,this.bufferSize);return t=t.slice(this.bufferSize),this.unresolvedDataArray=[t],this.unresolvedLength-=e.length,e}if(this.unresolvedLength>0){var t=Buffer.concat(this.unresolvedDataArray,this.unresolvedLength);return this.unresolvedDataArray=[],this.unresolvedLength=0,t}return Buffer.allocUnsafe(0)},e.prototype.resolveData=function(){for(;this.unresolvedLength>=this.bufferSize;){var e=void 0;if(this.incoming.length>0)e=this.incoming.shift();else{if(!(this.numBuffers<this.maxBuffers))return!1;e=Buffer.allocUnsafe(this.bufferSize),this.numBuffers++}e.fill(this.shiftBufferFromUnresolvedDataArray()),this.outgoing.push(e),this.triggerOutgoingHandlers()}return!0},e.prototype.triggerOutgoingHandlers=function(){return n.__awaiter(this,void 0,void 0,(function(){var e;return n.__generator(this,(function(t){do{if(this.executingOutgoingHandlers>=this.concurrency)return[2];(e=this.outgoing.shift())&&this.triggerOutgoingHandler(e)}while(e);return[2]}))}))},e.prototype.triggerOutgoingHandler=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t,r;return n.__generator(this,(function(n){switch(n.label){case 0:t=e.length,this.executingOutgoingHandlers++,this.offset+=t,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.outgoingHandler(e,this.offset-t)];case 2:return n.sent(),[3,4];case 3:return r=n.sent(),this.emitter.emit("error",r),[2];case 4:return this.executingOutgoingHandlers--,this.reuseBuffer(e),this.emitter.emit("checkEnd"),[2]}}))}))},e.prototype.reuseBuffer=function(e){this.incoming.push(e),this.isError||!this.resolveData()||this.isStreamEnd||this.readable.resume()},e}();function za(e){var t=(e._response.parsedBody.pageRange||[]).map((function(e){return{offset:e.start,count:e.end-e.start}})),r=(e._response.parsedBody.clearRange||[]).map((function(e){return{offset:e.start,count:e.end-e.start}}));return n.__assign(n.__assign({},e),{pageRange:t,clearRange:r,_response:n.__assign(n.__assign({},e._response),{parsedBody:{pageRange:t,clearRange:r}})})}var Ba=function(e){function r(t){var r,a=this,i=t.blobClient,o=t.copySource,s=t.intervalInMs,u=void 0===s?15e3:s,l=t.onProgress,c=t.resumeFrom,p=t.startCopyFromURLOptions;c&&(r=JSON.parse(c).state);var d=Va(n.__assign(n.__assign({},r),{blobClient:i,copySource:o,startCopyFromURLOptions:p}));return a=e.call(this,d)||this,"function"==typeof l&&a.onProgress(l),a.intervalInMs=u,a}return n.__extends(r,e),r.prototype.delay=function(){return t.delay(this.intervalInMs)},r}(f.Poller),Ua=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,r;return n.__generator(this,(function(n){switch(n.label){case 0:return t=this.state,r=t.copyId,t.isCompleted?[2,Va(t)]:r?[4,t.blobClient.abortCopyFromURL(r,{abortSignal:e.abortSignal})]:(t.isCancelled=!0,[2,Va(t)]);case 1:return n.sent(),t.isCancelled=!0,[2,Va(t)]}}))}))},qa=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,r,a,i,o,s,u,l,c;return n.__generator(this,(function(n){switch(n.label){case 0:return t=this.state,r=t.blobClient,a=t.copySource,i=t.startCopyFromURLOptions,t.isStarted?[3,2]:(t.isStarted=!0,[4,r.startCopyFromURL(a,i)]);case 1:return o=n.sent(),t.copyId=o.copyId,"success"===o.copyStatus&&(t.result=o,t.isCompleted=!0),[3,6];case 2:if(t.isCompleted)return[3,6];n.label=3;case 3:return n.trys.push([3,5,,6]),[4,t.blobClient.getProperties({abortSignal:e.abortSignal})];case 4:return o=n.sent(),s=o.copyStatus,u=o.copyProgress,l=t.copyProgress,u&&(t.copyProgress=u),"pending"===s&&u!==l&&"function"==typeof e.fireProgress?e.fireProgress(t):"success"===s?(t.result=o,t.isCompleted=!0):"failed"===s&&(t.error=new Error('Blob copy failed with reason: "'+(o.copyStatusDescription||"unknown")+'"'),t.isCompleted=!0),[3,6];case 5:return c=n.sent(),t.error=c,t.isCompleted=!0,[3,6];case 6:return[2,Va(t)]}}))}))},$a=function(){return JSON.stringify({state:this.state},(function(e,t){if("blobClient"!==e)return t}))};function Va(e){return{state:n.__assign({},e),cancel:Ua,toString:$a,update:qa}}var Ha=function(e){function a(n,r,a,i){var o,s,u,l=this;if(i=i||{},r instanceof pa)u=n,s=r;else if(t.isNode&&r instanceof Na||r instanceof Pa||t.isTokenCredential(r))u=n,s=da(r,i=a);else if(r||"string"==typeof r){if(!r||"string"!=typeof r||!a||"string"!=typeof a)throw new Error("Expecting non-empty strings for containerName and blobName parameters");var c=r,p=a,d=Hr(n);if("AccountConnString"===d.kind){var f=new Na(d.accountName,d.accountKey);u=Wr(Wr(d.url,encodeURIComponent(c)),encodeURIComponent(p)),i.proxyOptions=t.getDefaultProxySettings(d.proxyUri),s=da(f,i)}else{if("SASConnString"!==d.kind)throw new Error("Connection string must be either an Account connection string or a SAS connection string");u=Wr(Wr(d.url,encodeURIComponent(c)),encodeURIComponent(p))+"?"+d.accountSas,s=da(new Pa,i)}}else u=n,s=da(new Pa,i);return o=(l=e.call(this,u,s)||this).getBlobAndContainerNamesFromUrl(),l._name=o.blobName,l._containerName=o.containerName,l.blobContext=new Pn(l.storageClientContext),l}return n.__extends(a,e),Object.defineProperty(a.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"containerName",{get:function(){return this._containerName},enumerable:!0,configurable:!0}),a.prototype.withSnapshot=function(e){return new a(Gr(this.url,Ar.SNAPSHOT,0===e.length?void 0:e),this.pipeline)},a.prototype.getAppendBlobClient=function(){return new Wa(this.url,this.pipeline)},a.prototype.getBlockBlobClient=function(){return new Ga(this.url,this.pipeline)},a.prototype.getPageBlobClient=function(){return new Ka(this.url,this.pipeline)},a.prototype.download=function(e,a,i){return void 0===e&&(e=0),void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l,c,p=this;return n.__generator(this,(function(d){switch(d.label){case 0:i.conditions=i.conditions||{},i.conditions=i.conditions||{},wa(i.customerProvidedKey,this.isHttps),o=Aa("BlobClient-download",i.tracingOptions),s=o.span,u=o.spanOptions,d.label=1;case 1:return d.trys.push([1,3,4,5]),[4,this.blobContext.download({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:i.conditions,onDownloadProgress:t.isNode?void 0:i.onProgress,range:0!==e||a?va({offset:e,count:a}):void 0,rangeGetContentMD5:i.rangeGetContentMD5,rangeGetContentCRC64:i.rangeGetContentCrc64,snapshot:i.snapshot,cpkInfo:i.customerProvidedKey,spanOptions:u})];case 2:if(l=d.sent(),(void 0===i.maxRetryRequests||i.maxRetryRequests<0)&&(i.maxRetryRequests=5),void 0===l.contentLength)throw new RangeError("File download response doesn't contain valid content length header");if(!l.etag)throw new RangeError("File download response doesn't contain valid etag header");return[2,new ya(l,(function(t){return n.__awaiter(p,void 0,void 0,(function(){var r;return n.__generator(this,(function(a){switch(a.label){case 0:return r={leaseAccessConditions:i.conditions,modifiedAccessConditions:{ifMatch:i.conditions.ifMatch||l.etag,ifModifiedSince:i.conditions.ifModifiedSince,ifNoneMatch:i.conditions.ifNoneMatch,ifUnmodifiedSince:i.conditions.ifUnmodifiedSince},range:va({count:e+l.contentLength-t,offset:t}),rangeGetContentMD5:i.rangeGetContentMD5,rangeGetContentCRC64:i.rangeGetContentCrc64,snapshot:i.snapshot,cpkInfo:i.customerProvidedKey},[4,this.blobContext.download(n.__assign({abortSignal:i.abortSignal},r))];case 1:return[2,a.sent().readableStreamBody]}}))}))}),e,l.contentLength,{abortSignal:i.abortSignal,maxRetryRequests:i.maxRetryRequests,onProgress:i.onProgress})];case 3:throw c=d.sent(),s.setStatus({code:r.CanonicalCode.UNKNOWN,message:c.message}),c;case 4:return s.end(),[7];case 5:return[2]}}))}))},a.prototype.exists=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(s){switch(s.label){case 0:t=Aa("BlobClient-exists",e.tracingOptions),a=t.span,i=t.spanOptions,s.label=1;case 1:return s.trys.push([1,3,4,5]),wa(e.customerProvidedKey,this.isHttps),[4,this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,tracingOptions:n.__assign(n.__assign({},e.tracingOptions),{spanOptions:i})})];case 2:return s.sent(),[2,!0];case 3:if(404===(o=s.sent()).statusCode)return a.setStatus({code:r.CanonicalCode.NOT_FOUND,message:"Expected exception when checking blob existence"}),[2,!1];throw a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.getProperties=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:t=Aa("BlobClient-getProperties",e.tracingOptions),a=t.span,i=t.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),e.conditions=e.conditions||{},wa(e.customerProvidedKey,this.isHttps),[4,this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:e.conditions,cpkInfo:e.customerProvidedKey,spanOptions:i})];case 2:return[2,n.sent()];case 3:throw o=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.delete=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:t=Aa("BlobClient-delete",e.tracingOptions),a=t.span,i=t.spanOptions,e.conditions=e.conditions||{},n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.blobContext.deleteMethod({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:e.conditions,spanOptions:i})];case 2:return[2,n.sent()];case 3:throw o=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.undelete=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:t=Aa("BlobClient-undelete",e.tracingOptions),a=t.span,i=t.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.blobContext.undelete({abortSignal:e.abortSignal,spanOptions:i})];case 2:return[2,n.sent()];case 3:throw o=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.setHTTPHeaders=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("BlobClient-setHTTPHeaders",t.tracingOptions),i=a.span,o=a.spanOptions,t.conditions=t.conditions||{},n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(t.customerProvidedKey,this.isHttps),[4,this.blobContext.setHTTPHeaders({abortSignal:t.abortSignal,blobHTTPHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:t.conditions,cpkInfo:t.customerProvidedKey,spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.setMetadata=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("BlobClient-setMetadata",t.tracingOptions),i=a.span,o=a.spanOptions,t.conditions=t.conditions||{},n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(t.customerProvidedKey,this.isHttps),[4,this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:t.conditions,cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.getBlobLeaseClient=function(e){return new Ya(this,e)},a.prototype.createSnapshot=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:t=Aa("BlobClient-createSnapshot",e.tracingOptions),a=t.span,i=t.spanOptions,e.conditions=e.conditions||{},n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(e.customerProvidedKey,this.isHttps),[4,this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:e.conditions,cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,spanOptions:i})];case 2:return[2,n.sent()];case 3:throw o=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.beginCopyFromURL=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var r,a,i=this;return n.__generator(this,(function(n){switch(n.label){case 0:return r={abortCopyFromURL:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.abortCopyFromURL.apply(i,e)},getProperties:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.getProperties.apply(i,e)},startCopyFromURL:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.startCopyFromURL.apply(i,e)}},[4,(a=new Ba({blobClient:r,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t})).poll()];case 1:return n.sent(),[2,a]}}))}))},a.prototype.abortCopyFromURL=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("BlobClient-abortCopyFromURL",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.syncCopyFromURL=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("BlobClient-syncCopyFromURL",t.tracingOptions),i=a.span,o=a.spanOptions,t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:t.conditions,sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.setAccessTier=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("BlobClient-setAccessTier",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.blobContext.setTier(ba(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,rehydratePriority:t.rehydratePriority,spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.downloadToBuffer=function(e,t,a,i){return void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l,c,p,d,f,m,h,g,y,v,b=this;return n.__generator(this,(function(w){switch(w.label){case 0:s=0,u=0,l=i,e instanceof Buffer?(o=e,s=t||0,u="number"==typeof a?a:0):(s="number"==typeof e?e:0,u="number"==typeof t?t:0,l=a||{}),c=Aa("BlobClient-downloadToBuffer",l.tracingOptions),p=c.span,d=c.spanOptions,w.label=1;case 1:if(w.trys.push([1,5,6,7]),l.blockSize||(l.blockSize=0),l.blockSize<0)throw new RangeError("blockSize option must be >= 0");if(0===l.blockSize&&(l.blockSize=Pr),s<0)throw new RangeError("offset option must be >= 0");if(u&&u<=0)throw new RangeError("count option must be > 0");return l.conditions||(l.conditions={}),u?[3,3]:[4,this.getProperties(n.__assign(n.__assign({},l),{tracingOptions:n.__assign(n.__assign({},l.tracingOptions),{spanOptions:d})}))];case 2:if(f=w.sent(),(u=f.contentLength-s)<0)throw new RangeError("offset "+s+" shouldn't be larger than blob size "+f.contentLength);w.label=3;case 3:if(!o)try{o=Buffer.alloc(u)}catch(e){throw new Error("Unable to allocate the buffer of size: "+u+'(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t '+e.message)}if(o.length<u)throw new RangeError("The buffer's size should be equal to or larger than the request count of bytes: "+u);for(m=0,h=new Ta(l.concurrency),g=function(e){h.addOperation((function(){return n.__awaiter(b,void 0,void 0,(function(){var t,r;return n.__generator(this,(function(a){switch(a.label){case 0:return t=s+u,e+l.blockSize<t&&(t=e+l.blockSize),[4,this.download(e,t-e,{abortSignal:l.abortSignal,conditions:l.conditions,maxRetryRequests:l.maxRetryRequestsPerBlock,tracingOptions:n.__assign(n.__assign({},l.tracingOptions),{spanOptions:d})})];case 1:return r=a.sent(),[4,_a(r.readableStreamBody,o,e-s,t-s)];case 2:return a.sent(),m+=t-e,l.onProgress&&l.onProgress({loadedBytes:m}),[2]}}))}))}))},y=s;y<s+u;y+=l.blockSize)g(y);return[4,h.do()];case 4:return w.sent(),[2,o];case 5:throw v=w.sent(),p.setStatus({code:r.CanonicalCode.UNKNOWN,message:v.message}),v;case 6:return p.end(),[7];case 7:return[2]}}))}))},a.prototype.downloadToFile=function(e,t,a,i){return void 0===t&&(t=0),void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l,c;return n.__generator(this,(function(p){switch(p.label){case 0:o=Aa("BlobClient-downloadToFile",i.tracingOptions),s=o.span,u=o.spanOptions,p.label=1;case 1:return p.trys.push([1,5,6,7]),[4,this.download(t,a,n.__assign(n.__assign({},i),{tracingOptions:n.__assign(n.__assign({},i.tracingOptions),{spanOptions:u})}))];case 2:return(l=p.sent()).readableStreamBody?[4,ka(l.readableStreamBody,e)]:[3,4];case 3:p.sent(),p.label=4;case 4:return l.blobDownloadStream=void 0,[2,l];case 5:throw c=p.sent(),s.setStatus({code:r.CanonicalCode.UNKNOWN,message:c.message}),c;case 6:return s.end(),[7];case 7:return[2]}}))}))},a.prototype.getBlobAndContainerNamesFromUrl=function(){var e,n;try{var r,a=t.URLBuilder.parse(this.url);if("blob"===a.getHost().split(".")[1])e=(r=a.getPath().match("/([^/]*)(/(.*))?"))[1],n=r[3];else e=(r=a.getPath().match("/([^/]*)/([^/]*)(/(.*))?"))[2],n=r[4];if(e=decodeURIComponent(e),!(n=(n=decodeURIComponent(n)).replace(/\\/g,"/")))throw new Error("Provided blobName is invalid.");if(!e)throw new Error("Provided containerName is invalid.");return{blobName:n,containerName:e}}catch(e){throw new Error("Unable to extract blobName and containerName with provided information.")}},a.prototype.startCopyFromURL=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("BlobClient-startCopyFromURL",t.tracingOptions),i=a.span,o=a.spanOptions,t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:t.conditions,sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince},rehydratePriority:t.rehydratePriority,tier:ba(t.tier),spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a}(La),Wa=function(e){function a(n,r,a,i){var o,s,u=this;if(i=i||{},r instanceof pa)s=n,o=r;else if(t.isNode&&r instanceof Na||r instanceof Pa||t.isTokenCredential(r))s=n,o=da(r,i=a);else if(r||"string"==typeof r){if(!r||"string"!=typeof r||!a||"string"!=typeof a)throw new Error("Expecting non-empty strings for containerName and blobName parameters");var l=r,c=a,p=Hr(n);if("AccountConnString"===p.kind){var d=new Na(p.accountName,p.accountKey);s=Wr(Wr(p.url,encodeURIComponent(l)),encodeURIComponent(c)),i.proxyOptions=t.getDefaultProxySettings(p.proxyUri),o=da(d,i)}else{if("SASConnString"!==p.kind)throw new Error("Connection string must be either an Account connection string or a SAS connection string");s=Wr(Wr(p.url,encodeURIComponent(l)),encodeURIComponent(c))+"?"+p.accountSas,o=da(new Pa,i)}}else s=n,o=da(new Pa,i);return(u=e.call(this,s,o)||this).appendBlobContext=new dr(u.storageClientContext),u}return n.__extends(a,e),a.prototype.withSnapshot=function(e){return new a(Gr(this.url,Ar.SNAPSHOT,0===e.length?void 0:e),this.pipeline)},a.prototype.create=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:t=Aa("AppendBlobClient-create",e.tracingOptions),a=t.span,i=t.spanOptions,e.conditions=e.conditions||{},n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(e.customerProvidedKey,this.isHttps),[4,this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHTTPHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:e.conditions,cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,spanOptions:i})];case 2:return[2,n.sent()];case 3:throw o=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.appendBlock=function(e,t,a){return void 0===a&&(a={}),n.__awaiter(this,void 0,void 0,(function(){var i,o,s,u;return n.__generator(this,(function(n){switch(n.label){case 0:i=Aa("AppendBlobClient-appendBlock",a.tracingOptions),o=i.span,s=i.spanOptions,a.conditions=a.conditions||{},n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(a.customerProvidedKey,this.isHttps),[4,this.appendBlobContext.appendBlock(e,t,{abortSignal:a.abortSignal,appendPositionAccessConditions:a.conditions,leaseAccessConditions:a.conditions,modifiedAccessConditions:a.conditions,onUploadProgress:a.onProgress,transactionalContentMD5:a.transactionalContentMD5,transactionalContentCrc64:a.transactionalContentCrc64,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,spanOptions:s})];case 2:return[2,n.sent()];case 3:throw u=n.sent(),o.setStatus({code:r.CanonicalCode.UNKNOWN,message:u.message}),u;case 4:return o.end(),[7];case 5:return[2]}}))}))},a.prototype.appendBlockFromURL=function(e,t,a,i){return void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l;return n.__generator(this,(function(n){switch(n.label){case 0:o=Aa("AppendBlobClient-appendBlockFromURL",i.tracingOptions),s=o.span,u=o.spanOptions,i.conditions=i.conditions||{},i.sourceConditions=i.sourceConditions||{},n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(i.customerProvidedKey,this.isHttps),[4,this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:i.abortSignal,sourceRange:va({offset:t,count:a}),sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,appendPositionAccessConditions:i.conditions,modifiedAccessConditions:i.conditions,sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions.ifMatch,sourceIfModifiedSince:i.sourceConditions.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions.ifUnmodifiedSince},cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,spanOptions:u})];case 2:return[2,n.sent()];case 3:throw l=n.sent(),s.setStatus({code:r.CanonicalCode.UNKNOWN,message:l.message}),l;case 4:return s.end(),[7];case 5:return[2]}}))}))},a}(Ha),Ga=function(e){function a(n,r,a,i){var o,s,u=this;if(i=i||{},r instanceof pa)s=n,o=r;else if(t.isNode&&r instanceof Na||r instanceof Pa||t.isTokenCredential(r))s=n,o=da(r,i=a);else if(r||"string"==typeof r){if(!r||"string"!=typeof r||!a||"string"!=typeof a)throw new Error("Expecting non-empty strings for containerName and blobName parameters");var l=r,c=a,p=Hr(n);if("AccountConnString"===p.kind){var d=new Na(p.accountName,p.accountKey);s=Wr(Wr(p.url,encodeURIComponent(l)),encodeURIComponent(c)),i.proxyOptions=t.getDefaultProxySettings(p.proxyUri),o=da(d,i)}else{if("SASConnString"!==p.kind)throw new Error("Connection string must be either an Account connection string or a SAS connection string");s=Wr(Wr(p.url,encodeURIComponent(l)),encodeURIComponent(c))+"?"+p.accountSas,o=da(new Pa,i)}}else s=n,o=da(new Pa,i);return(u=e.call(this,s,o)||this).blockBlobContext=new vr(u.storageClientContext),u}return n.__extends(a,e),a.prototype.withSnapshot=function(e){return new a(Gr(this.url,Ar.SNAPSHOT,0===e.length?void 0:e),this.pipeline)},a.prototype.upload=function(e,t,a){return void 0===a&&(a={}),n.__awaiter(this,void 0,void 0,(function(){var i,o,s,u;return n.__generator(this,(function(n){switch(n.label){case 0:a.conditions=a.conditions||{},i=Aa("BlockBlobClient-upload",a.tracingOptions),o=i.span,s=i.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(a.customerProvidedKey,this.isHttps),[4,this.blockBlobContext.upload(e,t,{abortSignal:a.abortSignal,blobHTTPHeaders:a.blobHTTPHeaders,leaseAccessConditions:a.conditions,metadata:a.metadata,modifiedAccessConditions:a.conditions,onUploadProgress:a.onProgress,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,tier:ba(a.tier),spanOptions:s})];case 2:return[2,n.sent()];case 3:throw u=n.sent(),o.setStatus({code:r.CanonicalCode.UNKNOWN,message:u.message}),u;case 4:return o.end(),[7];case 5:return[2]}}))}))},a.prototype.stageBlock=function(e,t,a,i){return void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l;return n.__generator(this,(function(n){switch(n.label){case 0:o=Aa("BlockBlobClient-stageBlock",i.tracingOptions),s=o.span,u=o.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(i.customerProvidedKey,this.isHttps),[4,this.blockBlobContext.stageBlock(e,a,t,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,onUploadProgress:i.onProgress,transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,spanOptions:u})];case 2:return[2,n.sent()];case 3:throw l=n.sent(),s.setStatus({code:r.CanonicalCode.UNKNOWN,message:l.message}),l;case 4:return s.end(),[7];case 5:return[2]}}))}))},a.prototype.stageBlockFromURL=function(e,t,a,i,o){return void 0===a&&(a=0),void 0===o&&(o={}),n.__awaiter(this,void 0,void 0,(function(){var s,u,l,c;return n.__generator(this,(function(n){switch(n.label){case 0:s=Aa("BlockBlobClient-stageBlockFromURL",o.tracingOptions),u=s.span,l=s.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(o.customerProvidedKey,this.isHttps),[4,this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,sourceRange:0!==a||i?va({offset:a,count:i}):void 0,cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,spanOptions:l})];case 2:return[2,n.sent()];case 3:throw c=n.sent(),u.setStatus({code:r.CanonicalCode.UNKNOWN,message:c.message}),c;case 4:return u.end(),[7];case 5:return[2]}}))}))},a.prototype.commitBlockList=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:t.conditions=t.conditions||{},a=Aa("BlockBlobClient-commitBlockList",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(t.customerProvidedKey,this.isHttps),[4,this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHTTPHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:t.conditions,cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tier:ba(t.tier),spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.getBlockList=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s,u;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("BlockBlobClient-getBlockList",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,spanOptions:o})];case 2:return(s=n.sent()).committedBlocks||(s.committedBlocks=[]),s.uncommittedBlocks||(s.uncommittedBlocks=[]),[2,s];case 3:throw u=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:u.message}),u;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.uploadBrowserData=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s,u;return n.__generator(this,(function(l){switch(l.label){case 0:a=Aa("BlockBlobClient-uploadBrowserData",t.tracingOptions),i=a.span,o=a.spanOptions,l.label=1;case 1:return l.trys.push([1,3,4,5]),s=new Blob([e]),[4,this.uploadSeekableBlob((function(e,t){return s.slice(e,e+t)}),s.size,n.__assign(n.__assign({},t),{tracingOptions:n.__assign(n.__assign({},t.tracingOptions),{spanOptions:o})}))];case 2:return[2,l.sent()];case 3:throw u=l.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:u.message}),u;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.uploadSeekableBlob=function(e,a,i){return void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l,c,p,d,f,m,h,g,y=this;return n.__generator(this,(function(v){switch(v.label){case 0:if(i.blockSize||(i.blockSize=0),i.blockSize<0||i.blockSize>Nr)throw new RangeError("blockSize option must be >= 0 and <= "+Nr);if(0===i.maxSingleShotSize||i.maxSingleShotSize||(i.maxSingleShotSize=Or),i.maxSingleShotSize<0||i.maxSingleShotSize>Or)throw new RangeError("maxSingleShotSize option must be >= 0 and <= "+Or);if(0===i.blockSize){if(a>524288e7)throw new RangeError(a+" is too larger to upload to a block blob.");a>i.maxSingleShotSize&&(i.blockSize=Math.ceil(a/jr),i.blockSize<Pr&&(i.blockSize=Pr))}i.blobHTTPHeaders||(i.blobHTTPHeaders={}),i.conditions||(i.conditions={}),o=Aa("BlockBlobClient-UploadSeekableBlob",i.tracingOptions),s=o.span,u=o.spanOptions,v.label=1;case 1:return v.trys.push([1,5,6,7]),a<=i.maxSingleShotSize?[4,this.upload(e(0,a),a,n.__assign(n.__assign({},i),{tracingOptions:n.__assign(n.__assign({},i.tracingOptions),{spanOptions:u})}))]:[3,3];case 2:return[2,v.sent()];case 3:if((l=Math.floor((a-1)/i.blockSize)+1)>jr)throw new RangeError("The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= "+jr);for(c=[],p=t.generateUuid(),d=0,f=new Ta(i.concurrency),m=function(t){f.addOperation((function(){return n.__awaiter(y,void 0,void 0,(function(){var r,o,s,f;return n.__generator(this,(function(m){switch(m.label){case 0:return r=Xr(p,t),o=i.blockSize*t,s=t===l-1?a:o+i.blockSize,f=s-o,c.push(r),[4,this.stageBlock(r,e(o,f),f,{abortSignal:i.abortSignal,conditions:i.conditions,encryptionScope:i.encryptionScope,tracingOptions:n.__assign(n.__assign({},i.tracingOptions),{spanOptions:u})})];case 1:return m.sent(),d+=f,i.onProgress&&i.onProgress({loadedBytes:d}),[2]}}))}))}))},h=0;h<l;h++)m(h);return[4,f.do()];case 4:return v.sent(),[2,this.commitBlockList(c,n.__assign(n.__assign({},i),{tracingOptions:n.__assign(n.__assign({},i.tracingOptions),{spanOptions:u})}))];case 5:throw g=v.sent(),s.setStatus({code:r.CanonicalCode.UNKNOWN,message:g.message}),g;case 6:return s.end(),[7];case 7:return[2]}}))}))},a.prototype.uploadFile=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s,l;return n.__generator(this,(function(c){switch(c.label){case 0:a=Aa("BlockBlobClient-uploadFile",t.tracingOptions),i=a.span,o=a.spanOptions,c.label=1;case 1:return c.trys.push([1,4,5,6]),[4,Ea(e)];case 2:return s=c.sent().size,[4,this.uploadResetableStream((function(t,n){return u.createReadStream(e,{autoClose:!0,end:n?t+n-1:1/0,start:t})}),s,n.__assign(n.__assign({},t),{tracingOptions:n.__assign(n.__assign({},t.tracingOptions),{spanOptions:o})}))];case 3:return[2,c.sent()];case 4:throw l=c.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:l.message}),l;case 5:return i.end(),[7];case 6:return[2]}}))}))},a.prototype.uploadStream=function(e,a,i,o){return void 0===a&&(a=8388608),void 0===i&&(i=5),void 0===o&&(o={}),n.__awaiter(this,void 0,void 0,(function(){var s,u,l,c,p,d,f,m,h,g=this;return n.__generator(this,(function(y){switch(y.label){case 0:o.blobHTTPHeaders||(o.blobHTTPHeaders={}),o.conditions||(o.conditions={}),s=Aa("BlockBlobClient-uploadStream",o.tracingOptions),u=s.span,l=s.spanOptions,y.label=1;case 1:return y.trys.push([1,4,5,6]),c=0,p=t.generateUuid(),d=0,f=[],m=new Fa(e,a,i,(function(e){return n.__awaiter(g,void 0,void 0,(function(){var t;return n.__generator(this,(function(r){switch(r.label){case 0:return t=Xr(p,c),f.push(t),c++,[4,this.stageBlock(t,e,e.length,{conditions:o.conditions,encryptionScope:o.encryptionScope,tracingOptions:n.__assign(n.__assign({},o.tracingOptions),{spanOptions:l})})];case 1:return r.sent(),d+=e.length,o.onProgress&&o.onProgress({loadedBytes:d}),[2]}}))}))}),Math.ceil(i/4*3)),[4,m.do()];case 2:return y.sent(),[4,this.commitBlockList(f,n.__assign(n.__assign({},o),{tracingOptions:n.__assign(n.__assign({},o.tracingOptions),{spanOptions:l})}))];case 3:return[2,y.sent()];case 4:throw h=y.sent(),u.setStatus({code:r.CanonicalCode.UNKNOWN,message:h.message}),h;case 5:return u.end(),[7];case 6:return[2]}}))}))},a.prototype.uploadResetableStream=function(e,a,i){return void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l,c,p,d,f,m,h,g,y=this;return n.__generator(this,(function(v){switch(v.label){case 0:if(i.blockSize||(i.blockSize=0),i.blockSize<0||i.blockSize>Nr)throw new RangeError("blockSize option must be >= 0 and <= "+Nr);if(0===i.maxSingleShotSize||i.maxSingleShotSize||(i.maxSingleShotSize=Or),i.maxSingleShotSize<0||i.maxSingleShotSize>Or)throw new RangeError("maxSingleShotSize option must be >= 0 and <= "+Or);if(0===i.blockSize){if(a>524288e7)throw new RangeError(a+" is too larger to upload to a block blob.");a>i.maxSingleShotSize&&(i.blockSize=Math.ceil(a/jr),i.blockSize<Pr&&(i.blockSize=Pr))}i.blobHTTPHeaders||(i.blobHTTPHeaders={}),i.conditions||(i.conditions={}),o=Aa("BlockBlobClient-uploadResetableStream",i.tracingOptions),s=o.span,u=o.spanOptions,v.label=1;case 1:return v.trys.push([1,6,7,8]),a<=i.maxSingleShotSize?[4,this.upload((function(){return e(0)}),a,n.__assign(n.__assign({},i),{tracingOptions:n.__assign(n.__assign({},i.tracingOptions),{spanOptions:u})}))]:[3,3];case 2:return[2,v.sent()];case 3:if((l=Math.floor((a-1)/i.blockSize)+1)>jr)throw new RangeError("The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= "+jr);for(c=[],p=t.generateUuid(),d=0,f=new Ta(i.concurrency),m=function(t){f.addOperation((function(){return n.__awaiter(y,void 0,void 0,(function(){var r,o,s,f;return n.__generator(this,(function(m){switch(m.label){case 0:return r=Xr(p,t),o=i.blockSize*t,s=t===l-1?a:o+i.blockSize,f=s-o,c.push(r),[4,this.stageBlock(r,(function(){return e(o,f)}),f,{abortSignal:i.abortSignal,conditions:i.conditions,encryptionScope:i.encryptionScope,tracingOptions:n.__assign(n.__assign({},i.tracingOptions),{spanOptions:u})})];case 1:return m.sent(),d+=f,i.onProgress&&i.onProgress({loadedBytes:d}),[2]}}))}))}))},h=0;h<l;h++)m(h);return[4,f.do()];case 4:return v.sent(),[4,this.commitBlockList(c,n.__assign(n.__assign({},i),{tracingOptions:n.__assign(n.__assign({},i.tracingOptions),{spanOptions:u})}))];case 5:return[2,v.sent()];case 6:throw g=v.sent(),s.setStatus({code:r.CanonicalCode.UNKNOWN,message:g.message}),g;case 7:return s.end(),[7];case 8:return[2]}}))}))},a}(Ha),Ka=function(e){function a(n,r,a,i){var o,s,u=this;if(i=i||{},r instanceof pa)s=n,o=r;else if(t.isNode&&r instanceof Na||r instanceof Pa||t.isTokenCredential(r))s=n,o=da(r,i=a);else if(r||"string"==typeof r){if(!r||"string"!=typeof r||!a||"string"!=typeof a)throw new Error("Expecting non-empty strings for containerName and blobName parameters");var l=r,c=a,p=Hr(n);if("AccountConnString"===p.kind){var d=new Na(p.accountName,p.accountKey);s=Wr(Wr(p.url,encodeURIComponent(l)),encodeURIComponent(c)),i.proxyOptions=t.getDefaultProxySettings(p.proxyUri),o=da(d,i)}else{if("SASConnString"!==p.kind)throw new Error("Connection string must be either an Account connection string or a SAS connection string");s=Wr(Wr(p.url,encodeURIComponent(l)),encodeURIComponent(c))+"?"+p.accountSas,o=da(new Pa,i)}}else s=n,o=da(new Pa,i);return(u=e.call(this,s,o)||this).pageBlobContext=new er(u.storageClientContext),u}return n.__extends(a,e),a.prototype.withSnapshot=function(e){return new a(Gr(this.url,Ar.SNAPSHOT,0===e.length?void 0:e),this.pipeline)},a.prototype.create=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:t.conditions=t.conditions||{},a=Aa("PageBlobClient-create",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(t.customerProvidedKey,this.isHttps),[4,this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHTTPHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:t.conditions,cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tier:ba(t.tier),spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.uploadPages=function(e,t,a,i){return void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l;return n.__generator(this,(function(n){switch(n.label){case 0:i.conditions=i.conditions||{},o=Aa("PageBlobClient-uploadPages",i.tracingOptions),s=o.span,u=o.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(i.customerProvidedKey,this.isHttps),[4,this.pageBlobContext.uploadPages(e,a,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:i.conditions,onUploadProgress:i.onProgress,range:va({offset:t,count:a}),sequenceNumberAccessConditions:i.conditions,transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,spanOptions:u})];case 2:return[2,n.sent()];case 3:throw l=n.sent(),s.setStatus({code:r.CanonicalCode.UNKNOWN,message:l.message}),l;case 4:return s.end(),[7];case 5:return[2]}}))}))},a.prototype.uploadPagesFromURL=function(e,t,a,i,o){return void 0===o&&(o={}),n.__awaiter(this,void 0,void 0,(function(){var s,u,l,c;return n.__generator(this,(function(n){switch(n.label){case 0:o.conditions=o.conditions||{},o.sourceConditions=o.sourceConditions||{},s=Aa("PageBlobClient-uploadPagesFromURL",o.tracingOptions),u=s.span,l=s.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(o.customerProvidedKey,this.isHttps),[4,this.pageBlobContext.uploadPagesFromURL(e,va({offset:t,count:i}),0,va({offset:a,count:i}),{abortSignal:o.abortSignal,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,leaseAccessConditions:o.conditions,sequenceNumberAccessConditions:o.conditions,modifiedAccessConditions:o.conditions,sourceModifiedAccessConditions:{sourceIfMatch:o.sourceConditions.ifMatch,sourceIfModifiedSince:o.sourceConditions.ifModifiedSince,sourceIfNoneMatch:o.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:o.sourceConditions.ifUnmodifiedSince},cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,spanOptions:l})];case 2:return[2,n.sent()];case 3:throw c=n.sent(),u.setStatus({code:r.CanonicalCode.UNKNOWN,message:c.message}),c;case 4:return u.end(),[7];case 5:return[2]}}))}))},a.prototype.clearPages=function(e,t,a){return void 0===e&&(e=0),void 0===a&&(a={}),n.__awaiter(this,void 0,void 0,(function(){var i,o,s,u;return n.__generator(this,(function(n){switch(n.label){case 0:a.conditions=a.conditions||{},i=Aa("PageBlobClient-clearPages",a.tracingOptions),o=i.span,s=i.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.pageBlobContext.clearPages(0,{abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:a.conditions,range:va({offset:e,count:t}),sequenceNumberAccessConditions:a.conditions,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,spanOptions:s})];case 2:return[2,n.sent()];case 3:throw u=n.sent(),o.setStatus({code:r.CanonicalCode.UNKNOWN,message:u.message}),u;case 4:return o.end(),[7];case 5:return[2]}}))}))},a.prototype.getPageRanges=function(e,t,a){return void 0===e&&(e=0),void 0===a&&(a={}),n.__awaiter(this,void 0,void 0,(function(){var i,o,s,u;return n.__generator(this,(function(n){switch(n.label){case 0:a.conditions=a.conditions||{},i=Aa("PageBlobClient-getPageRanges",a.tracingOptions),o=i.span,s=i.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.pageBlobContext.getPageRanges({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:a.conditions,range:va({offset:e,count:t}),spanOptions:s}).then(za)];case 2:return[2,n.sent()];case 3:throw u=n.sent(),o.setStatus({code:r.CanonicalCode.UNKNOWN,message:u.message}),u;case 4:return o.end(),[7];case 5:return[2]}}))}))},a.prototype.getPageRangesDiff=function(e,t,a,i){return void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l;return n.__generator(this,(function(n){switch(n.label){case 0:i.conditions=i.conditions||{},o=Aa("PageBlobClient-getPageRangesDiff",i.tracingOptions),s=o.span,u=o.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.pageBlobContext.getPageRangesDiff({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:i.conditions,prevsnapshot:a,range:va({offset:e,count:t}),spanOptions:u}).then(za)];case 2:return[2,n.sent()];case 3:throw l=n.sent(),s.setStatus({code:r.CanonicalCode.UNKNOWN,message:l.message}),l;case 4:return s.end(),[7];case 5:return[2]}}))}))},a.prototype.getPageRangesDiffForManagedDisks=function(e,t,a,i){return void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l;return n.__generator(this,(function(n){switch(n.label){case 0:i.conditions=i.conditions||{},o=Aa("PageBlobClient-GetPageRangesDiffForManagedDisks",i.tracingOptions),s=o.span,u=o.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.pageBlobContext.getPageRangesDiff({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:i.conditions,prevSnapshotUrl:a,range:va({offset:e,count:t}),spanOptions:u}).then(za)];case 2:return[2,n.sent()];case 3:throw l=n.sent(),s.setStatus({code:r.CanonicalCode.UNKNOWN,message:l.message}),l;case 4:return s.end(),[7];case 5:return[2]}}))}))},a.prototype.resize=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:t.conditions=t.conditions||{},a=Aa("PageBlobClient-resize",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:t.conditions,encryptionScope:t.encryptionScope,spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.updateSequenceNumber=function(e,t,a){return void 0===a&&(a={}),n.__awaiter(this,void 0,void 0,(function(){var i,o,s,u;return n.__generator(this,(function(n){switch(n.label){case 0:a.conditions=a.conditions||{},i=Aa("PageBlobClient-updateSequenceNumber",a.tracingOptions),o=i.span,s=i.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.pageBlobContext.updateSequenceNumber(e,{abortSignal:a.abortSignal,blobSequenceNumber:t,leaseAccessConditions:a.conditions,modifiedAccessConditions:a.conditions,spanOptions:s})];case 2:return[2,n.sent()];case 3:throw u=n.sent(),o.setStatus({code:r.CanonicalCode.UNKNOWN,message:u.message}),u;case 4:return o.end(),[7];case 5:return[2]}}))}))},a.prototype.startCopyIncremental=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("PageBlobClient-startCopyIncremental",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:t.conditions,spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a}(Ha),Ya=function(){function e(e,n){var r=new Ma(e.url,e.pipeline.toServiceClientOptions());this._url=e.url,this._containerOrBlobOperation=e instanceof Qa?new mn(r):new Pn(r),n||(n=t.generateUuid()),this._leaseId=n}return Object.defineProperty(e.prototype,"leaseId",{get:function(){return this._leaseId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._url},enumerable:!0,configurable:!0}),e.prototype.acquireLease=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("BlobLeaseClient-acquireLease",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:t.conditions,proposedLeaseId:this._leaseId,spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},e.prototype.changeLease=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s,u;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("BlobLeaseClient-changeLease",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:t.conditions,spanOptions:o})];case 2:return s=n.sent(),this._leaseId=e,[2,s];case 3:throw u=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:u.message}),u;case 4:return i.end(),[7];case 5:return[2]}}))}))},e.prototype.releaseLease=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:t=Aa("BlobLeaseClient-releaseLease",e.tracingOptions),a=t.span,i=t.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:e.conditions,spanOptions:i})];case 2:return[2,n.sent()];case 3:throw o=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},e.prototype.renewLease=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:t=Aa("BlobLeaseClient-renewLease",e.tracingOptions),a=t.span,i=t.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:e.conditions,spanOptions:i})];case 2:return[2,n.sent()];case 3:throw o=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},e.prototype.breakLease=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s,u;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("BlobLeaseClient-breakLease",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),s={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:t.conditions,spanOptions:o},[4,this._containerOrBlobOperation.breakLease(s)];case 2:return[2,n.sent()];case 3:throw u=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:u.message}),u;case 4:return i.end(),[7];case 5:return[2]}}))}))},e}(),Qa=function(e){function a(n,r,a){var i,o,s=this;if(a=a||{},r instanceof pa)o=n,i=r;else if(t.isNode&&r instanceof Na||r instanceof Pa||t.isTokenCredential(r))o=n,i=da(r,a);else if(r||"string"==typeof r){if(!r||"string"!=typeof r)throw new Error("Expecting non-empty strings for containerName parameter");var u=r,l=Hr(n);if("AccountConnString"===l.kind){var c=new Na(l.accountName,l.accountKey);o=Wr(l.url,encodeURIComponent(u)),a.proxyOptions=t.getDefaultProxySettings(l.proxyUri),i=da(c,a)}else{if("SASConnString"!==l.kind)throw new Error("Connection string must be either an Account connection string or a SAS connection string");o=Wr(l.url,encodeURIComponent(u))+"?"+l.accountSas,i=da(new Pa,a)}}else o=n,i=da(new Pa,a);return(s=e.call(this,o,i)||this)._containerName=s.getContainerNameFromUrl(),s.containerContext=new mn(s.storageClientContext),s}return n.__extends(a,e),Object.defineProperty(a.prototype,"containerName",{get:function(){return this._containerName},enumerable:!0,configurable:!0}),a.prototype.create=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(s){switch(s.label){case 0:t=Aa("ContainerClient-create",e.tracingOptions),a=t.span,i=t.spanOptions,s.label=1;case 1:return s.trys.push([1,3,4,5]),[4,this.containerContext.create(n.__assign(n.__assign({},e),{spanOptions:i}))];case 2:return[2,s.sent()];case 3:throw o=s.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.exists=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(s){switch(s.label){case 0:t=Aa("ContainerClient-exists",e.tracingOptions),a=t.span,i=t.spanOptions,s.label=1;case 1:return s.trys.push([1,3,4,5]),[4,this.getProperties({abortSignal:e.abortSignal,tracingOptions:n.__assign(n.__assign({},e.tracingOptions),{spanOptions:i})})];case 2:return s.sent(),[2,!0];case 3:if(404===(o=s.sent()).statusCode)return a.setStatus({code:r.CanonicalCode.NOT_FOUND,message:"Expected exception when checking container existence"}),[2,!1];throw a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.getBlobClient=function(e){return new Ha(Wr(this.url,encodeURIComponent(e)),this.pipeline)},a.prototype.getAppendBlobClient=function(e){return new Wa(Wr(this.url,encodeURIComponent(e)),this.pipeline)},a.prototype.getBlockBlobClient=function(e){return new Ga(Wr(this.url,encodeURIComponent(e)),this.pipeline)},a.prototype.getPageBlobClient=function(e){return new Ka(Wr(this.url,encodeURIComponent(e)),this.pipeline)},a.prototype.getProperties=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(s){switch(s.label){case 0:e.conditions||(e.conditions={}),t=Aa("ContainerClient-getProperties",e.tracingOptions),a=t.span,i=t.spanOptions,s.label=1;case 1:return s.trys.push([1,3,4,5]),[4,this.containerContext.getProperties(n.__assign(n.__assign({abortSignal:e.abortSignal},e.conditions),{spanOptions:i}))];case 2:return[2,s.sent()];case 3:throw o=s.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.delete=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:if(e.conditions||(e.conditions={}),e.conditions.ifMatch&&""!==e.conditions.ifMatch||e.conditions.ifNoneMatch&&""!==e.conditions.ifNoneMatch)throw new RangeError("the IfMatch and IfNoneMatch access conditions must have their default\t values because they are ignored by the service");t=Aa("ContainerClient-delete",e.tracingOptions),a=t.span,i=t.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.containerContext.deleteMethod({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:e.conditions,spanOptions:i})];case 2:return[2,n.sent()];case 3:throw o=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.setMetadata=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:if(t.conditions||(t.conditions={}),t.conditions.ifUnmodifiedSince||t.conditions.ifMatch&&""!==t.conditions.ifMatch||t.conditions.ifNoneMatch&&""!==t.conditions.ifNoneMatch)throw new RangeError("the IfUnmodifiedSince, IfMatch, and IfNoneMatch must have their default values\t because they are ignored by the blob service");a=Aa("ContainerClient-setMetadata",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.containerContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:t.conditions,spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.getAccessPolicy=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o,s,u,l,c,p,d;return n.__generator(this,(function(n){switch(n.label){case 0:e.conditions||(e.conditions={}),t=Aa("ContainerClient-getAccessPolicy",e.tracingOptions),a=t.span,i=t.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.containerContext.getAccessPolicy({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,spanOptions:i})];case 2:for(o=n.sent(),s={_response:o._response,blobPublicAccess:o.blobPublicAccess,date:o.date,etag:o.etag,errorCode:o.errorCode,lastModified:o.lastModified,requestId:o.requestId,clientRequestId:o.clientRequestId,signedIdentifiers:[],version:o.version},u=0,l=o;u<l.length;u++)c=l[u],p=void 0,c.accessPolicy&&(p={permissions:c.accessPolicy.permissions},c.accessPolicy.expiresOn&&(p.expiresOn=new Date(c.accessPolicy.expiresOn)),c.accessPolicy.startsOn&&(p.startsOn=new Date(c.accessPolicy.startsOn))),s.signedIdentifiers.push({accessPolicy:p,id:c.id});return[2,s];case 3:throw d=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:d.message}),d;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.setAccessPolicy=function(e,t,a){return void 0===a&&(a={}),n.__awaiter(this,void 0,void 0,(function(){var i,o,s,u,l,c,p,d;return n.__generator(this,(function(n){switch(n.label){case 0:a.conditions=a.conditions||{},i=Aa("ContainerClient-setAccessPolicy",a.tracingOptions),o=i.span,s=i.spanOptions,n.label=1;case 1:for(n.trys.push([1,3,4,5]),u=[],l=0,c=t||[];l<c.length;l++)p=c[l],u.push({accessPolicy:{expiresOn:p.accessPolicy.expiresOn?Qr(p.accessPolicy.expiresOn):"",permissions:p.accessPolicy.permissions,startsOn:p.accessPolicy.startsOn?Qr(p.accessPolicy.startsOn):""},id:p.id});return[4,this.containerContext.setAccessPolicy({abortSignal:a.abortSignal,access:e,containerAcl:u,leaseAccessConditions:a.conditions,modifiedAccessConditions:a.conditions,spanOptions:s})];case 2:return[2,n.sent()];case 3:throw d=n.sent(),o.setStatus({code:r.CanonicalCode.UNKNOWN,message:d.message}),d;case 4:return o.end(),[7];case 5:return[2]}}))}))},a.prototype.getBlobLeaseClient=function(e){return new Ya(this,e)},a.prototype.uploadBlockBlob=function(e,t,a,i){return void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l,c,p;return n.__generator(this,(function(d){switch(d.label){case 0:o=Aa("ContainerClient-uploadBlockBlob",i.tracingOptions),s=o.span,u=o.spanOptions,d.label=1;case 1:return d.trys.push([1,3,4,5]),[4,(l=this.getBlockBlobClient(e)).upload(t,a,n.__assign(n.__assign({},i),{tracingOptions:n.__assign(n.__assign({},i.tracingOptions),{spanOptions:u})}))];case 2:return c=d.sent(),[2,{blockBlobClient:l,response:c}];case 3:throw p=d.sent(),s.setStatus({code:r.CanonicalCode.UNKNOWN,message:p.message}),p;case 4:return s.end(),[7];case 5:return[2]}}))}))},a.prototype.deleteBlob=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(u){switch(u.label){case 0:a=Aa("ContainerClient-deleteBlob",t.tracingOptions),i=a.span,o=a.spanOptions,u.label=1;case 1:return u.trys.push([1,3,4,5]),[4,this.getBlobClient(e).delete(n.__assign(n.__assign({},t),{tracingOptions:n.__assign(n.__assign({},t.tracingOptions),{spanOptions:o})}))];case 2:return[2,u.sent()];case 3:throw s=u.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.listBlobFlatSegment=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(u){switch(u.label){case 0:a=Aa("ContainerClient-listBlobFlatSegment",t.tracingOptions),i=a.span,o=a.spanOptions,u.label=1;case 1:return u.trys.push([1,3,4,5]),[4,this.containerContext.listBlobFlatSegment(n.__assign(n.__assign({marker:e},t),{spanOptions:o}))];case 2:return[2,u.sent()];case 3:throw s=u.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.listBlobHierarchySegment=function(e,t,a){return void 0===a&&(a={}),n.__awaiter(this,void 0,void 0,(function(){var i,o,s,u;return n.__generator(this,(function(l){switch(l.label){case 0:i=Aa("ContainerClient-listBlobHierarchySegment",a.tracingOptions),o=i.span,s=i.spanOptions,l.label=1;case 1:return l.trys.push([1,3,4,5]),[4,this.containerContext.listBlobHierarchySegment(e,n.__assign(n.__assign({marker:t},a),{spanOptions:s}))];case 2:return[2,l.sent()];case 3:throw u=l.sent(),o.setStatus({code:r.CanonicalCode.UNKNOWN,message:u.message}),u;case 4:return o.end(),[7];case 5:return[2]}}))}))},a.prototype.listSegments=function(e,t){return void 0===t&&(t={}),n.__asyncGenerator(this,arguments,(function(){var r;return n.__generator(this,(function(a){switch(a.label){case 0:if(!e&&void 0!==e)return[3,7];a.label=1;case 1:return[4,n.__await(this.listBlobFlatSegment(e,t))];case 2:return r=a.sent(),e=r.continuationToken,[4,n.__await(r)];case 3:return[4,n.__await.apply(void 0,[a.sent()])];case 4:return[4,a.sent()];case 5:a.sent(),a.label=6;case 6:if(e)return[3,1];a.label=7;case 7:return[2]}}))}))},a.prototype.listItems=function(e){return void 0===e&&(e={}),n.__asyncGenerator(this,arguments,(function(){var t,r,a,i,o,s;return n.__generator(this,(function(u){switch(u.label){case 0:u.trys.push([0,7,8,13]),t=n.__asyncValues(this.listSegments(undefined,e)),u.label=1;case 1:return[4,n.__await(t.next())];case 2:return(r=u.sent()).done?[3,6]:(a=r.value,[5,n.__values(n.__asyncDelegator(n.__asyncValues(a.segment.blobItems)))]);case 3:return[4,n.__await.apply(void 0,[u.sent()])];case 4:u.sent(),u.label=5;case 5:return[3,1];case 6:return[3,13];case 7:return i=u.sent(),o={error:i},[3,13];case 8:return u.trys.push([8,,11,12]),r&&!r.done&&(s=t.return)?[4,n.__await(s.call(t))]:[3,10];case 9:u.sent(),u.label=10;case 10:return[3,12];case 11:if(o)throw o.error;return[7];case 12:return[7];case 13:return[2]}}))}))},a.prototype.listBlobsFlat=function(e){var t,r=this;void 0===e&&(e={});var a=[];e.includeCopy&&a.push("copy"),e.includeDeleted&&a.push("deleted"),e.includeMetadata&&a.push("metadata"),e.includeSnapshots&&a.push("snapshots"),e.includeUncommitedBlobs&&a.push("uncommittedblobs"),""===e.prefix&&(e.prefix=void 0);var i=n.__assign(n.__assign({},e),a.length>0?{include:a}:{}),o=this.listItems(i);return(t={next:function(){return o.next()}})[Symbol.asyncIterator]=function(){return this},t.byPage=function(e){return void 0===e&&(e={}),r.listSegments(e.continuationToken,n.__assign({maxPageSize:e.maxPageSize},i))},t},a.prototype.listHierarchySegments=function(e,t,r){return void 0===r&&(r={}),n.__asyncGenerator(this,arguments,(function(){var a;return n.__generator(this,(function(i){switch(i.label){case 0:if(!t&&void 0!==t)return[3,7];i.label=1;case 1:return[4,n.__await(this.listBlobHierarchySegment(e,t,r))];case 2:return a=i.sent(),t=a.continuationToken,[4,n.__await(a)];case 3:return[4,n.__await.apply(void 0,[i.sent()])];case 4:return[4,i.sent()];case 5:i.sent(),i.label=6;case 6:if(t)return[3,1];i.label=7;case 7:return[2]}}))}))},a.prototype.listItemsByHierarchy=function(e,t){return void 0===t&&(t={}),n.__asyncGenerator(this,arguments,(function(){var r,a,i,o,s,u,l,c,p,d,f,m,h;return n.__generator(this,(function(g){switch(g.label){case 0:g.trys.push([0,14,15,20]),r=n.__asyncValues(this.listHierarchySegments(e,undefined,t)),g.label=1;case 1:return[4,n.__await(r.next())];case 2:if((a=g.sent()).done)return[3,13];if(i=a.value,!(o=i.segment).blobPrefixes)return[3,7];s=0,u=o.blobPrefixes,g.label=3;case 3:return s<u.length?(l=u[s],[4,n.__await(n.__assign({kind:"prefix"},l))]):[3,7];case 4:return[4,g.sent()];case 5:g.sent(),g.label=6;case 6:return s++,[3,3];case 7:c=0,p=o.blobItems,g.label=8;case 8:return c<p.length?(d=p[c],[4,n.__await(n.__assign({kind:"blob"},d))]):[3,12];case 9:return[4,g.sent()];case 10:g.sent(),g.label=11;case 11:return c++,[3,8];case 12:return[3,1];case 13:return[3,20];case 14:return f=g.sent(),m={error:f},[3,20];case 15:return g.trys.push([15,,18,19]),a&&!a.done&&(h=r.return)?[4,n.__await(h.call(r))]:[3,17];case 16:g.sent(),g.label=17;case 17:return[3,19];case 18:if(m)throw m.error;return[7];case 19:return[7];case 20:return[2]}}))}))},a.prototype.listBlobsByHierarchy=function(e,t){var r,a=this;void 0===t&&(t={});var i=[];t.includeCopy&&i.push("copy"),t.includeDeleted&&i.push("deleted"),t.includeMetadata&&i.push("metadata"),t.includeSnapshots&&i.push("snapshots"),t.includeUncommitedBlobs&&i.push("uncommittedblobs"),""===t.prefix&&(t.prefix=void 0);var o=n.__assign(n.__assign({},t),i.length>0?{include:i}:{}),s=this.listItemsByHierarchy(e,o);return(r={next:function(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(e){return[2,s.next()]}))}))}})[Symbol.asyncIterator]=function(){return this},r.byPage=function(t){return void 0===t&&(t={}),a.listHierarchySegments(e,t.continuationToken,n.__assign({maxPageSize:t.maxPageSize},o))},r},a.prototype.getContainerNameFromUrl=function(){var e;try{var n=t.URLBuilder.parse(this.url);if(e="blob"===n.getHost().split(".")[1]?n.getPath().split("/")[1]:n.getPath().split("/")[2],!(e=decodeURIComponent(e)))throw new Error("Provided containerName is invalid.");return e}catch(e){throw new Error("Unable to extract containerName with provided information.")}},a}(La);function Xa(e){return n.__awaiter(this,void 0,void 0,(function(){var t,r;return n.__generator(this,(function(n){switch(n.label){case 0:return t=Buffer.alloc(Mr),[4,xa(e.readableStreamBody,t)];case 1:return r=n.sent(),[2,(t=t.slice(0,r)).toString()]}}))}))}function Ja(e){return Buffer.byteLength(e)}var Za,ei=": ",ti=function(){function e(e,t){if(!e||!e.contentType)throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.");if(!t||0===t.size)throw new RangeError("Invalid state: subRequests is not provided or size is 0.");this.batchResponse=e,this.subRequests=t,this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1],this.perResponsePrefix="--"+this.responseBatchBoundary+Lr,this.batchResponseEnding="--"+this.responseBatchBoundary+"--"}return e.prototype.parseBatchResponse=function(){return n.__awaiter(this,void 0,void 0,(function(){var e,r,a,i,o,s,u,l,c,p,d,f,m,h,g,y,v,b;return n.__generator(this,(function(n){switch(n.label){case 0:if(this.batchResponse._response.status!=Rr)throw new Error("Invalid state: batch request failed with status: '"+this.batchResponse._response.status+"'.");return[4,Xa(this.batchResponse)];case 1:if(e=n.sent(),r=e.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1),(a=r.length)!=this.subRequests.size&&1!=a)throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.");for(i=new Array(a),o=0,s=0,u=0;u<a;u++){for(l=r[u],i[u]={},(c=i[u]).headers=new t.HttpHeaders,p=l.split(""+Lr),d=!1,f=!1,m=!1,h=-1,g=0,y=p;g<y.length;g++)if(v=y[g],d)if(""!==v.trim())if(f)c.bodyAsText||(c.bodyAsText=""),c.bodyAsText+=v;else{if(-1===v.indexOf(ei))throw new Error("Invalid state: find non-empty line '"+v+"' without HTTP header delimiter '"+": '.");b=v.split(ei),c.headers.set(b[0],b[1]),b[0]===Ir.X_MS_ERROR_CODE&&(c.errorCode=b[1],m=!0)}else f||(f=!0);else v.startsWith(Ir.CONTENT_ID)&&(h=parseInt(v.split(ei)[1])),v.startsWith(Fr)&&(d=!0,b=v.split(" "),c.status=parseInt(b[1]),c.statusMessage=b.slice(2).join(" "));-1!=h&&(c._request=this.subRequests.get(h)),m?s++:o++}return[2,{subResponses:i,subResponsesSucceededCount:o,subResponsesFailedCount:s}]}}))}))},e}();!function(e){e[e.LOCKED=0]="LOCKED",e[e.UNLOCKED=1]="UNLOCKED"}(Za||(Za={}));var ni,ri=function(){function e(){}return e.lock=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t=this;return n.__generator(this,(function(n){return[2,new Promise((function(n){void 0===t.keys[e]||t.keys[e]===Za.UNLOCKED?(t.keys[e]=Za.LOCKED,n()):t.onUnlockEvent(e,(function(){t.keys[e]=Za.LOCKED,n()}))}))]}))}))},e.unlock=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t=this;return n.__generator(this,(function(n){return[2,new Promise((function(n){t.keys[e]===Za.LOCKED&&t.emitUnlockEvent(e),delete t.keys[e],n()}))]}))}))},e.onUnlockEvent=function(e,t){void 0===this.listeners[e]?this.listeners[e]=[t]:this.listeners[e].push(t)},e.emitUnlockEvent=function(e){var t=this;if(void 0!==this.listeners[e]&&this.listeners[e].length>0){var n=this.listeners[e].shift();setImmediate((function(){n.call(t)}))}},e.keys={},e.listeners={},e}(),ai=function(){function e(){this.batch="batch",this.batchRequest=new ii}return e.prototype.getMultiPartContentType=function(){return this.batchRequest.getMultipartContentType()},e.prototype.getHttpRequestBody=function(){return this.batchRequest.getHttpRequestBody()},e.prototype.getSubRequests=function(){return this.batchRequest.getSubRequests()},e.prototype.addSubRequestInternal=function(e,t){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(n){switch(n.label){case 0:return[4,ri.lock(this.batch)];case 1:n.sent(),n.label=2;case 2:return n.trys.push([2,,4,6]),this.batchRequest.preAddSubRequest(e),[4,t()];case 3:return n.sent(),this.batchRequest.postAddSubRequest(e),[3,6];case 4:return[4,ri.unlock(this.batch)];case 5:return n.sent(),[7];case 6:return[2]}}))}))},e.prototype.setBatchType=function(e){if(this.batchType||(this.batchType=e),this.batchType!==e)throw new RangeError("BlobBatch only supports one operation type per batch and it already is being used for "+this.batchType+" operations.")},e.prototype.deleteBlob=function(e,a,i){return n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l,c,p,d=this;return n.__generator(this,(function(f){switch(f.label){case 0:if("string"==typeof e&&(t.isNode&&a instanceof Na||a instanceof Pa||t.isTokenCredential(a)))o=e,s=a;else{if(!(e instanceof Ha))throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.");o=e.url,s=e.credential,i=a}i||(i={}),u=Aa("BatchDeleteRequest-addSubRequest",i.tracingOptions),l=u.span,c=u.spanOptions,f.label=1;case 1:return f.trys.push([1,3,4,5]),this.setBatchType("delete"),[4,this.addSubRequestInternal({url:o,credential:s},(function(){return n.__awaiter(d,void 0,void 0,(function(){return n.__generator(this,(function(e){switch(e.label){case 0:return[4,new Ha(o,this.batchRequest.createPipeline(s)).delete(n.__assign(n.__assign({},i),{tracingOptions:n.__assign(n.__assign({},i.tracingOptions),{spanOptions:c})}))];case 1:return e.sent(),[2]}}))}))}))];case 2:return f.sent(),[3,5];case 3:throw p=f.sent(),l.setStatus({code:r.CanonicalCode.UNKNOWN,message:p.message}),p;case 4:return l.end(),[7];case 5:return[2]}}))}))},e.prototype.setBlobAccessTier=function(e,a,i,o){return n.__awaiter(this,void 0,void 0,(function(){var s,u,l,c,p,d,f,m=this;return n.__generator(this,(function(h){switch(h.label){case 0:if("string"==typeof e&&(t.isNode&&a instanceof Na||a instanceof Pa||t.isTokenCredential(a)))s=e,u=a,l=i;else{if(!(e instanceof Ha))throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.");s=e.url,u=e.credential,l=a,o=i}o||(o={}),c=Aa("BatchSetTierRequest-addSubRequest",o.tracingOptions),p=c.span,d=c.spanOptions,h.label=1;case 1:return h.trys.push([1,3,4,5]),this.setBatchType("setAccessTier"),[4,this.addSubRequestInternal({url:s,credential:u},(function(){return n.__awaiter(m,void 0,void 0,(function(){return n.__generator(this,(function(e){switch(e.label){case 0:return[4,new Ha(s,this.batchRequest.createPipeline(u)).setAccessTier(l,n.__assign(n.__assign({},o),{tracingOptions:n.__assign(n.__assign({},o.tracingOptions),{spanOptions:d})}))];case 1:return e.sent(),[2]}}))}))}))];case 2:return h.sent(),[3,5];case 3:throw f=h.sent(),p.setStatus({code:r.CanonicalCode.UNKNOWN,message:f.message}),f;case 4:return p.end(),[7];case 5:return[2]}}))}))},e}(),ii=function(){function e(){this.operationCount=0,this.body="";var e=t.generateUuid();this.boundary="batch_"+e,this.subRequestPrefix="--"+this.boundary+Lr+Ir.CONTENT_TYPE+": application/http"+Lr+Ir.CONTENT_TRANSFER_ENCODING+": binary",this.multipartContentType="multipart/mixed; boundary="+this.boundary,this.batchRequestEnding="--"+this.boundary+"--",this.subRequests=new Map}return e.prototype.createPipeline=function(e){var n=e instanceof Pa,r=3+(n?0:1),a=new Array(r);return a[0]=t.deserializationPolicy(),a[1]=new li,n||(a[2]=t.isTokenCredential(e)?t.bearerTokenAuthenticationPolicy(e,Tr):e),a[r-1]=new si(this),new pa(a,{})},e.prototype.appendSubRequestToBody=function(e){this.body+=[this.subRequestPrefix,Ir.CONTENT_ID+": "+this.operationCount,"",e.method.toString()+" "+Yr(e.url)+" "+Fr+Lr].join(Lr);for(var t=0,n=e.headers.headersArray();t<n.length;t++){var r=n[t];this.body+=r.name+": "+r.value+Lr}this.body+=Lr},e.prototype.preAddSubRequest=function(e){if(this.operationCount>=256)throw new RangeError("Cannot exceed 256 sub requests in a single batch");var t=Kr(e.url);if(!t||""==t)throw new RangeError("Invalid url for sub request: '"+e.url+"'")},e.prototype.postAddSubRequest=function(e){this.subRequests.set(this.operationCount,e),this.operationCount++},e.prototype.getHttpRequestBody=function(){return""+this.body+this.batchRequestEnding+Lr},e.prototype.getMultipartContentType=function(){return this.multipartContentType},e.prototype.getSubRequests=function(){return this.subRequests},e}(),oi=function(e){function r(n,r,a){var i=e.call(this,r,a)||this;return i.dummyResponse={request:new t.WebResource,status:200,headers:new t.HttpHeaders},i.batchRequest=n,i}return n.__extends(r,e),r.prototype.sendRequest=function(e){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(t){switch(t.label){case 0:return[4,this.batchRequest.appendSubRequestToBody(e)];case 1:return t.sent(),[2,this.dummyResponse]}}))}))},r}(t.BaseRequestPolicy),si=function(){function e(e){this.batchRequest=e}return e.prototype.create=function(e,t){return new oi(this.batchRequest,e,t)},e}(),ui=function(e){function t(t,n){return e.call(this,t,n)||this}return n.__extends(t,e),t.prototype.sendRequest=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t,r,a,i;return n.__generator(this,(function(n){for(t="",r=0,a=e.headers.headersArray();r<a.length;r++)Zr((i=a[r]).name,Ir.X_MS_VERSION)&&(t=i.name);return""!==t&&e.headers.remove(t),[2,this._nextPolicy.sendRequest(e)]}))}))},t}(t.BaseRequestPolicy),li=function(){function e(){}return e.prototype.create=function(e,t){return new ui(e,t)},e}(),ci=function(){function e(e,t,n){var r;r=t instanceof pa?t:da(t||new Pa,n);var a=new Ma(e,r.toServiceClientOptions());this._serviceContext=new rn(a)}return e.prototype.createBatch=function(){return new ai},e.prototype.deleteBlobs=function(e,t,r){return n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:a=new ai,i=0,o=e,n.label=1;case 1:return i<o.length?"string"!=typeof(s=o[i])?[3,3]:[4,a.deleteBlob(s,t,r)]:[3,6];case 2:return n.sent(),[3,5];case 3:return[4,a.deleteBlob(s,t)];case 4:n.sent(),n.label=5;case 5:return i++,[3,1];case 6:return[2,this.submitBatch(a)]}}))}))},e.prototype.setBlobsAccessTier=function(e,t,r,a){return n.__awaiter(this,void 0,void 0,(function(){var i,o,s,u;return n.__generator(this,(function(n){switch(n.label){case 0:i=new ai,o=0,s=e,n.label=1;case 1:return o<s.length?"string"!=typeof(u=s[o])?[3,3]:[4,i.setBlobAccessTier(u,t,r,a)]:[3,6];case 2:return n.sent(),[3,5];case 3:return[4,i.setBlobAccessTier(u,t,r)];case 4:n.sent(),n.label=5;case 5:return o++,[3,1];case 6:return[2,this.submitBatch(i)]}}))}))},e.prototype.submitBatch=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s,u,l,c;return n.__generator(this,(function(p){switch(p.label){case 0:if(!e||0==e.getSubRequests().size)throw new RangeError("Batch request should contain one or more sub requests.");a=Aa("BlobBatchClient-submitBatch",t.tracingOptions),i=a.span,o=a.spanOptions,p.label=1;case 1:return p.trys.push([1,4,5,6]),s=e.getHttpRequestBody(),[4,this._serviceContext.submitBatch(s,Ja(s),e.getMultiPartContentType(),n.__assign(n.__assign({},t),{spanOptions:o}))];case 2:return u=p.sent(),[4,new ti(u,e.getSubRequests()).parseBatchResponse()];case 3:return l=p.sent(),[2,{_response:u._response,contentType:u.contentType,errorCode:u.errorCode,requestId:u.requestId,clientRequestId:u.clientRequestId,version:u.version,subResponses:l.subResponses,subResponsesSucceededCount:l.subResponsesSucceededCount,subResponsesFailedCount:l.subResponsesFailedCount}];case 4:throw c=p.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:c.message}),c;case 5:return i.end(),[7];case 6:return[2]}}))}))},e}(),pi=function(e){function a(n,r,a){var i,o=this;return i=r instanceof pa?r:t.isNode&&r instanceof Na||r instanceof Pa||t.isTokenCredential(r)?da(r,a):da(new Pa,a),(o=e.call(this,n,i)||this).serviceContext=new rn(o.storageClientContext),o}return n.__extends(a,e),a.fromConnectionString=function(e,n){n=n||{};var r=Hr(e);if("AccountConnString"===r.kind){var i=new Na(r.accountName,r.accountKey);n.proxyOptions=t.getDefaultProxySettings(r.proxyUri);var o=da(i,n);return new a(r.url,o)}if("SASConnString"===r.kind){o=da(new Pa,n);return new a(r.url+"?"+r.accountSas,o)}throw new Error("Connection string must be either an Account connection string or a SAS connection string")},a.prototype.getContainerClient=function(e){return new Qa(Wr(this.url,encodeURIComponent(e)),this.pipeline)},a.prototype.createContainer=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s,u,l;return n.__generator(this,(function(c){switch(c.label){case 0:a=Aa("BlobServiceClient-createContainer",t.tracingOptions),i=a.span,o=a.spanOptions,c.label=1;case 1:return c.trys.push([1,3,4,5]),[4,(s=this.getContainerClient(e)).create(n.__assign(n.__assign({},t),{tracingOptions:n.__assign(n.__assign({},t.tracingOptions),{spanOptions:o})}))];case 2:return u=c.sent(),[2,{containerClient:s,containerCreateResponse:u}];case 3:throw l=c.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:l.message}),l;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.deleteContainer=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(u){switch(u.label){case 0:a=Aa("BlobServiceClient-deleteContainer",t.tracingOptions),i=a.span,o=a.spanOptions,u.label=1;case 1:return u.trys.push([1,3,4,5]),[4,this.getContainerClient(e).delete(n.__assign(n.__assign({},t),{tracingOptions:n.__assign(n.__assign({},t.tracingOptions),{spanOptions:o})}))];case 2:return[2,u.sent()];case 3:throw s=u.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.getProperties=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:t=Aa("BlobServiceClient-getProperties",e.tracingOptions),a=t.span,i=t.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.serviceContext.getProperties({abortSignal:e.abortSignal,spanOptions:i})];case 2:return[2,n.sent()];case 3:throw o=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.setProperties=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("BlobServiceClient-setProperties",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.serviceContext.setProperties(e,{abortSignal:t.abortSignal,spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.getStatistics=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:t=Aa("BlobServiceClient-getStatistics",e.tracingOptions),a=t.span,i=t.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.serviceContext.getStatistics({abortSignal:e.abortSignal,spanOptions:i})];case 2:return[2,n.sent()];case 3:throw o=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.getAccountInfo=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:t=Aa("BlobServiceClient-getAccountInfo",e.tracingOptions),a=t.span,i=t.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,spanOptions:i})];case 2:return[2,n.sent()];case 3:throw o=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.listContainersSegment=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(u){switch(u.label){case 0:a=Aa("BlobServiceClient-listContainersSegment",t.tracingOptions),i=a.span,o=a.spanOptions,u.label=1;case 1:return u.trys.push([1,3,4,5]),[4,this.serviceContext.listContainersSegment(n.__assign(n.__assign({abortSignal:t.abortSignal,marker:e},t),{spanOptions:o}))];case 2:return[2,u.sent()];case 3:throw s=u.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.listSegments=function(e,t){return void 0===t&&(t={}),n.__asyncGenerator(this,arguments,(function(){var r;return n.__generator(this,(function(a){switch(a.label){case 0:if(!e&&void 0!==e)return[3,7];a.label=1;case 1:return[4,n.__await(this.listContainersSegment(e,t))];case 2:return(r=a.sent()).containerItems=r.containerItems||[],e=r.continuationToken,[4,n.__await(r)];case 3:return[4,n.__await.apply(void 0,[a.sent()])];case 4:return[4,a.sent()];case 5:a.sent(),a.label=6;case 6:if(e)return[3,1];a.label=7;case 7:return[2]}}))}))},a.prototype.listItems=function(e){return void 0===e&&(e={}),n.__asyncGenerator(this,arguments,(function(){var t,r,a,i,o,s;return n.__generator(this,(function(u){switch(u.label){case 0:u.trys.push([0,7,8,13]),t=n.__asyncValues(this.listSegments(undefined,e)),u.label=1;case 1:return[4,n.__await(t.next())];case 2:return(r=u.sent()).done?[3,6]:(a=r.value,[5,n.__values(n.__asyncDelegator(n.__asyncValues(a.containerItems)))]);case 3:return[4,n.__await.apply(void 0,[u.sent()])];case 4:u.sent(),u.label=5;case 5:return[3,1];case 6:return[3,13];case 7:return i=u.sent(),o={error:i},[3,13];case 8:return u.trys.push([8,,11,12]),r&&!r.done&&(s=t.return)?[4,n.__await(s.call(t))]:[3,10];case 9:u.sent(),u.label=10;case 10:return[3,12];case 11:if(o)throw o.error;return[7];case 12:return[7];case 13:return[2]}}))}))},a.prototype.listContainers=function(e){var t,r=this;void 0===e&&(e={}),""===e.prefix&&(e.prefix=void 0);var a=n.__assign(n.__assign({},e),e.includeMetadata?{include:"metadata"}:{}),i=this.listItems(a);return(t={next:function(){return i.next()}})[Symbol.asyncIterator]=function(){return this},t.byPage=function(e){return void 0===e&&(e={}),r.listSegments(e.continuationToken,n.__assign({maxPageSize:e.maxPageSize},a))},t},a.prototype.getUserDelegationKey=function(e,t,a){return void 0===a&&(a={}),n.__awaiter(this,void 0,void 0,(function(){var i,o,s,u,l,c;return n.__generator(this,(function(p){switch(p.label){case 0:i=Aa("BlobServiceClient-getUserDelegationKey",a.tracingOptions),o=i.span,s=i.spanOptions,p.label=1;case 1:return p.trys.push([1,3,4,5]),[4,this.serviceContext.getUserDelegationKey({startsOn:Qr(e,!1),expiresOn:Qr(t,!1)},{abortSignal:a.abortSignal,spanOptions:s})];case 2:return u=p.sent(),l={signedObjectId:u.signedObjectId,signedTenantId:u.signedTenantId,signedStartsOn:new Date(u.signedStartsOn),signedExpiresOn:new Date(u.signedExpiresOn),signedService:u.signedService,signedVersion:u.signedVersion,value:u.value},[2,n.__assign({_response:u._response,requestId:u.requestId,clientRequestId:u.clientRequestId,version:u.version,date:u.date,errorCode:u.errorCode},l)];case 3:throw c=p.sent(),o.setStatus({code:r.CanonicalCode.UNKNOWN,message:c.message}),c;case 4:return o.end(),[7];case 5:return[2]}}))}))},a.prototype.getBlobBatchClient=function(){return new ci(this.url,this.pipeline)},a}(La),di=function(){function e(){this.read=!1,this.write=!1,this.delete=!1,this.list=!1,this.add=!1,this.create=!1,this.update=!1,this.process=!1}return e.parse=function(t){for(var n=new e,r=0,a=t;r<a.length;r++){var i=a[r];switch(i){case"r":n.read=!0;break;case"w":n.write=!0;break;case"d":n.delete=!0;break;case"l":n.list=!0;break;case"a":n.add=!0;break;case"c":n.create=!0;break;case"u":n.update=!0;break;case"p":n.process=!0;break;default:throw new RangeError("Invalid permission character: "+i)}}return n},e.prototype.toString=function(){var e=[];return this.read&&e.push("r"),this.write&&e.push("w"),this.delete&&e.push("d"),this.list&&e.push("l"),this.add&&e.push("a"),this.create&&e.push("c"),this.update&&e.push("u"),this.process&&e.push("p"),e.join("")},e}(),fi=function(){function e(){this.service=!1,this.container=!1,this.object=!1}return e.parse=function(t){for(var n=new e,r=0,a=t;r<a.length;r++){var i=a[r];switch(i){case"s":n.service=!0;break;case"c":n.container=!0;break;case"o":n.object=!0;break;default:throw new RangeError("Invalid resource type: "+i)}}return n},e.prototype.toString=function(){var e=[];return this.service&&e.push("s"),this.container&&e.push("c"),this.object&&e.push("o"),e.join("")},e}(),mi=function(){function e(){this.blob=!1,this.file=!1,this.queue=!1,this.table=!1}return e.parse=function(t){for(var n=new e,r=0,a=t;r<a.length;r++){var i=a[r];switch(i){case"b":n.blob=!0;break;case"f":n.file=!0;break;case"q":n.queue=!0;break;case"t":n.table=!0;break;default:throw new RangeError("Invalid service character: "+i)}}return n},e.prototype.toString=function(){var e=[];return this.blob&&e.push("b"),this.table&&e.push("t"),this.queue&&e.push("q"),this.file&&e.push("f"),e.join("")},e}();function hi(e){return e.end?e.start+"-"+e.end:e.start}(ni=e.SASProtocol||(e.SASProtocol={})).Https="https",ni.HttpsAndHttp="https,http";var gi=function(){function e(e,t,n,r,a,i,o,s,u,l,c,p,d,f,m,h,g){this.version=e,this.services=r,this.resourceTypes=a,this.expiresOn=s,this.permissions=n,this.protocol=i,this.startsOn=o,this.ipRangeInner=u,this.identifier=l,this.resource=c,this.signature=t,this.cacheControl=p,this.contentDisposition=d,this.contentEncoding=f,this.contentLanguage=m,this.contentType=h,g&&(this.signedOid=g.signedObjectId,this.signedTenentId=g.signedTenantId,this.signedStartsOn=g.signedStartsOn,this.signedExpiresOn=g.signedExpiresOn,this.signedService=g.signedService,this.signedVersion=g.signedVersion)}return Object.defineProperty(e.prototype,"ipRange",{get:function(){if(this.ipRangeInner)return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}},enumerable:!0,configurable:!0}),e.prototype.toString=function(){for(var e=[],t=0,n=["sv","ss","srt","spr","st","se","sip","si","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct"];t<n.length;t++){var r=n[t];switch(r){case"sv":this.tryAppendQueryParameter(e,r,this.version);break;case"ss":this.tryAppendQueryParameter(e,r,this.services);break;case"srt":this.tryAppendQueryParameter(e,r,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(e,r,this.protocol);break;case"st":this.tryAppendQueryParameter(e,r,this.startsOn?Qr(this.startsOn,!1):void 0);break;case"se":this.tryAppendQueryParameter(e,r,this.expiresOn?Qr(this.expiresOn,!1):void 0);break;case"sip":this.tryAppendQueryParameter(e,r,this.ipRange?hi(this.ipRange):void 0);break;case"si":this.tryAppendQueryParameter(e,r,this.identifier);break;case"skoid":this.tryAppendQueryParameter(e,r,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(e,r,this.signedTenentId);break;case"skt":this.tryAppendQueryParameter(e,r,this.signedStartsOn?Qr(this.signedStartsOn,!1):void 0);break;case"ske":this.tryAppendQueryParameter(e,r,this.signedExpiresOn?Qr(this.signedExpiresOn,!1):void 0);break;case"sks":this.tryAppendQueryParameter(e,r,this.signedService);break;case"skv":this.tryAppendQueryParameter(e,r,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(e,r,this.resource);break;case"sp":this.tryAppendQueryParameter(e,r,this.permissions);break;case"sig":this.tryAppendQueryParameter(e,r,this.signature);break;case"rscc":this.tryAppendQueryParameter(e,r,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(e,r,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(e,r,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(e,r,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(e,r,this.contentType)}}return e.join("&")},e.prototype.tryAppendQueryParameter=function(e,t,n){n&&(t=encodeURIComponent(t),n=encodeURIComponent(n),t.length>0&&n.length>0&&e.push(t+"="+n))},e}();var yi=function(){function e(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1}return e.parse=function(t){for(var n=new e,r=0,a=t;r<a.length;r++){var i=a[r];switch(i){case"r":n.read=!0;break;case"a":n.add=!0;break;case"c":n.create=!0;break;case"w":n.write=!0;break;case"d":n.delete=!0;break;default:throw new RangeError("Invalid permission: "+i)}}return n},e.prototype.toString=function(){var e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),e.join("")},e}(),vi=function(){function e(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.list=!1}return e.parse=function(t){for(var n=new e,r=0,a=t;r<a.length;r++){var i=a[r];switch(i){case"r":n.read=!0;break;case"a":n.add=!0;break;case"c":n.create=!0;break;case"w":n.write=!0;break;case"d":n.delete=!0;break;case"l":n.list=!0;break;default:throw new RangeError("Invalid permission "+i)}}return n},e.prototype.toString=function(){var e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.list&&e.push("l"),e.join("")},e}(),bi=function(){function e(e,t){this.accountName=e,this.userDelegationKey=t,this.key=Buffer.from(t.value,"base64")}return e.prototype.computeHMACSHA256=function(e){return c.createHmac("sha256",this.key).update(e,"utf8").digest("base64")},e}();function wi(e,t,n){var r=["/blob/"+e+"/"+t];return n&&r.push("/"+n),r.join("")}Object.defineProperty(e,"BaseRequestPolicy",{enumerable:!0,get:function(){return t.BaseRequestPolicy}}),Object.defineProperty(e,"HttpHeaders",{enumerable:!0,get:function(){return t.HttpHeaders}}),Object.defineProperty(e,"RequestPolicyOptions",{enumerable:!0,get:function(){return t.RequestPolicyOptions}}),Object.defineProperty(e,"RestError",{enumerable:!0,get:function(){return t.RestError}}),Object.defineProperty(e,"WebResource",{enumerable:!0,get:function(){return t.WebResource}}),Object.defineProperty(e,"deserializationPolicy",{enumerable:!0,get:function(){return t.deserializationPolicy}}),e.AccountSASPermissions=di,e.AccountSASResourceTypes=fi,e.AccountSASServices=mi,e.AnonymousCredential=Pa,e.AnonymousCredentialPolicy=ja,e.AppendBlobClient=Wa,e.BlobBatch=ai,e.BlobBatchClient=ci,e.BlobClient=Ha,e.BlobLeaseClient=Ya,e.BlobSASPermissions=yi,e.BlobServiceClient=pi,e.BlockBlobClient=Ga,e.ContainerClient=Qa,e.ContainerSASPermissions=vi,e.Credential=Oa,e.CredentialPolicy=Ca,e.PageBlobClient=Ka,e.Pipeline=pa,e.SASQueryParameters=gi,e.StorageBrowserPolicy=na,e.StorageBrowserPolicyFactory=ra,e.StorageOAuthScopes=Tr,e.StorageRetryPolicy=oa,e.StorageRetryPolicyFactory=sa,e.StorageSharedKeyCredential=Na,e.StorageSharedKeyCredentialPolicy=Da,e.generateAccountSASQueryParameters=function(e,t){var n=e.version?e.version:Dr,r=di.parse(e.permissions.toString()),a=mi.parse(e.services).toString(),i=fi.parse(e.resourceTypes).toString(),o=[t.accountName,r,a,i,e.startsOn?Qr(e.startsOn,!1):"",Qr(e.expiresOn,!1),e.ipRange?hi(e.ipRange):"",e.protocol?e.protocol:"",n,""].join("\n"),s=t.computeHMACSHA256(o);return new gi(n,s,r.toString(),a,i,e.protocol,e.startsOn,e.expiresOn,e.ipRange)},e.generateBlobSASQueryParameters=function(e,t,n){var r,a=e.version?e.version:Dr,i=t instanceof Na?t:void 0;if(void 0===i&&void 0!==n&&(r=new bi(n,t)),void 0===i&&void 0===r)throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.");if(a>="2018-11-09")return void 0!==i?function(e,t){if(!e.identifier&&!e.permissions&&!e.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");var n,r=e.version?e.version:Dr,a="c";if(void 0===e.blobName&&e.snapshotTime)throw RangeError("Must provide 'blobName' when provided 'snapshotTime'.");e.blobName&&(a="b",e.snapshotTime&&(a="bs"));e.permissions&&(n=e.blobName?yi.parse(e.permissions.toString()).toString():vi.parse(e.permissions.toString()).toString());var i=[n||"",e.startsOn?Qr(e.startsOn,!1):"",e.expiresOn?Qr(e.expiresOn,!1):"",wi(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?hi(e.ipRange):"",e.protocol?e.protocol:"",r,a,e.snapshotTime,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n"),o=t.computeHMACSHA256(i);return new gi(r,o,n,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,a,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType)}(e,i):function(e,t){if(!e.permissions||!e.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");var n,r=e.version?e.version:Dr,a="c";if(void 0===e.blobName&&e.snapshotTime)throw RangeError("Must provide 'blobName' when provided 'snapshotTime'.");e.blobName&&(a="b",e.snapshotTime&&(a="bs"));e.permissions&&(n=e.blobName?yi.parse(e.permissions.toString()).toString():vi.parse(e.permissions.toString()).toString());var i=[n||"",e.startsOn?Qr(e.startsOn,!1):"",e.expiresOn?Qr(e.expiresOn,!1):"",wi(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?Qr(t.userDelegationKey.signedStartsOn,!1):"",t.userDelegationKey.signedExpiresOn?Qr(t.userDelegationKey.signedExpiresOn,!1):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?hi(e.ipRange):"",e.protocol?e.protocol:"",r,a,e.snapshotTime,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n"),o=t.computeHMACSHA256(i);return new gi(r,o,n,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,a,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey)}(e,r);if(a>="2015-04-05"){if(void 0!==i)return function(e,t){if(!e.identifier&&!e.permissions&&!e.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");var n,r=e.version?e.version:Dr,a="c";if(e.snapshotTime)throw RangeError("'version' must be >= '2018-11-09' when provided 'snapshotTime'.");e.blobName&&(a="b");e.permissions&&(n=e.blobName?yi.parse(e.permissions.toString()).toString():vi.parse(e.permissions.toString()).toString());var i=[n||"",e.startsOn?Qr(e.startsOn,!1):"",e.expiresOn?Qr(e.expiresOn,!1):"",wi(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?hi(e.ipRange):"",e.protocol?e.protocol:"",r,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n"),o=t.computeHMACSHA256(i);return new gi(r,o,n,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,a,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType)}(e,i);throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}throw new RangeError("'version' must be >= '2015-04-05'.")},e.logger=Er,e.newPipeline=da}(Yo);var kg={};const Sg=R.default,Eg=A.default,Cg=Sg.lchown?"lchown":"chown",Dg=Sg.lchownSync?"lchownSync":"chownSync",Og=Sg.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),Ng=(e,t,n)=>{try{return Sg[Dg](e,t,n)}catch(e){if("ENOENT"!==e.code)throw e}},jg=Og?(e,t,n,r)=>a=>{a&&"EISDIR"===a.code?Sg.chown(e,t,n,r):r(a)}:(e,t,n,r)=>r,Pg=Og?(e,t,n)=>{try{return Ng(e,t,n)}catch(r){if("EISDIR"!==r.code)throw r;((e,t,n)=>{try{return Sg.chownSync(e,t,n)}catch(e){if("ENOENT"!==e.code)throw e}})(e,t,n)}}:(e,t,n)=>Ng(e,t,n),Tg=process.version;let Ag=(e,t,n)=>Sg.readdir(e,t,n);/^v4\./.test(Tg)&&(Ag=(e,t,n)=>Sg.readdir(e,n));const Rg=(e,t,n,r)=>{Sg[Cg](e,t,n,jg(e,t,n,(e=>{r(e&&"ENOENT"!==e.code?e:null)})))},Ig=(e,t,n,r,a)=>{if("string"==typeof t)return Sg.lstat(Eg.resolve(e,t),((i,o)=>{if(i)return a("ENOENT"!==i.code?i:null);o.name=t,Ig(e,o,n,r,a)}));if(t.isDirectory())Mg(Eg.resolve(e,t.name),n,r,(i=>{if(i)return a(i);const o=Eg.resolve(e,t.name);Rg(o,n,r,a)}));else{const i=Eg.resolve(e,t.name);Rg(i,n,r,a)}},Mg=(e,t,n,r)=>{Ag(e,{withFileTypes:!0},((a,i)=>{if(a){if("ENOENT"===a.code)return r();if("ENOTDIR"!==a.code&&"ENOTSUP"!==a.code)return r(a)}if(a||!i.length)return Rg(e,t,n,r);let o=i.length,s=null;const u=a=>{if(!s)return a?r(s=a):0==--o?Rg(e,t,n,r):void 0};i.forEach((r=>Ig(e,r,t,n,u)))}))},Lg=(e,t,n)=>{let r;try{r=((e,t)=>Sg.readdirSync(e,t))(e,{withFileTypes:!0})}catch(r){if("ENOENT"===r.code)return;if("ENOTDIR"===r.code||"ENOTSUP"===r.code)return Pg(e,t,n);throw r}return r&&r.length&&r.forEach((r=>((e,t,n,r)=>{if("string"==typeof t)try{const n=Sg.lstatSync(Eg.resolve(e,t));n.name=t,t=n}catch(e){if("ENOENT"===e.code)return;throw e}t.isDirectory()&&Lg(Eg.resolve(e,t.name),n,r),Pg(Eg.resolve(e,t.name),n,r)})(e,r,t,n))),Pg(e,t,n)};var Fg=Mg;Mg.sync=Lg;var zg,Bg,Ug,qg,$g,Vg={},Hg={exports:{}},Wg={exports:{}},Gg={exports:{}};function Kg(){return zg||(zg=1,Gg.exports=z.default),Gg.exports}function Yg(){if(Ug)return Bg;function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Ug=1;var r=J.default.Buffer,a=L.default.inspect,i=a&&a.custom||"inspect";function o(e,t,n){r.prototype.copy.call(e,t,n)}return Bg=function(){function s(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),this.head=null,this.tail=null,this.length=0}var u,l,c;return u=s,l=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return r.alloc(0);for(var t=r.allocUnsafe(e>>>0),n=this.head,a=0;n;)o(n.data,t,a),a+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var a=t.data,i=e>a.length?a.length:e;if(i===a.length?r+=a:r+=a.slice(0,e),0==(e-=i)){i===a.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=a.slice(i));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=r.allocUnsafe(e),n=this.head,a=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++a}return this.length-=a,t}},{key:i,value:function(n,r){return a(this,function(n){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?e(Object(a),!0).forEach((function(e){t(n,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(a,e))}))}return n}({},r,{depth:0,customInspect:!1}))}}],l&&n(u.prototype,l),c&&n(u,c),s}(),Bg}function Qg(){if($g)return qg;function e(e,r){n(e,r),t(e)}function t(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}return $g=1,qg={destroy:function(r,a){var i=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(a?a(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,r)):process.nextTick(n,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,(function(n){!a&&n?i._writableState?i._writableState.errorEmitted?process.nextTick(t,i):(i._writableState.errorEmitted=!0,process.nextTick(e,i,n)):process.nextTick(e,i,n):a?(process.nextTick(t,i),a(n)):process.nextTick(t,i)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}},qg}var Xg,Jg,Zg,ey={};function ty(){if(Xg)return ey;Xg=1;const e={};function t(t,n,r){r||(r=Error);class a extends r{constructor(e,t,r){super(function(e,t,r){return"string"==typeof n?n:n(e,t,r)}(e,t,r))}}a.prototype.name=r.name,a.prototype.code=t,e[t]=a}function n(e,t){if(Array.isArray(e)){const n=e.length;return e=e.map((e=>String(e))),n>2?`one of ${t} ${e.slice(0,n-1).join(", ")}, or `+e[n-1]:2===n?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}return t("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),t("ERR_INVALID_ARG_TYPE",(function(e,t,r){let a,i;if("string"==typeof t&&function(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}(t,"not ")?(a="must not be",t=t.replace(/^not /,"")):a="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))i=`The ${e} ${a} ${n(t,"type")}`;else{const r=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";i=`The "${e}" ${r} ${a} ${n(t,"type")}`}return i+=". Received type "+typeof r,i}),TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),ey.codes=e,ey}function ny(){if(Zg)return Jg;Zg=1;var e=ty().codes.ERR_INVALID_OPT_VALUE;return Jg={getHighWaterMark:function(t,n,r,a){var i=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(n,a,r);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new e(a?r:"highWaterMark",i);return Math.floor(i)}return t.objectMode?16:16384}}}var ry,ay,iy,oy,sy,uy,ly,cy,py,dy,fy,my,hy,gy,yy,vy,by,wy,_y,xy,ky,Sy={exports:{}},Ey={exports:{}};function Cy(){if(sy)return oy;function e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var a=r.callback;t.pendingcb--,a(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var t;sy=1,oy=_,_.WritableState=w;var n={deprecate:iy?ay:(iy=1,ay=L.default.deprecate)},r=Kg(),a=J.default.Buffer,i=oe.Uint8Array||function(){};var o,s=Qg(),u=ny().getHighWaterMark,l=ty().codes,c=l.ERR_INVALID_ARG_TYPE,p=l.ERR_METHOD_NOT_IMPLEMENTED,d=l.ERR_MULTIPLE_CALLBACK,f=l.ERR_STREAM_CANNOT_PIPE,m=l.ERR_STREAM_DESTROYED,h=l.ERR_STREAM_NULL_VALUES,g=l.ERR_STREAM_WRITE_AFTER_END,y=l.ERR_UNKNOWN_ENCODING,v=s.errorOrDestroy;function b(){}function w(n,r,a){t=t||Dy(),n=n||{},"boolean"!=typeof a&&(a=r instanceof t),this.objectMode=!!n.objectMode,a&&(this.objectMode=this.objectMode||!!n.writableObjectMode),this.highWaterMark=u(this,n,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===n.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,a=n.writecb;if("function"!=typeof a)throw new d;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,a){--t.pendingcb,n?(process.nextTick(a,r),process.nextTick(D,e,t),e._writableState.errorEmitted=!0,v(e,r)):(a(r),e._writableState.errorEmitted=!0,v(e,r),D(e,t))}(e,n,r,t,a);else{var i=E(n)||e.destroyed;i||n.corked||n.bufferProcessing||!n.bufferedRequest||S(e,n),r?process.nextTick(k,e,n,i,a):k(e,n,i,a)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==n.emitClose,this.autoDestroy=!!n.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function _(e){var n=this instanceof(t=t||Dy());if(!n&&!o.call(_,this))return new _(e);this._writableState=new w(e,this,n),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),r.call(this)}function x(e,t,n,r,a,i,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new m("write")):n?e._writev(a,t.onwrite):e._write(a,i,t.onwrite),t.sync=!1}function k(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),D(e,t)}function S(t,n){n.bufferProcessing=!0;var r=n.bufferedRequest;if(t._writev&&r&&r.next){var a=n.bufferedRequestCount,i=new Array(a),o=n.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,x(t,n,!0,n.length,i,"",o.finish),n.pendingcb++,n.lastBufferedRequest=null,o.next?(n.corkedRequestsFree=o.next,o.next=null):n.corkedRequestsFree=new e(n),n.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,p=r.callback;if(x(t,n,!1,n.objectMode?1:l.length,l,c,p),r=r.next,n.bufferedRequestCount--,n.writing)break}null===r&&(n.lastBufferedRequest=null)}n.bufferedRequest=r,n.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final((function(n){t.pendingcb--,n&&v(e,n),t.prefinished=!0,e.emit("prefinish"),D(e,t)}))}function D(e,t){var n=E(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(C,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}return Sy.exports(_,r),w.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(w.prototype,"buffer",{get:n.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===_&&(e&&e._writableState instanceof w)}})):o=function(e){return e instanceof this},_.prototype.pipe=function(){v(this,new f)},_.prototype.write=function(e,t,n){var r,o=this._writableState,s=!1,u=!o.objectMode&&(r=e,a.isBuffer(r)||r instanceof i);return u&&!a.isBuffer(e)&&(e=function(e){return a.from(e)}(e)),"function"==typeof t&&(n=t,t=null),u?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=b),o.ending?function(e,t){var n=new g;v(e,n),process.nextTick(t,n)}(this,n):(u||function(e,t,n,r){var a;return null===n?a=new h:"string"==typeof n||t.objectMode||(a=new c("chunk",["string","Buffer"],n)),!a||(v(e,a),process.nextTick(r,a),!1)}(this,o,e,n))&&(o.pendingcb++,s=function(e,t,n,r,i,o){if(!n){var s=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=a.from(t,n));return t}(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var u=t.objectMode?1:r.length;t.length+=u;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else x(e,t,!1,u,r,i,o);return l}(this,o,u,e,t,n)),s},_.prototype.cork=function(){this._writableState.corked++},_.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||S(this,e))},_.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new y(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(_.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),_.prototype._write=function(e,t,n){n(new p("_write()"))},_.prototype._writev=null,_.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,D(e,t),n&&(t.finished?process.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(_.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),_.prototype.destroy=s.destroy,_.prototype._undestroy=s.undestroy,_.prototype._destroy=function(e,t){t(e)},oy}function Dy(){if(ly)return uy;ly=1;var e=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};uy=o;var t=Py(),n=Cy();Sy.exports(o,t);for(var r=e(n.prototype),a=0;a<r.length;a++){var i=r[a];o.prototype[i]||(o.prototype[i]=n.prototype[i])}function o(e){if(!(this instanceof o))return new o(e);t.call(this,e),n.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",s)))}function s(){this._writableState.ended||process.nextTick(u,this)}function u(e){e.end()}return Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),uy}function Oy(){if(py)return cy;py=1;var e=ty().codes.ERR_STREAM_PREMATURE_CLOSE;function t(){}return cy=function n(r,a,i){if("function"==typeof a)return n(r,null,a);a||(a={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];e.apply(this,r)}}}(i||t);var o=a.readable||!1!==a.readable&&r.readable,s=a.writable||!1!==a.writable&&r.writable,u=function(){r.writable||c()},l=r._writableState&&r._writableState.finished,c=function(){s=!1,l=!0,o||i.call(r)},p=r._readableState&&r._readableState.endEmitted,d=function(){o=!1,p=!0,s||i.call(r)},f=function(e){i.call(r,e)},m=function(){var t;return o&&!p?(r._readableState&&r._readableState.ended||(t=new e),i.call(r,t)):s&&!l?(r._writableState&&r._writableState.ended||(t=new e),i.call(r,t)):void 0},h=function(){r.req.on("finish",c)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(r)?s&&!r._writableState&&(r.on("end",u),r.on("close",u)):(r.on("complete",c),r.on("abort",m),r.req?h():r.on("request",h)),r.on("end",d),r.on("finish",c),!1!==a.error&&r.on("error",f),r.on("close",m),function(){r.removeListener("complete",c),r.removeListener("abort",m),r.removeListener("request",h),r.req&&r.req.removeListener("finish",c),r.removeListener("end",u),r.removeListener("close",u),r.removeListener("finish",c),r.removeListener("end",d),r.removeListener("error",f),r.removeListener("close",m)}},cy}function Ny(){if(fy)return dy;var e;function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}fy=1;var n=Oy(),r=Symbol("lastResolve"),a=Symbol("lastReject"),i=Symbol("error"),o=Symbol("ended"),s=Symbol("lastPromise"),u=Symbol("handlePromise"),l=Symbol("stream");function c(e,t){return{value:e,done:t}}function p(e){var t=e[r];if(null!==t){var n=e[l].read();null!==n&&(e[s]=null,e[r]=null,e[a]=null,t(c(n,!1)))}}function d(e){process.nextTick(p,e)}var f=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((e={get stream(){return this[l]},next:function(){var e=this,t=this[i];if(null!==t)return Promise.reject(t);if(this[o])return Promise.resolve(c(void 0,!0));if(this[l].destroyed)return new Promise((function(t,n){process.nextTick((function(){e[i]?n(e[i]):t(c(void 0,!0))}))}));var n,r=this[s];if(r)n=new Promise(function(e,t){return function(n,r){e.then((function(){t[o]?n(c(void 0,!0)):t[u](n,r)}),r)}}(r,this));else{var a=this[l].read();if(null!==a)return Promise.resolve(c(a,!1));n=new Promise(this[u])}return this[s]=n,n}},t(e,Symbol.asyncIterator,(function(){return this})),t(e,"return",(function(){var e=this;return new Promise((function(t,n){e[l].destroy(null,(function(e){e?n(e):t(c(void 0,!0))}))}))})),e),f);return dy=function(e){var p,f=Object.create(m,(t(p={},l,{value:e,writable:!0}),t(p,r,{value:null,writable:!0}),t(p,a,{value:null,writable:!0}),t(p,i,{value:null,writable:!0}),t(p,o,{value:e._readableState.endEmitted,writable:!0}),t(p,u,{value:function(e,t){var n=f[l].read();n?(f[s]=null,f[r]=null,f[a]=null,e(c(n,!1))):(f[r]=e,f[a]=t)},writable:!0}),p));return f[s]=null,n(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=f[a];return null!==t&&(f[s]=null,f[r]=null,f[a]=null,t(e)),void(f[i]=e)}var n=f[r];null!==n&&(f[s]=null,f[r]=null,f[a]=null,n(c(void 0,!0))),f[o]=!0})),e.on("readable",d.bind(null,f)),f},dy}function jy(){if(hy)return my;function e(e,t,n,r,a,i,o){try{var s=e[i](o),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,a)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}hy=1;var r=ty().codes.ERR_INVALID_ARG_TYPE;return my=function(a,i,o){var s;if(i&&"function"==typeof i.next)s=i;else if(i&&i[Symbol.asyncIterator])s=i[Symbol.asyncIterator]();else{if(!i||!i[Symbol.iterator])throw new r("iterable",["Iterable"],i);s=i[Symbol.iterator]()}var u=new a(function(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?t(Object(a),!0).forEach((function(t){n(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({objectMode:!0},o)),l=!1;function c(){return p.apply(this,arguments)}function p(){var t;return t=function*(){try{var e=yield s.next(),t=e.value;e.done?u.push(null):u.push(yield t)?c():l=!1}catch(e){u.destroy(e)}},p=function(){var n=this,r=arguments;return new Promise((function(a,i){var o=t.apply(n,r);function s(t){e(o,a,i,s,u,"next",t)}function u(t){e(o,a,i,s,u,"throw",t)}s(void 0)}))},p.apply(this,arguments)}return u._read=function(){l||(l=!0,c())},u},my}function Py(){if(yy)return gy;var e;yy=1,gy=_,_.ReadableState=w,P.default.EventEmitter;var t=function(e,t){return e.listeners(t).length},n=Kg(),r=J.default.Buffer,a=oe.Uint8Array||function(){};var i,o=L.default;i=o&&o.debuglog?o.debuglog("stream"):function(){};var s,u,l,c=Yg(),p=Qg(),d=ny().getHighWaterMark,f=ty().codes,m=f.ERR_INVALID_ARG_TYPE,h=f.ERR_STREAM_PUSH_AFTER_EOF,g=f.ERR_METHOD_NOT_IMPLEMENTED,y=f.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;Sy.exports(_,n);var v=p.errorOrDestroy,b=["error","close","destroy","pause","resume"];function w(t,n,r){e=e||Dy(),t=t||{},"boolean"!=typeof r&&(r=n instanceof e),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=d(this,t,"readableHighWaterMark",r),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(s||(s=Q.default.StringDecoder),this.decoder=new s(t.encoding),this.encoding=t.encoding)}function _(t){if(e=e||Dy(),!(this instanceof _))return new _(t);var r=this instanceof e;this._readableState=new w(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),n.call(this)}function x(e,t,n,o,s){i("readableAddChunk",t);var u,l=e._readableState;if(null===t)l.reading=!1,function(e,t){if(i("onEofChunk"),t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?C(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,D(e)))}(e,l);else if(s||(u=function(e,t){var n;i=t,r.isBuffer(i)||i instanceof a||"string"==typeof t||void 0===t||e.objectMode||(n=new m("chunk",["string","Buffer","Uint8Array"],t));var i;return n}(l,t)),u)v(e,u);else if(l.objectMode||t&&t.length>0)if("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===r.prototype||(t=function(e){return r.from(e)}(t)),o)l.endEmitted?v(e,new y):k(e,l,t,!0);else if(l.ended)v(e,new h);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!n?(t=l.decoder.write(t),l.objectMode||0!==t.length?k(e,l,t,!1):O(e,l)):k(e,l,t,!1)}else o||(l.reading=!1,O(e,l));return!l.ended&&(l.length<l.highWaterMark||0===l.length)}function k(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&C(e)),O(e,t)}Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),_.prototype.destroy=p.destroy,_.prototype._undestroy=p.undestroy,_.prototype._destroy=function(e,t){t(e)},_.prototype.push=function(e,t){var n,a=this._readableState;return a.objectMode?n=!0:"string"==typeof e&&((t=t||a.defaultEncoding)!==a.encoding&&(e=r.from(e,t),t=""),n=!0),x(this,e,t,!1,n)},_.prototype.unshift=function(e){return x(this,e,null,!0,!1)},_.prototype.isPaused=function(){return!1===this._readableState.flowing},_.prototype.setEncoding=function(e){s||(s=Q.default.StringDecoder);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,r="";null!==n;)r+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var S=1073741824;function E(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(D,e))}function D(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,R(e)}function O(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(N,e,t))}function N(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(i("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function j(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function T(e){i("readable nexttick read 0"),e.read(0)}function A(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),R(e),t.flowing&&!t.reading&&e.read(0)}function R(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function I(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function M(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(F,t,e))}function F(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function z(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}return _.prototype.read=function(e){i("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return i("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):C(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&M(this),null;var r,a=t.needReadable;return i("need readable",a),(0===t.length||t.length-e<t.highWaterMark)&&i("length less than watermark",a=!0),t.ended||t.reading?i("reading or ended",a=!1):a&&(i("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=E(n,t))),null===(r=e>0?I(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&M(this)),null!==r&&this.emit("data",r),r},_.prototype._read=function(e){v(this,new g("_read()"))},_.prototype.pipe=function(e,n){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,i("pipe count=%d opts=%j",a.pipesCount,n);var o=(!n||!1!==n.end)&&e!==process.stdout&&e!==process.stderr?u:h;function s(t,n){i("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,i("cleanup"),e.removeListener("close",f),e.removeListener("finish",m),e.removeListener("drain",l),e.removeListener("error",d),e.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",h),r.removeListener("data",p),c=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function u(){i("onend"),e.end()}a.endEmitted?process.nextTick(o):r.once("end",o),e.on("unpipe",s);var l=function(e){return function(){var n=e._readableState;i("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,0===n.awaitDrain&&t(e,"data")&&(n.flowing=!0,R(e))}}(r);e.on("drain",l);var c=!1;function p(t){i("ondata");var n=e.write(t);i("dest.write",n),!1===n&&((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==z(a.pipes,e))&&!c&&(i("false write response, pause",a.awaitDrain),a.awaitDrain++),r.pause())}function d(n){i("onerror",n),h(),e.removeListener("error",d),0===t(e,"error")&&v(e,n)}function f(){e.removeListener("finish",m),h()}function m(){i("onfinish"),e.removeListener("close",f),h()}function h(){i("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",f),e.once("finish",m),e.emit("pipe",r),a.flowing||(i("pipe resume"),r.resume()),e},_.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<a;i++)r[i].emit("unpipe",this,{hasUnpiped:!1});return this}var o=z(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},_.prototype.on=function(e,t){var r=n.prototype.on.call(this,e,t),a=this._readableState;return"data"===e?(a.readableListening=this.listenerCount("readable")>0,!1!==a.flowing&&this.resume()):"readable"===e&&(a.endEmitted||a.readableListening||(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,i("on readable",a.length,a.reading),a.length?C(this):a.reading||process.nextTick(T,this))),r},_.prototype.addListener=_.prototype.on,_.prototype.removeListener=function(e,t){var r=n.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(j,this),r},_.prototype.removeAllListeners=function(e){var t=n.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(j,this),t},_.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(A,e,t))}(this,e)),e.paused=!1,this},_.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},_.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var a in e.on("end",(function(){if(i("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(a){(i("wrapped data"),n.decoder&&(a=n.decoder.write(a)),n.objectMode&&null==a)||(n.objectMode||a&&a.length)&&(t.push(a)||(r=!0,e.pause()))})),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var o=0;o<b.length;o++)e.on(b[o],this.emit.bind(this,b[o]));return this._read=function(t){i("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(_.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=Ny()),u(this)}),Object.defineProperty(_.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(_.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(_.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),_._fromList=I,Object.defineProperty(_.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(_.from=function(e,t){return void 0===l&&(l=jy()),l(_,e,t)}),gy}function Ty(){if(by)return vy;by=1,vy=s;var e=ty().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,n=e.ERR_MULTIPLE_CALLBACK,r=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=e.ERR_TRANSFORM_WITH_LENGTH_0,i=Dy();function o(e,t){var r=this._transformState;r.transforming=!1;var a=r.writecb;if(null===a)return this.emit("error",new n);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),a(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);i.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",u)}function u(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?l(this,null,null):this._flush((function(t,n){l(e,t,n)}))}function l(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new a;if(e._transformState.transforming)throw new r;return e.push(null)}return Sy.exports(s,i),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,i.prototype.push.call(this,e,t)},s.prototype._transform=function(e,n,r){r(new t("_transform()"))},s.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var a=this._readableState;(r.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},s.prototype._destroy=function(e,t){i.prototype._destroy.call(this,e,(function(e){t(e)}))},vy}function Ay(){if(ky)return xy;var e;ky=1;var t=ty().codes,n=t.ERR_MISSING_ARGS,r=t.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function i(e){e()}function o(e,t){return e.pipe(t)}return xy=function(){for(var t=arguments.length,s=new Array(t),u=0;u<t;u++)s[u]=arguments[u];var l,c=function(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}(s);if(Array.isArray(s[0])&&(s=s[0]),s.length<2)throw new n("streams");var p=s.map((function(t,n){var a=n<s.length-1;return function(t,n,a,i){i=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(i);var o=!1;t.on("close",(function(){o=!0})),void 0===e&&(e=Oy()),e(t,{readable:n,writable:a},(function(e){if(e)return i(e);o=!0,i()}));var s=!1;return function(e){if(!o&&!s)return s=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void i(e||new r("pipe"))}}(t,a,n>0,(function(e){l||(l=e),e&&p.forEach(i),a||(p.forEach(i),c(l))}))}));return s.reduce(o)},xy}!function(e){try{var t=require("util");if("function"!=typeof t.inherits)throw"";e.exports=t.inherits}catch(t){e.exports=(ry||(ry=1,"function"==typeof Object.create?Ey.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Ey.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}),Ey.exports)}}(Sy),function(e,t){var n=z.default;"disable"===process.env.READABLE_STREAM&&n?(e.exports=n.Readable,Object.assign(e.exports,n),e.exports.Stream=n):((t=e.exports=Py()).Stream=n||t,t.Readable=t,t.Writable=Cy(),t.Duplex=Dy(),t.Transform=Ty(),t.PassThrough=function(){if(_y)return wy;_y=1,wy=t;var e=Ty();function t(n){if(!(this instanceof t))return new t(n);e.call(this,n)}return Sy.exports(t,e),t.prototype._transform=function(e,t,n){n(null,e)},wy}(),t.finished=Oy(),t.pipeline=Ay())}(Wg,Wg.exports);const{Buffer:Ry}=J.default,Iy=Symbol.for("BufferList");function My(e){if(!(this instanceof My))return new My(e);My._init.call(this,e)}My._init=function(e){Object.defineProperty(this,Iy,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)},My.prototype._new=function(e){return new My(e)},My.prototype._offset=function(e){if(0===e)return[0,0];let t=0;for(let n=0;n<this._bufs.length;n++){const r=t+this._bufs[n].length;if(e<r||n===this._bufs.length-1)return[n,e-t];t=r}},My.prototype._reverseOffset=function(e){const t=e[0];let n=e[1];for(let e=0;e<t;e++)n+=this._bufs[e].length;return n},My.prototype.get=function(e){if(e>this.length||e<0)return;const t=this._offset(e);return this._bufs[t[0]][t[1]]},My.prototype.slice=function(e,t){return"number"==typeof e&&e<0&&(e+=this.length),"number"==typeof t&&t<0&&(t+=this.length),this.copy(null,0,e,t)},My.prototype.copy=function(e,t,n,r){if(("number"!=typeof n||n<0)&&(n=0),("number"!=typeof r||r>this.length)&&(r=this.length),n>=this.length)return e||Ry.alloc(0);if(r<=0)return e||Ry.alloc(0);const a=!!e,i=this._offset(n),o=r-n;let s=o,u=a&&t||0,l=i[1];if(0===n&&r===this.length){if(!a)return 1===this._bufs.length?this._bufs[0]:Ry.concat(this._bufs,this.length);for(let t=0;t<this._bufs.length;t++)this._bufs[t].copy(e,u),u+=this._bufs[t].length;return e}if(s<=this._bufs[i[0]].length-l)return a?this._bufs[i[0]].copy(e,t,l,l+s):this._bufs[i[0]].slice(l,l+s);a||(e=Ry.allocUnsafe(o));for(let t=i[0];t<this._bufs.length;t++){const n=this._bufs[t].length-l;if(!(s>n)){this._bufs[t].copy(e,u,l,l+s),u+=n;break}this._bufs[t].copy(e,u,l),u+=n,s-=n,l&&(l=0)}return e.length>u?e.slice(0,u):e},My.prototype.shallowSlice=function(e,t){if(e=e||0,t="number"!=typeof t?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();const n=this._offset(e),r=this._offset(t),a=this._bufs.slice(n[0],r[0]+1);return 0===r[1]?a.pop():a[a.length-1]=a[a.length-1].slice(0,r[1]),0!==n[1]&&(a[0]=a[0].slice(n[1])),this._new(a)},My.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)},My.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;){if(!(e>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},My.prototype.duplicate=function(){const e=this._new();for(let t=0;t<this._bufs.length;t++)e.append(this._bufs[t]);return e},My.prototype.append=function(e){if(null==e)return this;if(e.buffer)this._appendBuffer(Ry.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let t=0;t<e.length;t++)this.append(e[t]);else if(this._isBufferList(e))for(let t=0;t<e._bufs.length;t++)this.append(e._bufs[t]);else"number"==typeof e&&(e=e.toString()),this._appendBuffer(Ry.from(e));return this},My.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length},My.prototype.indexOf=function(e,t,n){if(void 0===n&&"string"==typeof t&&(n=t,t=void 0),"function"==typeof e||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if("number"==typeof e?e=Ry.from([e]):"string"==typeof e?e=Ry.from(e,n):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=Ry.from(e.buffer,e.byteOffset,e.byteLength):Ry.isBuffer(e)||(e=Ry.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),0===e.length)return t>this.length?this.length:t;const r=this._offset(t);let a=r[0],i=r[1];for(;a<this._bufs.length;a++){const t=this._bufs[a];for(;i<t.length;){if(t.length-i>=e.length){const n=t.indexOf(e,i);if(-1!==n)return this._reverseOffset([a,n]);i=t.length-e.length+1}else{const t=this._reverseOffset([a,i]);if(this._match(t,e))return t;i++}}i=0}return-1},My.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let n=0;n<t.length;n++)if(this.get(e+n)!==t[n])return!1;return!0},function(){const e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(const t in e)!function(t){My.prototype[t]=null===e[t]?function(e,n){return this.slice(e,e+n)[t](0,n)}:function(n=0){return this.slice(n,n+e[t])[t](0)}}(t)}(),My.prototype._isBufferList=function(e){return e instanceof My||My.isBufferList(e)},My.isBufferList=function(e){return null!=e&&e[Iy]};var Ly=My;const Fy=Wg.exports.Duplex,zy=Sy.exports,By=Ly;function Uy(e){if(!(this instanceof Uy))return new Uy(e);if("function"==typeof e){this._callback=e;const t=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on("pipe",(function(e){e.on("error",t)})),this.on("unpipe",(function(e){e.removeListener("error",t)})),e=null}By._init.call(this,e),Fy.call(this)}zy(Uy,Fy),Object.assign(Uy.prototype,By.prototype),Uy.prototype._new=function(e){return new Uy(e)},Uy.prototype._write=function(e,t,n){this._appendBuffer(e),"function"==typeof n&&n()},Uy.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)},Uy.prototype.end=function(e){Fy.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)},Uy.prototype._destroy=function(e,t){this._bufs.length=0,this.length=0,t(e)},Uy.prototype._isBufferList=function(e){return e instanceof Uy||e instanceof By||Uy.isBufferList(e)},Uy.isBufferList=By.isBufferList,Hg.exports=Uy,Hg.exports.BufferListStream=Uy,Hg.exports.BufferList=By;var qy={},$y=Buffer.alloc,Vy="0".charCodeAt(0),Hy=Buffer.from("ustar\0","binary"),Wy=Buffer.from("00","binary"),Gy=Buffer.from("ustar ","binary"),Ky=Buffer.from(" \0","binary"),Yy=parseInt("7777",8),Qy=257,Xy=function(e,t,n,r){for(;n<r;n++)if(e[n]===t)return n;return r},Jy=function(e){for(var t=256,n=0;n<148;n++)t+=e[n];for(var r=156;r<512;r++)t+=e[r];return t},Zy=function(e,t){return(e=e.toString(8)).length>t?"7777777777777777777".slice(0,t)+" ":"0000000000000000000".slice(0,t-e.length)+e+" "};var ev=function(e,t,n){if(128&(e=e.slice(t,t+n))[t=0])return function(e){var t;if(128===e[0])t=!0;else{if(255!==e[0])return null;t=!1}for(var n=[],r=e.length-1;r>0;r--){var a=e[r];t?n.push(a):n.push(255-a)}var i=0,o=n.length;for(r=0;r<o;r++)i+=n[r]*Math.pow(256,r);return t?i:-1*i}(e);for(;t<e.length&&32===e[t];)t++;for(var r=(a=Xy(e,32,t,e.length),i=e.length,o=e.length,"number"!=typeof a?o:(a=~~a)>=i?i:a>=0||(a+=i)>=0?a:0);t<r&&0===e[t];)t++;return r===t?0:parseInt(e.slice(t,r).toString(),8);var a,i,o},tv=function(e,t,n,r){return e.slice(t,Xy(e,0,t,t+n)).toString(r)},nv=function(e){var t=Buffer.byteLength(e),n=Math.floor(Math.log(t)/Math.log(10))+1;return t+n>=Math.pow(10,n)&&n++,t+n+e};qy.decodeLongPath=function(e,t){return tv(e,0,e.length,t)},qy.encodePax=function(e){var t="";e.name&&(t+=nv(" path="+e.name+"\n")),e.linkname&&(t+=nv(" linkpath="+e.linkname+"\n"));var n=e.pax;if(n)for(var r in n)t+=nv(" "+r+"="+n[r]+"\n");return Buffer.from(t)},qy.decodePax=function(e){for(var t={};e.length;){for(var n=0;n<e.length&&32!==e[n];)n++;var r=parseInt(e.slice(0,n).toString(),10);if(!r)return t;var a=e.slice(n+1,r-1).toString(),i=a.indexOf("=");if(-1===i)return t;t[a.slice(0,i)]=a.slice(i+1),e=e.slice(r)}return t},qy.encode=function(e){var t=$y(512),n=e.name,r="";if(5===e.typeflag&&"/"!==n[n.length-1]&&(n+="/"),Buffer.byteLength(n)!==n.length)return null;for(;Buffer.byteLength(n)>100;){var a=n.indexOf("/");if(-1===a)return null;r+=r?"/"+n.slice(0,a):n.slice(0,a),n=n.slice(a+1)}return Buffer.byteLength(n)>100||Buffer.byteLength(r)>155||e.linkname&&Buffer.byteLength(e.linkname)>100?null:(t.write(n),t.write(Zy(e.mode&Yy,6),100),t.write(Zy(e.uid,6),108),t.write(Zy(e.gid,6),116),t.write(Zy(e.size,11),124),t.write(Zy(e.mtime.getTime()/1e3|0,11),136),t[156]=Vy+function(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}(e.type),e.linkname&&t.write(e.linkname,157),Hy.copy(t,Qy),Wy.copy(t,263),e.uname&&t.write(e.uname,265),e.gname&&t.write(e.gname,297),t.write(Zy(e.devmajor||0,6),329),t.write(Zy(e.devminor||0,6),337),r&&t.write(r,345),t.write(Zy(Jy(t),6),148),t)},qy.decode=function(e,t,n){var r=0===e[156]?0:e[156]-Vy,a=tv(e,0,100,t),i=ev(e,100,8),o=ev(e,108,8),s=ev(e,116,8),u=ev(e,124,12),l=ev(e,136,12),c=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}(r),p=0===e[157]?null:tv(e,157,100,t),d=tv(e,265,32),f=tv(e,297,32),m=ev(e,329,8),h=ev(e,337,8),g=Jy(e);if(256===g)return null;if(g!==ev(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(0===Hy.compare(e,Qy,263))e[345]&&(a=tv(e,345,155,t)+"/"+a);else if(0===Gy.compare(e,Qy,263)&&0===Ky.compare(e,263,265));else if(!n)throw new Error("Invalid tar header: unknown format.");return 0===r&&a&&"/"===a[a.length-1]&&(r=5),{name:a,mode:i,uid:o,gid:s,size:u,mtime:new Date(1e3*l),type:c,linkname:p,uname:d,gname:f,devmajor:m,devminor:h}};var rv=L.default,av=Hg.exports,iv=qy,ov=Wg.exports.Writable,sv=Wg.exports.PassThrough,uv=function(){},lv=function(e){return(e&=511)&&512-e},cv=function(e,t){this._parent=e,this.offset=t,sv.call(this,{autoDestroy:!1})};rv.inherits(cv,sv),cv.prototype.destroy=function(e){this._parent.destroy(e)};var pv=function(e){if(!(this instanceof pv))return new pv(e);ov.call(this,e),e=e||{},this._offset=0,this._buffer=av(),this._missing=0,this._partial=!1,this._onparse=uv,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var t=this,n=t._buffer,r=function(){t._continue()},a=function(e){if(t._locked=!1,e)return t.destroy(e);t._stream||r()},i=function(){t._stream=null;var e=lv(t._header.size);e?t._parse(e,o):t._parse(512,p),t._locked||r()},o=function(){t._buffer.consume(lv(t._header.size)),t._parse(512,p),r()},s=function(){var e=t._header.size;t._paxGlobal=iv.decodePax(n.slice(0,e)),n.consume(e),i()},u=function(){var e=t._header.size;t._pax=iv.decodePax(n.slice(0,e)),t._paxGlobal&&(t._pax=Object.assign({},t._paxGlobal,t._pax)),n.consume(e),i()},l=function(){var r=t._header.size;this._gnuLongPath=iv.decodeLongPath(n.slice(0,r),e.filenameEncoding),n.consume(r),i()},c=function(){var r=t._header.size;this._gnuLongLinkPath=iv.decodeLongPath(n.slice(0,r),e.filenameEncoding),n.consume(r),i()},p=function(){var o,d=t._offset;try{o=t._header=iv.decode(n.slice(0,512),e.filenameEncoding,e.allowUnknownFormat)}catch(e){t.emit("error",e)}return n.consume(512),o?"gnu-long-path"===o.type?(t._parse(o.size,l),void r()):"gnu-long-link-path"===o.type?(t._parse(o.size,c),void r()):"pax-global-header"===o.type?(t._parse(o.size,s),void r()):"pax-header"===o.type?(t._parse(o.size,u),void r()):(t._gnuLongPath&&(o.name=t._gnuLongPath,t._gnuLongPath=null),t._gnuLongLinkPath&&(o.linkname=t._gnuLongLinkPath,t._gnuLongLinkPath=null),t._pax&&(t._header=o=function(e,t){return t.path&&(e.name=t.path),t.linkpath&&(e.linkname=t.linkpath),t.size&&(e.size=parseInt(t.size,10)),e.pax=t,e}(o,t._pax),t._pax=null),t._locked=!0,o.size&&"directory"!==o.type?(t._stream=new cv(t,d),t.emit("entry",o,t._stream,a),t._parse(o.size,i),void r()):(t._parse(512,p),void t.emit("entry",o,function(e,t){var n=new cv(e,t);return n.end(),n}(t,d),a))):(t._parse(512,p),void r())};this._onheader=p,this._parse(512,p)};rv.inherits(pv,ov),pv.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.emit("close"))},pv.prototype._parse=function(e,t){this._destroyed||(this._offset+=e,this._missing=e,t===this._onheader&&(this._partial=!1),this._onparse=t)},pv.prototype._continue=function(){if(!this._destroyed){var e=this._cb;this._cb=uv,this._overflow?this._write(this._overflow,void 0,e):e()}},pv.prototype._write=function(e,t,n){if(!this._destroyed){var r=this._stream,a=this._buffer,i=this._missing;if(e.length&&(this._partial=!0),e.length<i)return this._missing-=e.length,this._overflow=null,r?r.write(e,n):(a.append(e),n());this._cb=n,this._missing=0;var o=null;e.length>i&&(o=e.slice(i),e=e.slice(0,i)),r?r.end(e):a.append(e),this._overflow=o,this._onparse()}},pv.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()};var dv=pv,fv=R.default.constants||F.default,mv={exports:{}},hv=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){r[e]=t[e]})),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),a=e[e.length-1];return"function"==typeof r&&r!==a&&Object.keys(a).forEach((function(e){r[e]=a[e]})),r}};var gv=hv;function yv(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function vv(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}mv.exports=gv(yv),mv.exports.strict=gv(vv),yv.proto=yv((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return yv(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return vv(this)},configurable:!0})}));var bv=mv.exports,wv=function(){},_v=function(e,t,n){if("function"==typeof t)return _v(e,null,t);t||(t={}),n=bv(n||wv);var r=e._writableState,a=e._readableState,i=t.readable||!1!==t.readable&&e.readable,o=t.writable||!1!==t.writable&&e.writable,s=!1,u=function(){e.writable||l()},l=function(){o=!1,i||n.call(e)},c=function(){i=!1,o||n.call(e)},p=function(t){n.call(e,t?new Error("exited with error code: "+t):null)},d=function(t){n.call(e,t)},f=function(){process.nextTick(m)},m=function(){if(!s)return(!i||a&&a.ended&&!a.destroyed)&&(!o||r&&r.ended&&!r.destroyed)?void 0:n.call(e,new Error("premature close"))},h=function(){e.req.on("finish",l)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?o&&!r&&(e.on("end",u),e.on("close",u)):(e.on("complete",l),e.on("abort",f),e.req?h():e.on("request",h)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(e)&&e.on("exit",p),e.on("end",c),e.on("finish",l),!1!==t.error&&e.on("error",d),e.on("close",f),function(){s=!0,e.removeListener("complete",l),e.removeListener("abort",f),e.removeListener("request",h),e.req&&e.req.removeListener("finish",l),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",l),e.removeListener("exit",p),e.removeListener("end",c),e.removeListener("error",d),e.removeListener("close",f)}},xv=_v,kv=fv,Sv=xv,Ev=Sy.exports,Cv=Buffer.alloc,Dv=Wg.exports.Readable,Ov=Wg.exports.Writable,Nv=Q.default.StringDecoder,jv=qy,Pv=parseInt("755",8),Tv=parseInt("644",8),Av=Cv(1024),Rv=function(){},Iv=function(e,t){(t&=511)&&e.push(Av.slice(0,512-t))};var Mv=function(e){Ov.call(this),this.written=0,this._to=e,this._destroyed=!1};Ev(Mv,Ov),Mv.prototype._write=function(e,t,n){if(this.written+=e.length,this._to.push(e))return n();this._to._drain=n},Mv.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var Lv=function(){Ov.call(this),this.linkname="",this._decoder=new Nv("utf-8"),this._destroyed=!1};Ev(Lv,Ov),Lv.prototype._write=function(e,t,n){this.linkname+=this._decoder.write(e),n()},Lv.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var Fv=function(){Ov.call(this),this._destroyed=!1};Ev(Fv,Ov),Fv.prototype._write=function(e,t,n){n(new Error("No body allowed for this entry"))},Fv.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var zv=function(e){if(!(this instanceof zv))return new zv(e);Dv.call(this,e),this._drain=Rv,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};Ev(zv,Dv),zv.prototype.entry=function(e,t,n){if(this._stream)throw new Error("already piping an entry");if(!this._finalized&&!this._destroyed){"function"==typeof t&&(n=t,t=null),n||(n=Rv);var r=this;if(e.size&&"symlink"!==e.type||(e.size=0),e.type||(e.type=function(e){switch(e&kv.S_IFMT){case kv.S_IFBLK:return"block-device";case kv.S_IFCHR:return"character-device";case kv.S_IFDIR:return"directory";case kv.S_IFIFO:return"fifo";case kv.S_IFLNK:return"symlink"}return"file"}(e.mode)),e.mode||(e.mode="directory"===e.type?Pv:Tv),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),"string"==typeof t&&(t=Buffer.from(t)),Buffer.isBuffer(t)){e.size=t.length,this._encode(e);var a=this.push(t);return Iv(r,e.size),a?process.nextTick(n):this._drain=n,new Fv}if("symlink"===e.type&&!e.linkname){var i=new Lv;return Sv(i,(function(t){if(t)return r.destroy(),n(t);e.linkname=i.linkname,r._encode(e),n()})),i}if(this._encode(e),"file"!==e.type&&"contiguous-file"!==e.type)return process.nextTick(n),new Fv;var o=new Mv(this);return this._stream=o,Sv(o,(function(t){return r._stream=null,t?(r.destroy(),n(t)):o.written!==e.size?(r.destroy(),n(new Error("size mismatch"))):(Iv(r,e.size),r._finalizing&&r.finalize(),void n())})),o}},zv.prototype.finalize=function(){this._stream?this._finalizing=!0:this._finalized||(this._finalized=!0,this.push(Av),this.push(null))},zv.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.destroy&&this._stream.destroy())},zv.prototype._encode=function(e){if(!e.pax){var t=jv.encode(e);if(t)return void this.push(t)}this._encodePax(e)},zv.prototype._encodePax=function(e){var t=jv.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),n={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(jv.encode(n)),this.push(t),Iv(this,t.length),n.size=e.size,n.type=e.type,this.push(jv.encode(n))},zv.prototype._read=function(e){var t=this._drain;this._drain=Rv,t()};var Bv=zv;Vg.extract=dv,Vg.pack=Bv;var Uv=mv.exports,qv=xv,$v=R.default,Vv=function(){},Hv=/^v?\.0/.test(process.version),Wv=function(e){return"function"==typeof e},Gv=function(e,t,n,r){r=Uv(r);var a=!1;e.on("close",(function(){a=!0})),qv(e,{readable:t,writable:n},(function(e){if(e)return r(e);a=!0,r()}));var i=!1;return function(t){if(!a&&!i)return i=!0,function(e){return!!Hv&&!!$v&&(e instanceof($v.ReadStream||Vv)||e instanceof($v.WriteStream||Vv))&&Wv(e.close)}(e)?e.close(Vv):function(e){return e.setHeader&&Wv(e.abort)}(e)?e.abort():Wv(e.destroy)?e.destroy():void r(t||new Error("stream was destroyed"))}},Kv=function(e){e()},Yv=function(e,t){return e.pipe(t)},Qv=function(){var e,t=Array.prototype.slice.call(arguments),n=Wv(t[t.length-1]||Vv)&&t.pop()||Vv;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r=t.map((function(a,i){var o=i<t.length-1;return Gv(a,o,i>0,(function(t){e||(e=t),t&&r.forEach(Kv),o||(r.forEach(Kv),n(e))}))}));return t.reduce(Yv)},Xv=A.default,Jv=R.default,Zv=parseInt("0777",8),eb=tb.mkdirp=tb.mkdirP=tb;function tb(e,t,n,r){"function"==typeof t?(n=t,t={}):t&&"object"==typeof t||(t={mode:t});var a=t.mode,i=t.fs||Jv;void 0===a&&(a=Zv&~process.umask()),r||(r=null);var o=n||function(){};e=Xv.resolve(e),i.mkdir(e,a,(function(n){if(!n)return o(null,r=r||e);if("ENOENT"===n.code)tb(Xv.dirname(e),t,(function(n,r){n?o(n,r):tb(e,t,o,r)}));else i.stat(e,(function(e,t){e||!t.isDirectory()?o(n,r):o(null,r)}))}))}tb.sync=function e(t,n,r){n&&"object"==typeof n||(n={mode:n});var a=n.mode,i=n.fs||Jv;void 0===a&&(a=Zv&~process.umask()),r||(r=null),t=Xv.resolve(t);try{i.mkdirSync(t,a),r=r||t}catch(a){if("ENOENT"===a.code)r=e(Xv.dirname(t),n,r),e(t,n,r);else{var o;try{o=i.statSync(t)}catch(e){throw a}if(!o.isDirectory())throw a}}return r};var nb=Fg,rb=Vg,ab=Qv,ib=eb,ob=R.default,sb=A.default,ub="win32"===M.default.platform(),lb=function(){},cb=function(e){return e},pb=ub?function(e){return e.replace(/\\/g,"/").replace(/[:?<>|]/g,"_")}:cb,db=function(e,t){return function(n){n.name=n.name.split("/").slice(t).join("/");var r=n.linkname;return r&&("link"===n.type||sb.isAbsolute(r))&&(n.linkname=r.split("/").slice(t).join("/")),e(n)}};kg.pack=function(e,t){e||(e="."),t||(t={});var n=t.fs||ob,r=t.ignore||t.filter||lb,a=t.map||lb,i=t.mapStream||cb,o=function(e,t,n,r,a,i){var o=a||["."];return function(a){if(!o.length)return a();var s=o.shift(),u=sb.join(n,s);t.call(e,u,(function(t,l){return t?a(t):l.isDirectory()?void e.readdir(u,(function(e,t){if(e)return a(e);i&&t.sort();for(var u=0;u<t.length;u++)r(sb.join(n,s,t[u]))||o.push(sb.join(s,t[u]));a(null,s,l)})):a(null,s,l)}))}}(n,t.dereference?n.stat:n.lstat,e,r,t.entries,t.sort),s=!1!==t.strict,u="number"==typeof t.umask?~t.umask:~fb(),l="number"==typeof t.dmode?t.dmode:0,c="number"==typeof t.fmode?t.fmode:0,p=t.pack||rb.pack(),d=t.finish||lb;t.strip&&(a=db(a,t.strip)),t.readable&&(l|=parseInt(555,8),c|=parseInt(444,8)),t.writable&&(l|=parseInt(333,8),c|=parseInt(222,8));var f=function(r,o,f){if(r)return p.destroy(r);if(!o)return!1!==t.finalize&&p.finalize(),d(p);if(f.isSocket())return m();var h={name:pb(o),mode:(f.mode|(f.isDirectory()?l:c))&u,mtime:f.mtime,size:f.size,type:"file",uid:f.uid,gid:f.gid};if(f.isDirectory())return h.size=0,h.type="directory",h=a(h)||h,p.entry(h,m);if(f.isSymbolicLink())return h.size=0,h.type="symlink",function(t,r){n.readlink(sb.join(e,t),(function(e,t){if(e)return p.destroy(e);r.linkname=pb(t),p.entry(r,m)}))}(o,h=a(h)||h);if(h=a(h)||h,!f.isFile())return s?p.destroy(new Error("unsupported type for "+o)):m();var g=p.entry(h,m);if(g){var y=i(n.createReadStream(sb.join(e,o),{start:0,end:h.size>0?h.size-1:h.size}),h);y.on("error",(function(e){g.destroy(e)})),ab(y,g)}},m=function(e){if(e)return p.destroy(e);o(f)};return m(),p};var fb=function(){return process.umask?process.umask():0};function mb(e,t,n,r){if(t===n)return r(null,!0);e.lstat(t,(function(a,i){return a&&"ENOENT"!==a.code?r(a):a||i.isDirectory()?mb(e,sb.join(t,".."),n,r):void r(null,!1)}))}function hb(e,t,n){ib(e,{fs:t.fs},(function(e,r){!e&&r&&t.own?nb(r,t.uid,t.gid,n):n(e)}))}kg.extract=function(e,t){e||(e="."),t||(t={});var n=t.fs||ob,r=t.ignore||t.filter||lb,a=t.map||lb,i=t.mapStream||cb,o=!1!==t.chown&&!ub&&0===(process.getuid?process.getuid():-1),s=t.extract||rb.extract(),u=[],l=new Date,c="number"==typeof t.umask?~t.umask:~fb(),p="number"==typeof t.dmode?t.dmode:0,d="number"==typeof t.fmode?t.fmode:0,f=!1!==t.strict;t.strip&&(a=db(a,t.strip)),t.readable&&(p|=parseInt(555,8),d|=parseInt(444,8)),t.writable&&(p|=parseInt(333,8),d|=parseInt(222,8));var m=function(e,t){for(var r,a;(r=(a=u).length?a[a.length-1]:null)&&e.slice(0,r[0].length)!==r[0];)u.pop();if(!r)return t();n.utimes(r[0],l,r[1],t)};return s.on("entry",(function(s,h,g){(s=a(s)||s).name=pb(s.name);var y=sb.join(e,sb.join("/",s.name));if(r(y,s))return h.resume(),g();var v=function(e){if(e)return g(e);!function(e,r,a){!1===t.utimes?a():"directory"===r.type?n.utimes(e,l,r.mtime,a):"symlink"===r.type?m(e,a):n.utimes(e,l,r.mtime,(function(t){if(t)return a(t);m(e,a)}))}(y,s,(function(e){return e?g(e):ub?g():void function(e,t,r){var a="symlink"===t.type,i=a?n.lchmod:n.chmod,s=a?n.lchown:n.chown;if(!i)return r();var u=(t.mode|("directory"===t.type?p:d))&c;function l(t){return t?r(t):i?void i.call(n,e,u,r):r()}s&&o?s.call(n,e,t.uid,t.gid,l):l(null)}(y,s,g)}))},b=function(){var e=n.createWriteStream(y),t=i(h,s);e.on("error",(function(e){t.destroy(e)})),ab(t,e,(function(t){if(t)return g(t);e.on("close",v)}))};if("directory"===s.type)return u.push([y,s.mtime]),hb(y,{fs:n,own:o,uid:s.uid,gid:s.gid},v);var w=sb.dirname(y);mb(n,w,sb.join(e,"."),(function(r,a){return r?g(r):a?void hb(w,{fs:n,own:o,uid:s.uid,gid:s.gid},(function(r){if(r)return g(r);switch(s.type){case"file":return b();case"link":return function(){if(ub)return g();n.unlink(y,(function(){var r=sb.join(e,sb.join("/",s.linkname));n.link(r,y,(function(e){if(e&&"EPERM"===e.code&&t.hardlinkAsFilesFallback)return h=n.createReadStream(r),b();v(e)}))}))}();case"symlink":return function(){if(ub)return g();n.unlink(y,(function(){n.symlink(s.linkname,y,v)}))}()}if(f)return g(new Error("unsupported type for "+y+" ("+s.type+")"));h.resume(),g()})):g(new Error(w+" is not a valid path"))}))})),t.finish&&s.on("finish",t.finish),s};var gb={},yb={exports:{}};const vb=z.default.PassThrough,bb=Array.prototype.slice;var wb=function(){const e=[],t=bb.call(arguments);let n=!1,r=t[t.length-1];r&&!Array.isArray(r)&&null==r.pipe?t.pop():r={};const a=!1!==r.end,i=!0===r.pipeError;null==r.objectMode&&(r.objectMode=!0);null==r.highWaterMark&&(r.highWaterMark=65536);const o=vb(r);function s(){for(let t=0,n=arguments.length;t<n;t++)e.push(_b(arguments[t],r));return u(),this}function u(){if(n)return;n=!0;let t=e.shift();if(!t)return void process.nextTick(l);Array.isArray(t)||(t=[t]);let r=t.length+1;function a(){--r>0||(n=!1,u())}function s(e){function t(){e.removeListener("merge2UnpipeEnd",t),e.removeListener("end",t),i&&e.removeListener("error",n),a()}function n(e){o.emit("error",e)}if(e._readableState.endEmitted)return a();e.on("merge2UnpipeEnd",t),e.on("end",t),i&&e.on("error",n),e.pipe(o,{end:!1}),e.resume()}for(let e=0;e<t.length;e++)s(t[e]);a()}function l(){n=!1,o.emit("queueDrain"),a&&o.end()}o.setMaxListeners(0),o.add=s,o.on("unpipe",(function(e){e.emit("merge2UnpipeEnd")})),t.length&&s.apply(null,t);return o};function _b(e,t){if(Array.isArray(e))for(let n=0,r=e.length;n<r;n++)e[n]=_b(e[n],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(vb(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}var xb={},kb={},Sb={};Object.defineProperty(Sb,"__esModule",{value:!0}),Sb.splitWhen=Sb.flatten=void 0,Sb.flatten=function(e){return e.reduce(((e,t)=>[].concat(e,t)),[])},Sb.splitWhen=function(e,t){const n=[[]];let r=0;for(const a of e)t(a)?(r++,n[r]=[]):n[r].push(a);return n};var Eb={};Object.defineProperty(Eb,"__esModule",{value:!0}),Eb.isEnoentCodeError=void 0,Eb.isEnoentCodeError=function(e){return"ENOENT"===e.code};var Cb={};Object.defineProperty(Cb,"__esModule",{value:!0}),Cb.createDirentFromStats=void 0;class Db{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}}Cb.createDirentFromStats=function(e,t){return new Db(e,t)};var Ob={};Object.defineProperty(Ob,"__esModule",{value:!0}),Ob.removeLeadingDotSegment=Ob.escape=Ob.makeAbsolute=Ob.unixify=void 0;const Nb=A.default,jb=2,Pb=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;Ob.unixify=function(e){return e.replace(/\\/g,"/")},Ob.makeAbsolute=function(e,t){return Nb.resolve(e,t)},Ob.escape=function(e){return e.replace(Pb,"\\$2")},Ob.removeLeadingDotSegment=function(e){if("."===e.charAt(0)){const t=e.charAt(1);if("/"===t||"\\"===t)return e.slice(jb)}return e};var Tb={},Ab=function(e){if("string"!=typeof e||""===e)return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1},Rb={"{":"}","(":")","[":"]"},Ib=function(e){if("!"===e[0])return!0;for(var t=0,n=-2,r=-2,a=-2,i=-2,o=-2;t<e.length;){if("*"===e[t])return!0;if("?"===e[t+1]&&/[\].+)]/.test(e[t]))return!0;if(-1!==r&&"["===e[t]&&"]"!==e[t+1]&&(r<t&&(r=e.indexOf("]",t)),r>t)){if(-1===o||o>r)return!0;if(-1===(o=e.indexOf("\\",t))||o>r)return!0}if(-1!==a&&"{"===e[t]&&"}"!==e[t+1]&&(a=e.indexOf("}",t))>t&&(-1===(o=e.indexOf("\\",t))||o>a))return!0;if(-1!==i&&"("===e[t]&&"?"===e[t+1]&&/[:!=]/.test(e[t+2])&&")"!==e[t+3]&&(i=e.indexOf(")",t))>t&&(-1===(o=e.indexOf("\\",t))||o>i))return!0;if(-1!==n&&"("===e[t]&&"|"!==e[t+1]&&(n<t&&(n=e.indexOf("|",t)),-1!==n&&")"!==e[n+1]&&(i=e.indexOf(")",n))>n&&(-1===(o=e.indexOf("\\",n))||o>i)))return!0;if("\\"===e[t]){var s=e[t+1];t+=2;var u=Rb[s];if(u){var l=e.indexOf(u,t);-1!==l&&(t=l+1)}if("!"===e[t])return!0}else t++}return!1},Mb=function(e){if("!"===e[0])return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if("\\"===e[t]){var n=e[t+1];t+=2;var r=Rb[n];if(r){var a=e.indexOf(r,t);-1!==a&&(t=a+1)}if("!"===e[t])return!0}else t++}return!1},Lb=function(e,t){if("string"!=typeof e||""===e)return!1;if(Ab(e))return!0;var n=Ib;return t&&!1===t.strict&&(n=Mb),n(e)},Fb=Lb,zb=A.default.posix.dirname,Bb="win32"===M.default.platform(),Ub=/\\/g,qb=/[\{\[].*[\}\]]$/,$b=/(^|[^\\])([\{\[]|\([^\)]+$)/,Vb=/\\([\!\*\?\|\[\]\(\)\{\}])/g,Hb=function(e,t){Object.assign({flipBackslashes:!0},t).flipBackslashes&&Bb&&e.indexOf("/")<0&&(e=e.replace(Ub,"/")),qb.test(e)&&(e+="/"),e+="a";do{e=zb(e)}while(Fb(e)||$b.test(e));return e.replace(Vb,"$1")},Wb={};
|
|
514
|
+
*/Object.defineProperty(hg,"__esModule",{value:!0});var gg=is,yg=function(e){function t(n){var r=e.call(this,n)||this;return r.name="PollerStoppedError",Object.setPrototypeOf(r,t.prototype),r}return gg.__extends(t,e),t}(Error),vg=function(e){function t(n){var r=e.call(this,n)||this;return r.name="PollerCancelledError",Object.setPrototypeOf(r,t.prototype),r}return gg.__extends(t,e),t}(Error),bg=function(){function e(e){var t=this;this.stopped=!0,this.pollProgressCallbacks=[],this.operation=e,this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n})),this.promise.catch((function(){}))}return e.prototype.startPolling=function(){return gg.__awaiter(this,void 0,void 0,(function(){return gg.__generator(this,(function(e){switch(e.label){case 0:this.stopped&&(this.stopped=!1),e.label=1;case 1:return this.isStopped()||this.isDone()?[3,4]:[4,this.poll()];case 2:return e.sent(),[4,this.delay()];case 3:return e.sent(),[3,1];case 4:return[2]}}))}))},e.prototype.pollOnce=function(e){return void 0===e&&(e={}),gg.__awaiter(this,void 0,void 0,(function(){var t,n;return gg.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),this.isDone()?[3,2]:(t=this,[4,this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})]);case 1:t.operation=r.sent(),this.isDone()&&this.resolve&&this.resolve(this.operation.state.result),r.label=2;case 2:return[3,4];case 3:throw n=r.sent(),this.operation.state.error=n,this.reject&&this.reject(n),n;case 4:return[2]}}))}))},e.prototype.fireProgress=function(e){for(var t=0,n=this.pollProgressCallbacks;t<n.length;t++){(0,n[t])(e)}},e.prototype.cancelOnce=function(e){return void 0===e&&(e={}),gg.__awaiter(this,void 0,void 0,(function(){var t;return gg.__generator(this,(function(n){switch(n.label){case 0:return t=this,[4,this.operation.cancel(e)];case 1:return t.operation=n.sent(),this.reject&&this.reject(new vg("Poller cancelled")),[2]}}))}))},e.prototype.poll=function(e){var t=this;if(void 0===e&&(e={}),!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);var n=function(){t.pollOncePromise=void 0};this.pollOncePromise.then(n,n).catch(this.reject)}return this.pollOncePromise},e.prototype.pollUntilDone=function(){return gg.__awaiter(this,void 0,void 0,(function(){return gg.__generator(this,(function(e){return this.stopped&&this.startPolling().catch(this.reject),[2,this.promise]}))}))},e.prototype.onProgress=function(e){var t=this;return this.pollProgressCallbacks.push(e),function(){t.pollProgressCallbacks=t.pollProgressCallbacks.filter((function(t){return t!==e}))}},e.prototype.isDone=function(){var e=this.operation.state;return Boolean(e.isCompleted||e.isCancelled||e.error)},e.prototype.stopPolling=function(){this.stopped||(this.stopped=!0,this.reject&&this.reject(new yg("This poller is already stopped")))},e.prototype.isStopped=function(){return this.stopped},e.prototype.cancelOperation=function(e){if(void 0===e&&(e={}),this.stopped||(this.stopped=!0),this.cancelPromise){if(e.abortSignal)throw new Error("A cancel request is currently pending")}else this.cancelPromise=this.cancelOnce(e);return this.cancelPromise},e.prototype.getOperationState=function(){return this.operation.state},e.prototype.getResult=function(){return this.operation.state.result},e.prototype.toString=function(){return this.operation.toString()},e}();hg.Poller=bg,hg.PollerCancelledError=vg,hg.PollerStoppedError=yg;var wg={};Object.defineProperty(wg,"__esModule",{value:!0});var _g=is;function xg(e,t={}){return _g.__asyncGenerator(this,arguments,(function*(){const{pageLink:n,maxPageSize:r}=t;let a=yield _g.__await(e.getPage(null!=n?n:e.firstPageLink,r));if(!a)return yield _g.__await(void 0);for(yield yield _g.__await(a.page);a.nextPageLink;){if(a=yield _g.__await(e.getPage(a.nextPageLink,r)),!a)return yield _g.__await(void 0);yield yield _g.__await(a.page)}}))}wg.getPagedAsyncIterator=function(e){var t;const n=function(e){return _g.__asyncGenerator(this,arguments,(function*(){var t,n,r,a;const i=xg(e),o=yield _g.__await(i.next());if(Array.isArray(o.value)){yield _g.__await(yield*_g.__asyncDelegator(_g.__asyncValues(o.value)));try{for(var s,u=_g.__asyncValues(i);!(s=yield _g.__await(u.next())).done;){const e=s.value;yield _g.__await(yield*_g.__asyncDelegator(_g.__asyncValues(e)))}}catch(e){r={error:e}}finally{try{s&&!s.done&&(a=u.return)&&(yield _g.__await(a.call(u)))}finally{if(r)throw r.error}}}else{const{toElements:r}=e;if(r){yield _g.__await(yield*_g.__asyncDelegator(_g.__asyncValues(r(o.value))));try{for(var l,c=_g.__asyncValues(i);!(l=yield _g.__await(c.next())).done;){const e=l.value;yield _g.__await(yield*_g.__asyncDelegator(_g.__asyncValues(r(e))))}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=c.return)&&(yield _g.__await(n.call(c)))}finally{if(t)throw t.error}}}else yield yield _g.__await(o.value),yield _g.__await(yield*_g.__asyncDelegator(_g.__asyncValues(i)))}}))}(e);return{next:()=>n.next(),[Symbol.asyncIterator](){return this},byPage:null!==(t=null==e?void 0:e.byPage)&&void 0!==t?t:t=>{const{continuationToken:n,maxPageSize:r}=null!=t?t:{};return xg(e,{pageLink:n,maxPageSize:r})}}},function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Qo,n=gh,r=yh,a=Oc,i=Tl,o=M.default,s=z.default,u=R.default,l=L.default,c=q.default,p=P.default,d=Jh,f=hg,m={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{xmlName:"Start",required:!0,serializedName:"Start",type:{name:"String"}},expiresOn:{xmlName:"Expiry",required:!0,serializedName:"Expiry",type:{name:"String"}}}}},h={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{xmlName:"SignedOid",required:!0,serializedName:"SignedOid",type:{name:"String"}},signedTenantId:{xmlName:"SignedTid",required:!0,serializedName:"SignedTid",type:{name:"String"}},signedStartsOn:{xmlName:"SignedStart",required:!0,serializedName:"SignedStart",type:{name:"String"}},signedExpiresOn:{xmlName:"SignedExpiry",required:!0,serializedName:"SignedExpiry",type:{name:"String"}},signedService:{xmlName:"SignedService",required:!0,serializedName:"SignedService",type:{name:"String"}},signedVersion:{xmlName:"SignedVersion",required:!0,serializedName:"SignedVersion",type:{name:"String"}},value:{xmlName:"Value",required:!0,serializedName:"Value",type:{name:"String"}}}}},g={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{xmlName:"Message",serializedName:"Message",type:{name:"String"}}}}},y={serializedName:"DataLakeStorageError",type:{name:"Composite",className:"DataLakeStorageError",modelProperties:{error:{xmlName:"error",serializedName:"error",type:{name:"Composite",className:"DataLakeStorageErrorError"}}}}},v={xmlName:"EnumerationResults",serializedName:"ListBlobsFlatSegmentResponse",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{xmlIsAttribute:!0,xmlName:"ServiceEndpoint",required:!0,serializedName:"ServiceEndpoint",type:{name:"String"}},containerName:{xmlIsAttribute:!0,xmlName:"ContainerName",required:!0,serializedName:"ContainerName",type:{name:"String"}},prefix:{xmlName:"Prefix",serializedName:"Prefix",type:{name:"String"}},marker:{xmlName:"Marker",serializedName:"Marker",type:{name:"String"}},maxPageSize:{xmlName:"MaxResults",serializedName:"MaxResults",type:{name:"Number"}},segment:{xmlName:"Blobs",required:!0,serializedName:"Segment",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{xmlName:"NextMarker",serializedName:"NextMarker",type:{name:"String"}}}}},b={xmlName:"EnumerationResults",serializedName:"ListBlobsHierarchySegmentResponse",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{xmlIsAttribute:!0,xmlName:"ServiceEndpoint",required:!0,serializedName:"ServiceEndpoint",type:{name:"String"}},containerName:{xmlIsAttribute:!0,xmlName:"ContainerName",required:!0,serializedName:"ContainerName",type:{name:"String"}},prefix:{xmlName:"Prefix",serializedName:"Prefix",type:{name:"String"}},marker:{xmlName:"Marker",serializedName:"Marker",type:{name:"String"}},maxPageSize:{xmlName:"MaxResults",serializedName:"MaxResults",type:{name:"Number"}},delimiter:{xmlName:"Delimiter",serializedName:"Delimiter",type:{name:"String"}},segment:{xmlName:"Blobs",required:!0,serializedName:"Segment",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{xmlName:"NextMarker",serializedName:"NextMarker",type:{name:"String"}}}}},w={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{xmlIsWrapped:!0,xmlName:"CommittedBlocks",xmlElementName:"Block",serializedName:"CommittedBlocks",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{xmlIsWrapped:!0,xmlName:"UncommittedBlocks",xmlElementName:"Block",serializedName:"UncommittedBlocks",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}},_={xmlName:"BlockList",serializedName:"BlockLookupList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{xmlName:"Committed",xmlElementName:"Committed",serializedName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{xmlName:"Uncommitted",xmlElementName:"Uncommitted",serializedName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{xmlName:"Latest",xmlElementName:"Latest",serializedName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},x={xmlName:"EnumerationResults",serializedName:"ListContainersSegmentResponse",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{xmlIsAttribute:!0,xmlName:"ServiceEndpoint",required:!0,serializedName:"ServiceEndpoint",type:{name:"String"}},prefix:{xmlName:"Prefix",serializedName:"Prefix",type:{name:"String"}},marker:{xmlName:"Marker",serializedName:"Marker",type:{name:"String"}},maxPageSize:{xmlName:"MaxResults",serializedName:"MaxResults",type:{name:"Number"}},containerItems:{xmlIsWrapped:!0,xmlName:"Containers",xmlElementName:"Container",required:!0,serializedName:"ContainerItems",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{xmlName:"NextMarker",serializedName:"NextMarker",type:{name:"String"}}}}},k={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{xmlName:"PageRange",xmlElementName:"PageRange",serializedName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{xmlName:"ClearRange",xmlElementName:"ClearRange",serializedName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}}}}},S={xmlName:"StorageServiceProperties",serializedName:"BlobServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{xmlName:"Logging",serializedName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{xmlName:"HourMetrics",serializedName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{xmlName:"MinuteMetrics",serializedName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{xmlIsWrapped:!0,xmlName:"Cors",xmlElementName:"CorsRule",serializedName:"Cors",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{xmlName:"DefaultServiceVersion",serializedName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{xmlName:"DeleteRetentionPolicy",serializedName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{xmlName:"StaticWebsite",serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}},E={xmlName:"StorageServiceStats",serializedName:"BlobServiceStatistics",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{xmlName:"GeoReplication",serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}},C={serializedName:"service-setproperties-headers",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},D={serializedName:"service-getproperties-headers",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},O={serializedName:"service-getstatistics-headers",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},N={serializedName:"service-listcontainerssegment-headers",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},j={serializedName:"service-getuserdelegationkey-headers",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},T={serializedName:"service-getaccountinfo-headers",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2"]}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},A={serializedName:"service-submitbatch-headers",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},I={serializedName:"container-create-headers",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},F={serializedName:"container-getproperties-headers",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",type:{name:"String"}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},B={serializedName:"container-delete-headers",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},U={serializedName:"container-setmetadata-headers",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},$={serializedName:"container-getaccesspolicy-headers",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",type:{name:"String"}},etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},V={serializedName:"container-setaccesspolicy-headers",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},H={serializedName:"container-acquirelease-headers",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},W={serializedName:"container-releaselease-headers",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},G={serializedName:"container-renewlease-headers",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},K={serializedName:"container-breaklease-headers",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Y={serializedName:"container-changelease-headers",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Q={serializedName:"container-listblobflatsegment-headers",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},X={serializedName:"container-listblobhierarchysegment-headers",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},J={serializedName:"container-getaccountinfo-headers",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2"]}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Z={serializedName:"blob-download-headers",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},contentLength:{serializedName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},contentCrc64:{serializedName:"x-ms-content-crc64",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},ee={serializedName:"blob-getproperties-headers",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},blobType:{serializedName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},te={serializedName:"blob-delete-headers",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},ne={serializedName:"blob-setaccesscontrol-headers",type:{name:"Composite",className:"BlobSetAccessControlHeaders",modelProperties:{date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}}}}},re={serializedName:"blob-getaccesscontrol-headers",type:{name:"Composite",className:"BlobGetAccessControlHeaders",modelProperties:{date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},xMsOwner:{serializedName:"x-ms-owner",type:{name:"String"}},xMsGroup:{serializedName:"x-ms-group",type:{name:"String"}},xMsPermissions:{serializedName:"x-ms-permissions",type:{name:"String"}},xMsAcl:{serializedName:"x-ms-acl",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}}}}},ae={serializedName:"blob-rename-headers",type:{name:"Composite",className:"BlobRenameHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},contentLength:{serializedName:"content-length",type:{name:"Number"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}}}}},ie={serializedName:"pageblob-create-headers",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},oe={serializedName:"appendblob-create-headers",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},se={serializedName:"blockblob-upload-headers",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},ue={serializedName:"blob-undelete-headers",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},le={serializedName:"blob-sethttpheaders-headers",type:{name:"Composite",className:"BlobSetHTTPHeadersHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},ce={serializedName:"blob-setmetadata-headers",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},pe={serializedName:"blob-acquirelease-headers",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},de={serializedName:"blob-releaselease-headers",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},fe={serializedName:"blob-renewlease-headers",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},me={serializedName:"blob-changelease-headers",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},he={serializedName:"blob-breaklease-headers",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},ge={serializedName:"blob-createsnapshot-headers",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},ye={serializedName:"blob-startcopyfromurl-headers",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},ve={serializedName:"blob-copyfromurl-headers",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["success"]}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},be={serializedName:"blob-abortcopyfromurl-headers",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},we={serializedName:"blob-settier-headers",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},_e={serializedName:"blob-getaccountinfo-headers",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2"]}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},xe={serializedName:"blockblob-stageblock-headers",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},ke={serializedName:"blockblob-stageblockfromurl-headers",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Se={serializedName:"blockblob-commitblocklist-headers",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Ee={serializedName:"blockblob-getblocklist-headers",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Ce={serializedName:"pageblob-uploadpages-headers",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},De={serializedName:"pageblob-clearpages-headers",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Oe={serializedName:"pageblob-uploadpagesfromurl-headers",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Ne={serializedName:"pageblob-getpageranges-headers",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},je={serializedName:"pageblob-getpagerangesdiff-headers",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Pe={serializedName:"pageblob-resize-headers",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Te={serializedName:"pageblob-updatesequencenumber-headers",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Ae={serializedName:"pageblob-copyincremental-headers",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Re={serializedName:"appendblob-appendblock-headers",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Ie={serializedName:"appendblob-appendblockfromurl-headers",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",type:{name:"String"}}}}},Me=Object.freeze({__proto__:null,BlobServiceProperties:S,BlobServiceStatistics:E,ContainerItem:{xmlName:"Container",serializedName:"ContainerItem",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{xmlName:"Name",required:!0,serializedName:"Name",type:{name:"String"}},properties:{xmlName:"Properties",required:!0,serializedName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{xmlName:"Metadata",serializedName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},ContainerProperties:{serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{xmlName:"Last-Modified",required:!0,serializedName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{xmlName:"Etag",required:!0,serializedName:"Etag",type:{name:"String"}},leaseStatus:{xmlName:"LeaseStatus",serializedName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{xmlName:"LeaseState",serializedName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{xmlName:"LeaseDuration",serializedName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{xmlName:"PublicAccess",serializedName:"PublicAccess",type:{name:"String"}},hasImmutabilityPolicy:{xmlName:"HasImmutabilityPolicy",serializedName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{xmlName:"HasLegalHold",serializedName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{xmlName:"DefaultEncryptionScope",serializedName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{xmlName:"DenyEncryptionScopeOverride",serializedName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}}}}},CorsRule:{serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{xmlName:"AllowedOrigins",required:!0,serializedName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{xmlName:"AllowedMethods",required:!0,serializedName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{xmlName:"AllowedHeaders",required:!0,serializedName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{xmlName:"ExposedHeaders",required:!0,serializedName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{xmlName:"MaxAgeInSeconds",required:!0,serializedName:"MaxAgeInSeconds",constraints:{InclusiveMinimum:0},type:{name:"Number"}}}}},GeoReplication:{serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{xmlName:"Status",required:!0,serializedName:"Status",type:{name:"String"}},lastSyncOn:{xmlName:"LastSyncTime",required:!0,serializedName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}},KeyInfo:m,ListContainersSegmentResponse:x,Logging:{serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{xmlName:"Version",required:!0,serializedName:"Version",type:{name:"String"}},deleteProperty:{xmlName:"Delete",required:!0,serializedName:"Delete",type:{name:"Boolean"}},read:{xmlName:"Read",required:!0,serializedName:"Read",type:{name:"Boolean"}},write:{xmlName:"Write",required:!0,serializedName:"Write",type:{name:"Boolean"}},retentionPolicy:{xmlName:"RetentionPolicy",required:!0,serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}},Metrics:{serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{xmlName:"Version",serializedName:"Version",type:{name:"String"}},enabled:{xmlName:"Enabled",required:!0,serializedName:"Enabled",type:{name:"Boolean"}},includeAPIs:{xmlName:"IncludeAPIs",serializedName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{xmlName:"RetentionPolicy",serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}},RetentionPolicy:{serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{xmlName:"Enabled",required:!0,serializedName:"Enabled",type:{name:"Boolean"}},days:{xmlName:"Days",serializedName:"Days",constraints:{InclusiveMinimum:1},type:{name:"Number"}}}}},ServiceGetAccountInfoHeaders:T,ServiceGetPropertiesHeaders:D,ServiceGetStatisticsHeaders:O,ServiceGetUserDelegationKeyHeaders:j,ServiceListContainersSegmentHeaders:N,ServiceSetPropertiesHeaders:C,ServiceSubmitBatchHeaders:A,StaticWebsite:{serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{xmlName:"Enabled",required:!0,serializedName:"Enabled",type:{name:"Boolean"}},indexDocument:{xmlName:"IndexDocument",serializedName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{xmlName:"ErrorDocument404Path",serializedName:"ErrorDocument404Path",type:{name:"String"}}}}},StorageError:g,UserDelegationKey:h}),Le={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",type:{name:"String"}}},Fe={parameterPath:"action",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-lease-action",defaultValue:"acquire",type:{name:"String"}}},ze={parameterPath:"action",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-lease-action",defaultValue:"release",type:{name:"String"}}},Be={parameterPath:"action",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-lease-action",defaultValue:"renew",type:{name:"String"}}},Ue={parameterPath:"action",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-lease-action",defaultValue:"break",type:{name:"String"}}},qe={parameterPath:"action",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-lease-action",defaultValue:"change",type:{name:"String"}}},$e={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}},Ve={parameterPath:["options","blobHTTPHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",type:{name:"String"}}},He={parameterPath:["options","blobHTTPHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",type:{name:"String"}}},We={parameterPath:["options","blobHTTPHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",type:{name:"String"}}},Ge={parameterPath:["options","blobHTTPHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",type:{name:"String"}}},Ke={parameterPath:"blobContentLength",mapper:{required:!0,serializedName:"x-ms-blob-content-length",type:{name:"Number"}}},Ye={parameterPath:["options","blobHTTPHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}},Qe={parameterPath:["options","blobHTTPHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",type:{name:"String"}}},Xe={parameterPath:["options","blobSequenceNumber"],mapper:{serializedName:"x-ms-blob-sequence-number",defaultValue:0,type:{name:"Number"}}},Je={parameterPath:"blockId",mapper:{required:!0,serializedName:"blockid",type:{name:"String"}}},Ze={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",type:{name:"Number"}}},et={parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"properties",type:{name:"String"}}},tt={parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"page",type:{name:"String"}}},nt={parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"pagelist",type:{name:"String"}}},rt={parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"appendblock",type:{name:"String"}}},at={parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"block",type:{name:"String"}}},it={parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"blocklist",type:{name:"String"}}},ot={parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"list",type:{name:"String"}}},st={parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"metadata",type:{name:"String"}}},ut={parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"acl",type:{name:"String"}}},lt={parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"lease",type:{name:"String"}}},ct={parameterPath:"contentLength",mapper:{required:!0,serializedName:"Content-Length",type:{name:"Number"}}},pt={parameterPath:"copySource",mapper:{required:!0,serializedName:"x-ms-copy-source",type:{name:"String"}}},dt={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",type:{name:"Number"}}},ft={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",type:{name:"Enum",allowedValues:["AES256"]}}},mt={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",type:{name:"String"}}},ht={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",type:{name:"String"}}},gt={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",type:{name:"String"}}},yt={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",type:{name:"String"}}},vt={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}},bt={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",type:{name:"String"}}},wt={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}},_t={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}},xt={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",type:{name:"Number"}}},kt={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}},St={parameterPath:["options","include"],mapper:{serializedName:"include",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs"]}}}},collectionFormat:t.QueryCollectionFormat.Csv},Et={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",type:{name:"String"}}},Ct={parameterPath:"leaseId",mapper:{required:!0,serializedName:"x-ms-lease-id",type:{name:"String"}}},Dt={parameterPath:["options","marker"],mapper:{serializedName:"marker",type:{name:"String"}}},Ot={parameterPath:["options","maxPageSize"],mapper:{serializedName:"maxresults",constraints:{InclusiveMinimum:1},type:{name:"Number"}}},Nt={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}},jt={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"}},Pt={parameterPath:"pageWrite",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-page-write",defaultValue:"update",type:{name:"String"}}},Tt={parameterPath:["options","posixPermissions"],mapper:{serializedName:"x-ms-permissions",type:{name:"String"}}},At={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",type:{name:"String"}}},Rt={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",type:{name:"String"}}},It={parameterPath:"proposedLeaseId",mapper:{required:!0,serializedName:"x-ms-proposed-lease-id",type:{name:"String"}}},Mt={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",type:{name:"String"}}},Lt={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",type:{name:"String"}}},Ft={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",type:{name:"String"}}},zt={parameterPath:"restype",mapper:{required:!0,isConstant:!0,serializedName:"restype",defaultValue:"service",type:{name:"String"}}},Bt={parameterPath:"restype",mapper:{required:!0,isConstant:!0,serializedName:"restype",defaultValue:"account",type:{name:"String"}}},Ut={parameterPath:"restype",mapper:{required:!0,isConstant:!0,serializedName:"restype",defaultValue:"container",type:{name:"String"}}},qt={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",type:{name:"String"}}},$t={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}},Vt={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",type:{name:"ByteArray"}}},Ht={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",type:{name:"String"}}},Wt={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}},Gt={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",type:{name:"String"}}},Kt={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},Yt={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",type:{name:"String"}}},Qt={parameterPath:"sourceUrl",mapper:{required:!0,serializedName:"x-ms-copy-source",type:{name:"String"}}},Xt={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",type:{name:"String"}}},Jt={parameterPath:["options","timeoutInSeconds"],mapper:{serializedName:"timeout",constraints:{InclusiveMinimum:0},type:{name:"Number"}}},Zt={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",type:{name:"ByteArray"}}},en={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",type:{name:"ByteArray"}}},tn={parameterPath:"url",mapper:{required:!0,serializedName:"url",defaultValue:"",type:{name:"String"}},skipEncoding:!0},nn={parameterPath:"version",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-version",defaultValue:"2019-07-07",type:{name:"String"}}},rn=function(){function e(e){this.client=e}return e.prototype.setProperties=function(e,t,n){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},on,n)},e.prototype.getProperties=function(e,t){return this.client.sendOperationRequest({options:e},sn,t)},e.prototype.getStatistics=function(e,t){return this.client.sendOperationRequest({options:e},un,t)},e.prototype.listContainersSegment=function(e,t){return this.client.sendOperationRequest({options:e},ln,t)},e.prototype.getUserDelegationKey=function(e,t,n){return this.client.sendOperationRequest({keyInfo:e,options:t},cn,n)},e.prototype.getAccountInfo=function(e,t){return this.client.sendOperationRequest({options:e},pn,t)},e.prototype.submitBatch=function(e,t,n,r,a){return this.client.sendOperationRequest({body:e,contentLength:t,multipartContentType:n,options:r},dn,a)},e}(),an=new t.Serializer(Me,!0),on={httpMethod:"PUT",urlParameters:[tn],queryParameters:[Jt,zt,et],headerParameters:[nn,Ft],requestBody:{parameterPath:"blobServiceProperties",mapper:n.__assign(n.__assign({},S),{required:!0})},contentType:"application/xml; charset=utf-8",responses:{202:{headersMapper:C},default:{bodyMapper:g,headersMapper:C}},isXML:!0,serializer:an},sn={httpMethod:"GET",urlParameters:[tn],queryParameters:[Jt,zt,et],headerParameters:[nn,Ft],responses:{200:{bodyMapper:S,headersMapper:D},default:{bodyMapper:g,headersMapper:D}},isXML:!0,serializer:an},un={httpMethod:"GET",urlParameters:[tn],queryParameters:[Jt,zt,{parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"stats",type:{name:"String"}}}],headerParameters:[nn,Ft],responses:{200:{bodyMapper:E,headersMapper:O},default:{bodyMapper:g,headersMapper:O}},isXML:!0,serializer:an},ln={httpMethod:"GET",urlParameters:[tn],queryParameters:[At,Dt,Ot,{parameterPath:["options","include"],mapper:{serializedName:"include",type:{name:"Enum",allowedValues:["metadata"]}}},Jt,ot],headerParameters:[nn,Ft],responses:{200:{bodyMapper:x,headersMapper:N},default:{bodyMapper:g,headersMapper:N}},isXML:!0,serializer:an},cn={httpMethod:"POST",urlParameters:[tn],queryParameters:[Jt,zt,{parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"userdelegationkey",type:{name:"String"}}}],headerParameters:[nn,Ft],requestBody:{parameterPath:"keyInfo",mapper:n.__assign(n.__assign({},m),{required:!0})},contentType:"application/xml; charset=utf-8",responses:{200:{bodyMapper:h,headersMapper:j},default:{bodyMapper:g,headersMapper:j}},isXML:!0,serializer:an},pn={httpMethod:"GET",urlParameters:[tn],queryParameters:[Bt,et],headerParameters:[nn],responses:{200:{headersMapper:T},default:{bodyMapper:g,headersMapper:T}},isXML:!0,serializer:an},dn={httpMethod:"POST",urlParameters:[tn],queryParameters:[Jt,{parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"batch",type:{name:"String"}}}],headerParameters:[ct,{parameterPath:"multipartContentType",mapper:{required:!0,serializedName:"Content-Type",type:{name:"String"}}},nn,Ft],requestBody:{parameterPath:"body",mapper:{required:!0,serializedName:"body",type:{name:"Stream"}}},contentType:"application/xml; charset=utf-8",responses:{202:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Stream"}},headersMapper:A},default:{bodyMapper:g,headersMapper:A}},isXML:!0,serializer:an},fn=Object.freeze({__proto__:null,AccessPolicy:{serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{xmlName:"Start",serializedName:"Start",type:{name:"String"}},expiresOn:{xmlName:"Expiry",serializedName:"Expiry",type:{name:"String"}},permissions:{xmlName:"Permission",serializedName:"Permission",type:{name:"String"}}}}},BlobFlatListSegment:{xmlName:"Blobs",serializedName:"BlobFlatListSegment",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{xmlName:"BlobItems",xmlElementName:"Blob",required:!0,serializedName:"BlobItems",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItem"}}}}}}},BlobHierarchyListSegment:{xmlName:"Blobs",serializedName:"BlobHierarchyListSegment",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",serializedName:"BlobPrefixes",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{xmlName:"BlobItems",xmlElementName:"Blob",required:!0,serializedName:"BlobItems",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItem"}}}}}}},BlobItem:{xmlName:"Blob",serializedName:"BlobItem",type:{name:"Composite",className:"BlobItem",modelProperties:{name:{xmlName:"Name",required:!0,serializedName:"Name",type:{name:"String"}},deleted:{xmlName:"Deleted",required:!0,serializedName:"Deleted",type:{name:"Boolean"}},snapshot:{xmlName:"Snapshot",required:!0,serializedName:"Snapshot",type:{name:"String"}},properties:{xmlName:"Properties",required:!0,serializedName:"Properties",type:{name:"Composite",className:"BlobProperties"}},metadata:{xmlName:"Metadata",serializedName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},BlobPrefix:{serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{xmlName:"Name",required:!0,serializedName:"Name",type:{name:"String"}}}}},BlobProperties:{xmlName:"Properties",serializedName:"BlobProperties",type:{name:"Composite",className:"BlobProperties",modelProperties:{createdOn:{xmlName:"Creation-Time",serializedName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{xmlName:"Last-Modified",required:!0,serializedName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{xmlName:"Etag",required:!0,serializedName:"Etag",type:{name:"String"}},contentLength:{xmlName:"Content-Length",serializedName:"Content-Length",type:{name:"Number"}},contentType:{xmlName:"Content-Type",serializedName:"Content-Type",type:{name:"String"}},contentEncoding:{xmlName:"Content-Encoding",serializedName:"Content-Encoding",type:{name:"String"}},contentLanguage:{xmlName:"Content-Language",serializedName:"Content-Language",type:{name:"String"}},contentMD5:{xmlName:"Content-MD5",serializedName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{xmlName:"Content-Disposition",serializedName:"Content-Disposition",type:{name:"String"}},cacheControl:{xmlName:"Cache-Control",serializedName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{xmlName:"x-ms-blob-sequence-number",serializedName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{xmlName:"BlobType",serializedName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{xmlName:"LeaseStatus",serializedName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{xmlName:"LeaseState",serializedName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{xmlName:"LeaseDuration",serializedName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{xmlName:"CopyId",serializedName:"CopyId",type:{name:"String"}},copyStatus:{xmlName:"CopyStatus",serializedName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{xmlName:"CopySource",serializedName:"CopySource",type:{name:"String"}},copyProgress:{xmlName:"CopyProgress",serializedName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{xmlName:"CopyCompletionTime",serializedName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{xmlName:"CopyStatusDescription",serializedName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{xmlName:"ServerEncrypted",serializedName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{xmlName:"IncrementalCopy",serializedName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{xmlName:"DestinationSnapshot",serializedName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{xmlName:"DeletedTime",serializedName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{xmlName:"RemainingRetentionDays",serializedName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{xmlName:"AccessTier",serializedName:"AccessTier",type:{name:"String"}},accessTierInferred:{xmlName:"AccessTierInferred",serializedName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{xmlName:"ArchiveStatus",serializedName:"ArchiveStatus",type:{name:"String"}},customerProvidedKeySha256:{xmlName:"CustomerProvidedKeySha256",serializedName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{xmlName:"EncryptionScope",serializedName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{xmlName:"AccessTierChangeTime",serializedName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}}}}},ContainerAcquireLeaseHeaders:H,ContainerBreakLeaseHeaders:K,ContainerChangeLeaseHeaders:Y,ContainerCreateHeaders:I,ContainerDeleteHeaders:B,ContainerGetAccessPolicyHeaders:$,ContainerGetAccountInfoHeaders:J,ContainerGetPropertiesHeaders:F,ContainerListBlobFlatSegmentHeaders:Q,ContainerListBlobHierarchySegmentHeaders:X,ContainerReleaseLeaseHeaders:W,ContainerRenewLeaseHeaders:G,ContainerSetAccessPolicyHeaders:V,ContainerSetMetadataHeaders:U,ListBlobsFlatSegmentResponse:v,ListBlobsHierarchySegmentResponse:b,SignedIdentifier:{serializedName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{xmlName:"Id",required:!0,serializedName:"Id",type:{name:"String"}},accessPolicy:{xmlName:"AccessPolicy",required:!0,serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}},StorageError:g}),mn=function(){function e(e){this.client=e}return e.prototype.create=function(e,t){return this.client.sendOperationRequest({options:e},gn,t)},e.prototype.getProperties=function(e,t){return this.client.sendOperationRequest({options:e},yn,t)},e.prototype.deleteMethod=function(e,t){return this.client.sendOperationRequest({options:e},vn,t)},e.prototype.setMetadata=function(e,t){return this.client.sendOperationRequest({options:e},bn,t)},e.prototype.getAccessPolicy=function(e,t){return this.client.sendOperationRequest({options:e},wn,t)},e.prototype.setAccessPolicy=function(e,t){return this.client.sendOperationRequest({options:e},_n,t)},e.prototype.acquireLease=function(e,t){return this.client.sendOperationRequest({options:e},xn,t)},e.prototype.releaseLease=function(e,t,n){return this.client.sendOperationRequest({leaseId:e,options:t},kn,n)},e.prototype.renewLease=function(e,t,n){return this.client.sendOperationRequest({leaseId:e,options:t},Sn,n)},e.prototype.breakLease=function(e,t){return this.client.sendOperationRequest({options:e},En,t)},e.prototype.changeLease=function(e,t,n,r){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},Cn,r)},e.prototype.listBlobFlatSegment=function(e,t){return this.client.sendOperationRequest({options:e},Dn,t)},e.prototype.listBlobHierarchySegment=function(e,t,n){return this.client.sendOperationRequest({delimiter:e,options:t},On,n)},e.prototype.getAccountInfo=function(e,t){return this.client.sendOperationRequest({options:e},Nn,t)},e}(),hn=new t.Serializer(fn,!0),gn={httpMethod:"PUT",path:"{containerName}",urlParameters:[tn],queryParameters:[Jt,Ut],headerParameters:[jt,Le,nn,Ft,{parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",type:{name:"String"}}},{parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}}],responses:{201:{headersMapper:I},default:{bodyMapper:g,headersMapper:I}},isXML:!0,serializer:hn},yn={httpMethod:"GET",path:"{containerName}",urlParameters:[tn],queryParameters:[Jt,Ut],headerParameters:[nn,Ft,Et],responses:{200:{headersMapper:F},default:{bodyMapper:g,headersMapper:F}},isXML:!0,serializer:hn},vn={httpMethod:"DELETE",path:"{containerName}",urlParameters:[tn],queryParameters:[Jt,Ut],headerParameters:[nn,Ft,Et,vt,kt],responses:{202:{headersMapper:B},default:{bodyMapper:g,headersMapper:B}},isXML:!0,serializer:hn},bn={httpMethod:"PUT",path:"{containerName}",urlParameters:[tn],queryParameters:[Jt,Ut,st],headerParameters:[jt,nn,Ft,Et,vt],responses:{200:{headersMapper:U},default:{bodyMapper:g,headersMapper:U}},isXML:!0,serializer:hn},wn={httpMethod:"GET",path:"{containerName}",urlParameters:[tn],queryParameters:[Jt,Ut,ut],headerParameters:[nn,Ft,Et],responses:{200:{bodyMapper:{xmlElementName:"SignedIdentifier",serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}},headersMapper:$},default:{bodyMapper:g,headersMapper:$}},isXML:!0,serializer:hn},_n={httpMethod:"PUT",path:"{containerName}",urlParameters:[tn],queryParameters:[Jt,Ut,ut],headerParameters:[Le,nn,Ft,Et,vt,kt],requestBody:{parameterPath:["options","containerAcl"],mapper:{xmlName:"SignedIdentifiers",xmlElementName:"SignedIdentifier",serializedName:"containerAcl",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}},contentType:"application/xml; charset=utf-8",responses:{200:{headersMapper:V},default:{bodyMapper:g,headersMapper:V}},isXML:!0,serializer:hn},xn={httpMethod:"PUT",path:"{containerName}",urlParameters:[tn],queryParameters:[Jt,lt,Ut],headerParameters:[dt,Rt,nn,Ft,Fe,vt,kt],responses:{201:{headersMapper:H},default:{bodyMapper:g,headersMapper:H}},isXML:!0,serializer:hn},kn={httpMethod:"PUT",path:"{containerName}",urlParameters:[tn],queryParameters:[Jt,lt,Ut],headerParameters:[Ct,nn,Ft,ze,vt,kt],responses:{200:{headersMapper:W},default:{bodyMapper:g,headersMapper:W}},isXML:!0,serializer:hn},Sn={httpMethod:"PUT",path:"{containerName}",urlParameters:[tn],queryParameters:[Jt,lt,Ut],headerParameters:[Ct,nn,Ft,Be,vt,kt],responses:{200:{headersMapper:G},default:{bodyMapper:g,headersMapper:G}},isXML:!0,serializer:hn},En={httpMethod:"PUT",path:"{containerName}",urlParameters:[tn],queryParameters:[Jt,lt,Ut],headerParameters:[Ze,nn,Ft,Ue,vt,kt],responses:{202:{headersMapper:K},default:{bodyMapper:g,headersMapper:K}},isXML:!0,serializer:hn},Cn={httpMethod:"PUT",path:"{containerName}",urlParameters:[tn],queryParameters:[Jt,lt,Ut],headerParameters:[Ct,It,nn,Ft,qe,vt,kt],responses:{200:{headersMapper:Y},default:{bodyMapper:g,headersMapper:Y}},isXML:!0,serializer:hn},Dn={httpMethod:"GET",path:"{containerName}",urlParameters:[tn],queryParameters:[At,Dt,Ot,St,Jt,Ut,ot],headerParameters:[nn,Ft],responses:{200:{bodyMapper:v,headersMapper:Q},default:{bodyMapper:g,headersMapper:Q}},isXML:!0,serializer:hn},On={httpMethod:"GET",path:"{containerName}",urlParameters:[tn],queryParameters:[At,{parameterPath:"delimiter",mapper:{required:!0,serializedName:"delimiter",type:{name:"String"}}},Dt,Ot,St,Jt,Ut,ot],headerParameters:[nn,Ft],responses:{200:{bodyMapper:b,headersMapper:X},default:{bodyMapper:g,headersMapper:X}},isXML:!0,serializer:hn},Nn={httpMethod:"GET",path:"{containerName}",urlParameters:[tn],queryParameters:[Bt,et],headerParameters:[nn],responses:{200:{headersMapper:J},default:{bodyMapper:g,headersMapper:J}},isXML:!0,serializer:hn},jn=Object.freeze({__proto__:null,BlobAbortCopyFromURLHeaders:be,BlobAcquireLeaseHeaders:pe,BlobBreakLeaseHeaders:he,BlobChangeLeaseHeaders:me,BlobCopyFromURLHeaders:ve,BlobCreateSnapshotHeaders:ge,BlobDeleteHeaders:te,BlobDownloadHeaders:Z,BlobGetAccessControlHeaders:re,BlobGetAccountInfoHeaders:_e,BlobGetPropertiesHeaders:ee,BlobReleaseLeaseHeaders:de,BlobRenameHeaders:ae,BlobRenewLeaseHeaders:fe,BlobSetAccessControlHeaders:ne,BlobSetHTTPHeadersHeaders:le,BlobSetMetadataHeaders:ce,BlobSetTierHeaders:we,BlobStartCopyFromURLHeaders:ye,BlobUndeleteHeaders:ue,DataLakeStorageError:y,DataLakeStorageErrorError:{serializedName:"DataLakeStorageError_error",type:{name:"Composite",className:"DataLakeStorageErrorError",modelProperties:{code:{xmlName:"Code",serializedName:"Code",type:{name:"String"}},message:{xmlName:"Message",serializedName:"Message",type:{name:"String"}}}}},StorageError:g}),Pn=function(){function e(e){this.client=e}return e.prototype.download=function(e,t){return this.client.sendOperationRequest({options:e},An,t)},e.prototype.getProperties=function(e,t){return this.client.sendOperationRequest({options:e},Rn,t)},e.prototype.deleteMethod=function(e,t){return this.client.sendOperationRequest({options:e},In,t)},e.prototype.setAccessControl=function(e,t){return this.client.sendOperationRequest({options:e},Mn,t)},e.prototype.getAccessControl=function(e,t){return this.client.sendOperationRequest({options:e},Ln,t)},e.prototype.rename=function(e,t,n){return this.client.sendOperationRequest({renameSource:e,options:t},Fn,n)},e.prototype.undelete=function(e,t){return this.client.sendOperationRequest({options:e},zn,t)},e.prototype.setHTTPHeaders=function(e,t){return this.client.sendOperationRequest({options:e},Bn,t)},e.prototype.setMetadata=function(e,t){return this.client.sendOperationRequest({options:e},Un,t)},e.prototype.acquireLease=function(e,t){return this.client.sendOperationRequest({options:e},qn,t)},e.prototype.releaseLease=function(e,t,n){return this.client.sendOperationRequest({leaseId:e,options:t},$n,n)},e.prototype.renewLease=function(e,t,n){return this.client.sendOperationRequest({leaseId:e,options:t},Vn,n)},e.prototype.changeLease=function(e,t,n,r){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},Hn,r)},e.prototype.breakLease=function(e,t){return this.client.sendOperationRequest({options:e},Wn,t)},e.prototype.createSnapshot=function(e,t){return this.client.sendOperationRequest({options:e},Gn,t)},e.prototype.startCopyFromURL=function(e,t,n){return this.client.sendOperationRequest({copySource:e,options:t},Kn,n)},e.prototype.copyFromURL=function(e,t,n){return this.client.sendOperationRequest({copySource:e,options:t},Yn,n)},e.prototype.abortCopyFromURL=function(e,t,n){return this.client.sendOperationRequest({copyId:e,options:t},Qn,n)},e.prototype.setTier=function(e,t,n){return this.client.sendOperationRequest({tier:e,options:t},Xn,n)},e.prototype.getAccountInfo=function(e,t){return this.client.sendOperationRequest({options:e},Jn,t)},e}(),Tn=new t.Serializer(jn,!0),An={httpMethod:"GET",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[qt,Jt],headerParameters:[Mt,{parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}},{parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}},nn,Ft,Et,mt,ht,ft,vt,kt,yt,bt],responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Stream"}},headersMapper:Z},206:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Stream"}},headersMapper:Z},default:{bodyMapper:g,headersMapper:Z}},isXML:!0,serializer:Tn},Rn={httpMethod:"HEAD",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[qt,Jt],headerParameters:[nn,Ft,Et,mt,ht,ft,vt,kt,yt,bt],responses:{200:{headersMapper:ee},default:{bodyMapper:g,headersMapper:ee}},isXML:!0,serializer:Tn},In={httpMethod:"DELETE",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[qt,Jt],headerParameters:[{parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}},nn,Ft,Et,vt,kt,yt,bt],responses:{202:{headersMapper:te},default:{bodyMapper:g,headersMapper:te}},isXML:!0,serializer:Tn},Mn={httpMethod:"PATCH",path:"{filesystem}/{path}",urlParameters:[tn],queryParameters:[Jt,{parameterPath:"action",mapper:{required:!0,isConstant:!0,serializedName:"action",defaultValue:"setAccessControl",type:{name:"String"}}}],headerParameters:[{parameterPath:["options","owner"],mapper:{serializedName:"x-ms-owner",type:{name:"String"}}},{parameterPath:["options","group"],mapper:{serializedName:"x-ms-group",type:{name:"String"}}},Tt,{parameterPath:["options","posixAcl"],mapper:{serializedName:"x-ms-acl",type:{name:"String"}}},Ft,nn,Et,yt,bt,vt,kt],responses:{200:{headersMapper:ne},default:{bodyMapper:y,headersMapper:ne}},isXML:!0,serializer:Tn},Ln={httpMethod:"HEAD",path:"{filesystem}/{path}",urlParameters:[tn],queryParameters:[Jt,{parameterPath:["options","upn"],mapper:{serializedName:"upn",type:{name:"Boolean"}}},{parameterPath:"action",mapper:{required:!0,isConstant:!0,serializedName:"action",defaultValue:"getAccessControl",type:{name:"String"}}}],headerParameters:[Ft,nn,Et,yt,bt,vt,kt],responses:{200:{headersMapper:re},default:{bodyMapper:y,headersMapper:re}},isXML:!0,serializer:Tn},Fn={httpMethod:"PUT",path:"{filesystem}/{path}",urlParameters:[tn],queryParameters:[Jt,{parameterPath:["options","pathRenameMode"],mapper:{serializedName:"mode",type:{name:"Enum",allowedValues:["legacy","posix"]}}}],headerParameters:[{parameterPath:"renameSource",mapper:{required:!0,serializedName:"x-ms-rename-source",type:{name:"String"}}},{parameterPath:["options","directoryProperties"],mapper:{serializedName:"x-ms-properties",type:{name:"String"}}},Tt,{parameterPath:["options","posixUmask"],mapper:{serializedName:"x-ms-umask",type:{name:"String"}}},{parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",type:{name:"String"}}},nn,Ft,{parameterPath:["options","directoryHttpHeaders","cacheControl"],mapper:{serializedName:"x-ms-cache-control",type:{name:"String"}}},{parameterPath:["options","directoryHttpHeaders","contentType"],mapper:{serializedName:"x-ms-content-type",type:{name:"String"}}},{parameterPath:["options","directoryHttpHeaders","contentEncoding"],mapper:{serializedName:"x-ms-content-encoding",type:{name:"String"}}},{parameterPath:["options","directoryHttpHeaders","contentLanguage"],mapper:{serializedName:"x-ms-content-language",type:{name:"String"}}},{parameterPath:["options","directoryHttpHeaders","contentDisposition"],mapper:{serializedName:"x-ms-content-disposition",type:{name:"String"}}},Et,vt,kt,yt,bt,Wt,Kt,Ht,Gt],responses:{201:{headersMapper:ae},default:{bodyMapper:y,headersMapper:ae}},isXML:!0,serializer:Tn},zn={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,{parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"undelete",type:{name:"String"}}}],headerParameters:[nn,Ft],responses:{200:{headersMapper:ue},default:{bodyMapper:g,headersMapper:ue}},isXML:!0,serializer:Tn},Bn={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,et],headerParameters:[nn,Ft,Ve,Qe,Ye,We,Ge,He,Et,vt,kt,yt,bt],responses:{200:{headersMapper:le},default:{bodyMapper:g,headersMapper:le}},isXML:!0,serializer:Tn},Un={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,st],headerParameters:[jt,gt,nn,Ft,Et,mt,ht,ft,vt,kt,yt,bt],responses:{200:{headersMapper:ce},default:{bodyMapper:g,headersMapper:ce}},isXML:!0,serializer:Tn},qn={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,lt],headerParameters:[dt,Rt,nn,Ft,Fe,vt,kt,yt,bt],responses:{201:{headersMapper:pe},default:{bodyMapper:g,headersMapper:pe}},isXML:!0,serializer:Tn},$n={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,lt],headerParameters:[Ct,nn,Ft,ze,vt,kt,yt,bt],responses:{200:{headersMapper:de},default:{bodyMapper:g,headersMapper:de}},isXML:!0,serializer:Tn},Vn={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,lt],headerParameters:[Ct,nn,Ft,Be,vt,kt,yt,bt],responses:{200:{headersMapper:fe},default:{bodyMapper:g,headersMapper:fe}},isXML:!0,serializer:Tn},Hn={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,lt],headerParameters:[Ct,It,nn,Ft,qe,vt,kt,yt,bt],responses:{200:{headersMapper:me},default:{bodyMapper:g,headersMapper:me}},isXML:!0,serializer:Tn},Wn={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,lt],headerParameters:[Ze,nn,Ft,Ue,vt,kt,yt,bt],responses:{202:{headersMapper:he},default:{bodyMapper:g,headersMapper:he}},isXML:!0,serializer:Tn},Gn={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,{parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"snapshot",type:{name:"String"}}}],headerParameters:[jt,gt,nn,Ft,mt,ht,ft,vt,kt,yt,bt,Et],responses:{201:{headersMapper:ge},default:{bodyMapper:g,headersMapper:ge}},isXML:!0,serializer:Tn},Kn={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt],headerParameters:[jt,Xt,Lt,pt,nn,Ft,Wt,Kt,Ht,Gt,vt,kt,yt,bt,Et],responses:{202:{headersMapper:ye},default:{bodyMapper:g,headersMapper:ye}},isXML:!0,serializer:Tn},Yn={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt],headerParameters:[jt,Xt,pt,nn,Ft,Vt,{parameterPath:"xMsRequiresSync",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-requires-sync",defaultValue:"true",type:{name:"String"}}},Wt,Kt,Ht,Gt,vt,kt,yt,bt,Et],responses:{202:{headersMapper:ve},default:{bodyMapper:g,headersMapper:ve}},isXML:!0,serializer:Tn},Qn={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[{parameterPath:"copyId",mapper:{required:!0,serializedName:"copyid",type:{name:"String"}}},Jt,{parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"copy",type:{name:"String"}}}],headerParameters:[nn,Ft,{parameterPath:"copyActionAbortConstant",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-copy-action",defaultValue:"abort",type:{name:"String"}}},Et],responses:{204:{headersMapper:be},default:{bodyMapper:g,headersMapper:be}},isXML:!0,serializer:Tn},Xn={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,{parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"tier",type:{name:"String"}}}],headerParameters:[{parameterPath:"tier",mapper:{required:!0,serializedName:"x-ms-access-tier",type:{name:"String"}}},Lt,nn,Ft,Et],responses:{200:{headersMapper:we},202:{headersMapper:we},default:{bodyMapper:g,headersMapper:we}},isXML:!0,serializer:Tn},Jn={httpMethod:"GET",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Bt,et],headerParameters:[nn],responses:{200:{headersMapper:_e},default:{bodyMapper:g,headersMapper:_e}},isXML:!0,serializer:Tn},Zn=Object.freeze({__proto__:null,ClearRange:{serializedName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{xmlName:"Start",required:!0,serializedName:"Start",type:{name:"Number"}},end:{xmlName:"End",required:!0,serializedName:"End",type:{name:"Number"}}}}},PageBlobClearPagesHeaders:De,PageBlobCopyIncrementalHeaders:Ae,PageBlobCreateHeaders:ie,PageBlobGetPageRangesDiffHeaders:je,PageBlobGetPageRangesHeaders:Ne,PageBlobResizeHeaders:Pe,PageBlobUpdateSequenceNumberHeaders:Te,PageBlobUploadPagesFromURLHeaders:Oe,PageBlobUploadPagesHeaders:Ce,PageList:k,PageRange:{serializedName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{xmlName:"Start",required:!0,serializedName:"Start",type:{name:"Number"}},end:{xmlName:"End",required:!0,serializedName:"End",type:{name:"Number"}}}}},StorageError:g}),er=function(){function e(e){this.client=e}return e.prototype.create=function(e,t,n,r){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:n},nr,r)},e.prototype.uploadPages=function(e,t,n,r){return this.client.sendOperationRequest({body:e,contentLength:t,options:n},rr,r)},e.prototype.clearPages=function(e,t,n){return this.client.sendOperationRequest({contentLength:e,options:t},ar,n)},e.prototype.uploadPagesFromURL=function(e,t,n,r,a,i){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:n,range:r,options:a},ir,i)},e.prototype.getPageRanges=function(e,t){return this.client.sendOperationRequest({options:e},or,t)},e.prototype.getPageRangesDiff=function(e,t){return this.client.sendOperationRequest({options:e},sr,t)},e.prototype.resize=function(e,t,n){return this.client.sendOperationRequest({blobContentLength:e,options:t},ur,n)},e.prototype.updateSequenceNumber=function(e,t,n){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},lr,n)},e.prototype.copyIncremental=function(e,t,n){return this.client.sendOperationRequest({copySource:e,options:t},cr,n)},e}(),tr=new t.Serializer(Zn,!0),nr={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt],headerParameters:[ct,Xt,jt,gt,Ke,Xe,nn,Ft,{parameterPath:"blobType",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-blob-type",defaultValue:"PageBlob",type:{name:"String"}}},Qe,We,Ge,Ye,Ve,He,Et,mt,ht,ft,vt,kt,yt,bt],responses:{201:{headersMapper:ie},default:{bodyMapper:g,headersMapper:ie}},isXML:!0,serializer:tr},rr={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,tt],headerParameters:[ct,en,Zt,Mt,gt,nn,Ft,Pt,Et,mt,ht,ft,xt,_t,wt,vt,kt,yt,bt],requestBody:{parameterPath:"body",mapper:{required:!0,serializedName:"body",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{201:{headersMapper:Ce},default:{bodyMapper:g,headersMapper:Ce}},isXML:!0,serializer:tr},ar={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,tt],headerParameters:[ct,Mt,gt,nn,Ft,{parameterPath:"pageWrite",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-page-write",defaultValue:"clear",type:{name:"String"}}},Et,mt,ht,ft,xt,_t,wt,vt,kt,yt,bt],responses:{201:{headersMapper:De},default:{bodyMapper:g,headersMapper:De}},isXML:!0,serializer:tr},ir={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,tt],headerParameters:[Qt,{parameterPath:"sourceRange",mapper:{required:!0,serializedName:"x-ms-source-range",type:{name:"String"}}},Vt,$t,ct,{parameterPath:"range",mapper:{required:!0,serializedName:"x-ms-range",type:{name:"String"}}},gt,nn,Ft,Pt,mt,ht,ft,Et,xt,_t,wt,vt,kt,yt,bt,Wt,Kt,Ht,Gt],responses:{201:{headersMapper:Oe},default:{bodyMapper:g,headersMapper:Oe}},isXML:!0,serializer:tr},or={httpMethod:"GET",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[qt,Jt,nt],headerParameters:[Mt,nn,Ft,Et,vt,kt,yt,bt],responses:{200:{bodyMapper:k,headersMapper:Ne},default:{bodyMapper:g,headersMapper:Ne}},isXML:!0,serializer:tr},sr={httpMethod:"GET",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[qt,Jt,{parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",type:{name:"String"}}},nt],headerParameters:[{parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",type:{name:"String"}}},Mt,nn,Ft,Et,vt,kt,yt,bt],responses:{200:{bodyMapper:k,headersMapper:je},default:{bodyMapper:g,headersMapper:je}},isXML:!0,serializer:tr},ur={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,et],headerParameters:[gt,Ke,nn,Ft,Et,mt,ht,ft,vt,kt,yt,bt],responses:{200:{headersMapper:Pe},default:{bodyMapper:g,headersMapper:Pe}},isXML:!0,serializer:tr},lr={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,et],headerParameters:[{parameterPath:"sequenceNumberAction",mapper:{required:!0,serializedName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}},Xe,nn,Ft,Et,vt,kt,yt,bt],responses:{200:{headersMapper:Te},default:{bodyMapper:g,headersMapper:Te}},isXML:!0,serializer:tr},cr={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,{parameterPath:"comp",mapper:{required:!0,isConstant:!0,serializedName:"comp",defaultValue:"incrementalcopy",type:{name:"String"}}}],headerParameters:[pt,nn,Ft,vt,kt,yt,bt],responses:{202:{headersMapper:Ae},default:{bodyMapper:g,headersMapper:Ae}},isXML:!0,serializer:tr},pr=Object.freeze({__proto__:null,AppendBlobAppendBlockFromUrlHeaders:Ie,AppendBlobAppendBlockHeaders:Re,AppendBlobCreateHeaders:oe,StorageError:g}),dr=function(){function e(e){this.client=e}return e.prototype.create=function(e,t,n){return this.client.sendOperationRequest({contentLength:e,options:t},mr,n)},e.prototype.appendBlock=function(e,t,n,r){return this.client.sendOperationRequest({body:e,contentLength:t,options:n},hr,r)},e.prototype.appendBlockFromUrl=function(e,t,n,r){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:n},gr,r)},e}(),fr=new t.Serializer(pr,!0),mr={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt],headerParameters:[ct,jt,gt,nn,Ft,{parameterPath:"blobType",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-blob-type",defaultValue:"AppendBlob",type:{name:"String"}}},Qe,We,Ge,Ye,Ve,He,Et,mt,ht,ft,vt,kt,yt,bt],responses:{201:{headersMapper:oe},default:{bodyMapper:g,headersMapper:oe}},isXML:!0,serializer:fr},hr={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,rt],headerParameters:[ct,en,Zt,gt,nn,Ft,Et,Nt,$e,mt,ht,ft,vt,kt,yt,bt],requestBody:{parameterPath:"body",mapper:{required:!0,serializedName:"body",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{201:{headersMapper:Re},default:{bodyMapper:g,headersMapper:Re}},isXML:!0,serializer:fr},gr={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,rt],headerParameters:[Qt,Yt,Vt,$t,ct,en,gt,nn,Ft,mt,ht,ft,Et,Nt,$e,vt,kt,yt,bt,Wt,Kt,Ht,Gt],responses:{201:{headersMapper:Ie},default:{bodyMapper:g,headersMapper:Ie}},isXML:!0,serializer:fr},yr=Object.freeze({__proto__:null,Block:{serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{xmlName:"Name",required:!0,serializedName:"Name",type:{name:"String"}},size:{xmlName:"Size",required:!0,serializedName:"Size",type:{name:"Number"}}}}},BlockBlobCommitBlockListHeaders:Se,BlockBlobGetBlockListHeaders:Ee,BlockBlobStageBlockFromURLHeaders:ke,BlockBlobStageBlockHeaders:xe,BlockBlobUploadHeaders:se,BlockList:w,BlockLookupList:_,StorageError:g}),vr=function(){function e(e){this.client=e}return e.prototype.upload=function(e,t,n,r){return this.client.sendOperationRequest({body:e,contentLength:t,options:n},wr,r)},e.prototype.stageBlock=function(e,t,n,r,a){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:n,options:r},_r,a)},e.prototype.stageBlockFromURL=function(e,t,n,r,a){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:n,options:r},xr,a)},e.prototype.commitBlockList=function(e,t,n){return this.client.sendOperationRequest({blocks:e,options:t},kr,n)},e.prototype.getBlockList=function(e,t,n){return this.client.sendOperationRequest({listType:e,options:t},Sr,n)},e}(),br=new t.Serializer(yr,!0),wr={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt],headerParameters:[en,ct,jt,gt,Xt,nn,Ft,{parameterPath:"blobType",mapper:{required:!0,isConstant:!0,serializedName:"x-ms-blob-type",defaultValue:"BlockBlob",type:{name:"String"}}},Qe,We,Ge,Ye,Ve,He,Et,mt,ht,ft,vt,kt,yt,bt],requestBody:{parameterPath:"body",mapper:{required:!0,serializedName:"body",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{201:{headersMapper:se},default:{bodyMapper:g,headersMapper:se}},isXML:!0,serializer:br},_r={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Je,Jt,at],headerParameters:[ct,en,Zt,gt,nn,Ft,Et,mt,ht,ft],requestBody:{parameterPath:"body",mapper:{required:!0,serializedName:"body",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{201:{headersMapper:xe},default:{bodyMapper:g,headersMapper:xe}},isXML:!0,serializer:br},xr={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Je,Jt,at],headerParameters:[ct,Qt,Yt,Vt,$t,gt,nn,Ft,mt,ht,ft,Et,Wt,Kt,Ht,Gt],responses:{201:{headersMapper:ke},default:{bodyMapper:g,headersMapper:ke}},isXML:!0,serializer:br},kr={httpMethod:"PUT",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[Jt,it],headerParameters:[en,Zt,jt,gt,Xt,nn,Ft,Ve,Qe,We,Ge,Ye,He,Et,mt,ht,ft,vt,kt,yt,bt],requestBody:{parameterPath:"blocks",mapper:n.__assign(n.__assign({},_),{required:!0})},contentType:"application/xml; charset=utf-8",responses:{201:{headersMapper:Se},default:{bodyMapper:g,headersMapper:Se}},isXML:!0,serializer:br},Sr={httpMethod:"GET",path:"{containerName}/{blob}",urlParameters:[tn],queryParameters:[qt,{parameterPath:"listType",mapper:{required:!0,serializedName:"blocklisttype",defaultValue:"committed",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}},Jt,it],headerParameters:[nn,Ft,Et],responses:{200:{bodyMapper:w,headersMapper:Ee},default:{bodyMapper:g,headersMapper:Ee}},isXML:!0,serializer:br},Er=a.createClientLogger("storage-blob"),Cr="12.1.2",Dr="2019-07-07",Or=268435456,Nr=104857600,jr=5e4,Pr=4194304,Tr="https://storage.azure.com/.default",Ar={FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",TIMEOUT:"timeout"},Rr=202,Ir={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version"},Mr=4194304,Lr="\r\n",Fr="HTTP/1.1",zr="AES256",Br="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Ur=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256"],qr=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"];function $r(e){var n=t.URLBuilder.parse(e),r=n.getPath();return r=r||"/",r=encodeURIComponent(r).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%"),n.setPath(r),n.toString()}function Vr(e,t){for(var n=0,r=e.split(";");n<r.length;n++){var a=r[n];if(a.trim().startsWith(t))return a.trim().match(t+"=(.*)")[1]}return""}function Hr(e){var t="";e.startsWith("UseDevelopmentStorage=true")&&(t=function(e){var t="";if(-1!==e.search("DevelopmentStorageProxyUri="))for(var n=0,r=e.split(";");n<r.length;n++){var a=r[n];a.trim().startsWith("DevelopmentStorageProxyUri=")&&(t=a.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return t}(e),e=Br);var n=Vr(e,"BlobEndpoint");if(n=n.endsWith("/")?n.slice(0,-1):n,-1!==e.search("DefaultEndpointsProtocol=")&&-1!==e.search("AccountKey=")){var r="",a="",i=Buffer.from("accountKey","base64"),o="";if(a=Vr(e,"AccountName"),i=Buffer.from(Vr(e,"AccountKey"),"base64"),!n){var s=(r=Vr(e,"DefaultEndpointsProtocol")).toLowerCase();if("https"!==s&&"http"!==s)throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(!(o=Vr(e,"EndpointSuffix")))throw new Error("Invalid EndpointSuffix in the provided Connection String");n=r+"://"+a+".blob."+o}if(!a)throw new Error("Invalid AccountName in the provided Connection String");if(0===i.length)throw new Error("Invalid AccountKey in the provided Connection String");return{kind:"AccountConnString",url:n,accountName:a,accountKey:i,proxyUri:t}}var u=Vr(e,"SharedAccessSignature");a=ea(n);if(!n)throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");if(!u)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String");if(!a)throw new Error("Invalid AccountName in the provided SAS Connection String");return{kind:"SASConnString",url:n,accountName:a,accountSas:u}}function Wr(e,n){var r=t.URLBuilder.parse(e),a=r.getPath();return a=a?a.endsWith("/")?""+a+n:a+"/"+n:n,r.setPath(a),r.toString()}function Gr(e,n,r){var a=t.URLBuilder.parse(e);return a.setQueryParameter(n,r),a.toString()}function Kr(e){return t.URLBuilder.parse(e).getPath()}function Yr(e){var n=t.URLBuilder.parse(e),r=n.getPath();if(!r)throw new RangeError("Invalid url without valid path.");var a=n.getQuery()||"";return""!=(a=a.trim())&&(a=a.startsWith("?")?a:"?"+a),""+r+a}function Qr(e,t){void 0===t&&(t=!0);var n=e.toISOString();return t?n.substring(0,n.length-1)+"0000Z":n.substring(0,n.length-5)+"Z"}function Xr(e,n){e.length>42&&(e=e.slice(0,42));var r,a=e+function(e,t,n){void 0===n&&(n=" ");if(String.prototype.padStart)return e.padStart(t,n);return n=n||" ",e.length>t?e:((t-=e.length)>n.length&&(n+=n.repeat(t/n.length)),n.slice(0,t)+e)}(n.toString(),48-e.length,"0");return r=a,t.isNode?Buffer.from(r).toString("base64"):btoa(r)}function Jr(e,t,r){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(n){return[2,new Promise((function(n,a){var i,o=function(){void 0!==i&&clearTimeout(i),a(r)};i=setTimeout((function(){void 0!==t&&t.removeEventListener("abort",o),n()}),e),void 0!==t&&t.addEventListener("abort",o)}))]}))}))}function Zr(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function ea(e){var n,r=t.URLBuilder.parse(e);try{if(!(n="blob"===r.getHost().split(".")[1]?r.getHost().split(".")[0]:r.getPath().split("/")[1]))throw new Error("Provided accountName is invalid.");return n}catch(e){throw new Error("Unable to extract accountName with provided information.")}}var ta,na=function(e){function t(t,n){return e.call(this,t,n)||this}return n.__extends(t,e),t.prototype.sendRequest=function(e){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(t){return[2,this._nextPolicy.sendRequest(e)]}))}))},t}(t.BaseRequestPolicy),ra=function(){function e(){}return e.prototype.create=function(e,t){return new na(e,t)},e}();(ta=e.StorageRetryPolicyType||(e.StorageRetryPolicyType={}))[ta.EXPONENTIAL=0]="EXPONENTIAL",ta[ta.FIXED=1]="FIXED";var aa={maxRetryDelayInMs:12e4,maxTries:4,retryDelayInMs:4e3,retryPolicyType:e.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},ia=new i.AbortError("The operation was aborted."),oa=function(r){function a(e,t,n){void 0===n&&(n=aa);var a=r.call(this,e,t)||this;return a.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:aa.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):aa.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:aa.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:aa.maxRetryDelayInMs):aa.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:aa.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:aa.secondaryHost},a}return n.__extends(a,r),a.prototype.sendRequest=function(e){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(t){return[2,this.attemptSendRequest(e,!1,1)]}))}))},a.prototype.attemptSendRequest=function(e,r,a){return n.__awaiter(this,void 0,void 0,(function(){var i,o,s,u;return n.__generator(this,(function(n){switch(n.label){case 0:i=e.clone(),(o=r||!this.retryOptions.secondaryHost||!("GET"===e.method||"HEAD"===e.method||"OPTIONS"===e.method)||a%2==1)||(i.url=function(e,n){var r=t.URLBuilder.parse(e);return r.setHost(n),r.toString()}(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=Gr(i.url,Ar.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())),n.label=1;case 1:return n.trys.push([1,3,,4]),Er.info("RetryPolicy: =====> Try="+a+" "+(o?"Primary":"Secondary")),[4,this._nextPolicy.sendRequest(i)];case 2:return s=n.sent(),this.shouldRetry(o,a,s)?(r=r||!o&&404===s.status,[3,4]):[2,s];case 3:if(u=n.sent(),Er.error("RetryPolicy: Caught error, message: "+u.message+", code: "+u.code),!this.shouldRetry(o,a,s,u))throw u;return[3,4];case 4:return[4,this.delay(o,a,e.abortSignal)];case 5:return n.sent(),[4,this.attemptSendRequest(e,r,++a)];case 6:return[2,n.sent()]}}))}))},a.prototype.shouldRetry=function(e,t,n,r){if(t>=this.retryOptions.maxTries)return Er.info("RetryPolicy: Attempt(s) "+t+" >= maxTries "+this.retryOptions.maxTries+", no further try."),!1;if(r)for(var a=0,i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];a<i.length;a++){var o=i[a];if(r.name.toUpperCase().includes(o)||r.message.toUpperCase().includes(o)||r.code&&r.code.toString().toUpperCase().includes(o))return Er.info("RetryPolicy: Network error "+o+" found, will retry."),!0}if(n||r){var s=n?n.status:r?r.statusCode:0;if(!e&&404===s)return Er.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(503===s||500===s)return Er.info("RetryPolicy: Will retry for status code "+s+"."),!0}return!1},a.prototype.delay=function(t,r,a){return n.__awaiter(this,void 0,void 0,(function(){var i;return n.__generator(this,(function(n){if(i=0,t)switch(this.retryOptions.retryPolicyType){case e.StorageRetryPolicyType.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case e.StorageRetryPolicyType.FIXED:i=this.retryOptions.retryDelayInMs}else i=1e3*Math.random();return Er.info("RetryPolicy: Delay for "+i+"ms"),[2,Jr(i,a,ia)]}))}))},a}(t.BaseRequestPolicy),sa=function(){function e(e){this.retryOptions=e}return e.prototype.create=function(e,t){return new oa(e,t,this.retryOptions)},e}(),ua=function(e){function r(t,n,r){var a=e.call(this,t,n)||this;return a.telemetry=r,a}return n.__extends(r,e),r.prototype.sendRequest=function(e){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(n){return e.headers||(e.headers=new t.HttpHeaders),e.headers.get(Ir.USER_AGENT)||e.headers.set(Ir.USER_AGENT,this.telemetry),[2,this._nextPolicy.sendRequest(e)]}))}))},r}(t.BaseRequestPolicy),la=function(){function e(e){var t=[];if(e){var n=(e.userAgentPrefix||"").replace(" ","");n.length>0&&-1===t.indexOf(n)&&t.push(n)}var r="azsdk-js-storageblob/"+Cr;-1===t.indexOf(r)&&t.push(r);var a="(NODE-VERSION "+process.version+"; "+o.type()+" "+o.release()+")";-1===t.indexOf(a)&&t.push(a),this.telemetryString=t.join(" ")}return e.prototype.create=function(e,t){return new ua(e,t,this.telemetryString)},e}(),ca=new t.DefaultHttpClient;var pa=function(){function e(e,t){void 0===t&&(t={}),this.factories=e,this.options=n.__assign(n.__assign({},t),{httpClient:t.httpClient||ca})}return e.prototype.toServiceClientOptions=function(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}},e}();function da(e,n){void 0===n&&(n={});var r=new la(n.userAgentOptions),a=[t.tracingPolicy({userAgent:r.telemetryString}),t.keepAlivePolicy(n.keepAliveOptions),r,t.generateClientRequestIdPolicy(),new ra,t.deserializationPolicy(),new sa(n.retryOptions),t.logPolicy({logger:Er.info,allowedHeaderNames:Ur,allowedQueryParameters:qr})];return a.push(t.proxyPolicy(n.proxyOptions)),a.push(t.disableResponseDecompressionPolicy()),a.push(t.isTokenCredential(e)?t.bearerTokenAuthenticationPolicy(e,Tr):e),new pa(a,n)}var fa,ma,ha=new i.AbortError("The operation was aborted."),ga=function(e){function t(t,n,r,a,o){void 0===o&&(o={});var s=e.call(this)||this;return s.retries=0,s.abortHandler=function(){s.source.pause(),s.emit("error",ha)},s.aborter=o.abortSignal||i.AbortSignal.none,s.getter=n,s.source=t,s.start=r,s.offset=r,s.end=r+a-1,s.maxRetryRequests=o.maxRetryRequests&&o.maxRetryRequests>=0?o.maxRetryRequests:0,s.onProgress=o.onProgress,s.options=o,s.aborter.addEventListener("abort",s.abortHandler),s.setSourceDataHandler(),s.setSourceEndHandler(),s.setSourceErrorHandler(),s}return n.__extends(t,e),t.prototype._read=function(){this.aborter.aborted||this.source.resume()},t.prototype.setSourceDataHandler=function(){var e=this;this.source.on("data",(function(t){if(e.options.doInjectErrorOnce)return e.options.doInjectErrorOnce=void 0,e.source.pause(),e.source.removeAllListeners("data"),void e.source.emit("end");e.offset+=t.length,e.onProgress&&e.onProgress({loadedBytes:e.offset-e.start}),e.push(t)||e.source.pause()}))},t.prototype.setSourceEndHandler=function(){var e=this;this.source.on("end",(function(){e.offset-1===e.end?(e.aborter.removeEventListener("abort",e.abortHandler),e.push(null)):e.offset<=e.end?e.retries<e.maxRetryRequests?(e.retries+=1,e.getter(e.offset).then((function(t){e.source=t,e.setSourceDataHandler(),e.setSourceEndHandler(),e.setSourceErrorHandler()})).catch((function(t){e.emit("error",t)}))):e.emit("error",new Error("Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: "+(e.offset-1)+", data needed offset: "+e.end+", retries: "+e.retries+", max retries: "+e.maxRetryRequests)):e.emit("error",new Error("Data corruption failure: Received more data than original request, data needed offset is "+e.end+", received offset: "+(e.offset-1)))}))},t.prototype.setSourceErrorHandler=function(){var e=this;this.source.on("error",(function(t){e.emit("error",t)}))},t}(s.Readable),ya=function(){function e(e,t,n,r,a){void 0===a&&(a={}),this.originalResponse=e,this.blobDownloadStream=new ga(this.originalResponse.readableStreamBody,t,n,r,a)}return Object.defineProperty(e.prototype,"acceptRanges",{get:function(){return this.originalResponse.acceptRanges},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cacheControl",{get:function(){return this.originalResponse.cacheControl},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentDisposition",{get:function(){return this.originalResponse.contentDisposition},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentEncoding",{get:function(){return this.originalResponse.contentEncoding},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentLanguage",{get:function(){return this.originalResponse.contentLanguage},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"blobSequenceNumber",{get:function(){return this.originalResponse.blobSequenceNumber},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"blobType",{get:function(){return this.originalResponse.blobType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentLength",{get:function(){return this.originalResponse.contentLength},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentMD5",{get:function(){return this.originalResponse.contentMD5},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentRange",{get:function(){return this.originalResponse.contentRange},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentType",{get:function(){return this.originalResponse.contentType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copyCompletedOn",{get:function(){return this.originalResponse.copyCompletedOn},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copyId",{get:function(){return this.originalResponse.copyId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copyProgress",{get:function(){return this.originalResponse.copyProgress},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copySource",{get:function(){return this.originalResponse.copySource},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copyStatus",{get:function(){return this.originalResponse.copyStatus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copyStatusDescription",{get:function(){return this.originalResponse.copyStatusDescription},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leaseDuration",{get:function(){return this.originalResponse.leaseDuration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leaseState",{get:function(){return this.originalResponse.leaseState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leaseStatus",{get:function(){return this.originalResponse.leaseStatus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"date",{get:function(){return this.originalResponse.date},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"blobCommittedBlockCount",{get:function(){return this.originalResponse.blobCommittedBlockCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"etag",{get:function(){return this.originalResponse.etag},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errorCode",{get:function(){return this.originalResponse.errorCode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isServerEncrypted",{get:function(){return this.originalResponse.isServerEncrypted},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"blobContentMD5",{get:function(){return this.originalResponse.blobContentMD5},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastModified",{get:function(){return this.originalResponse.lastModified},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"metadata",{get:function(){return this.originalResponse.metadata},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"requestId",{get:function(){return this.originalResponse.requestId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clientRequestId",{get:function(){return this.originalResponse.clientRequestId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this.originalResponse.version},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"encryptionKeySha256",{get:function(){return this.originalResponse.encryptionKeySha256},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentCrc64",{get:function(){return this.originalResponse.contentCrc64},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentAsBlob",{get:function(){return this.originalResponse.blobBody},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readableStreamBody",{get:function(){return t.isNode?this.blobDownloadStream:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_response",{get:function(){return this.originalResponse._response},enumerable:!0,configurable:!0}),e}();function va(e){if(e.offset<0)throw new RangeError("Range.offset cannot be smaller than 0.");if(e.count&&e.count<=0)throw new RangeError("Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.");return e.count?"bytes="+e.offset+"-"+(e.offset+e.count-1):"bytes="+e.offset+"-"}function ba(e){if(null!=e)return e}function wa(e,t){if(e&&!t)throw new RangeError("Customer-provided encryption key must be used over HTTPS.");e&&!e.encryptionAlgorithm&&(e.encryptionAlgorithm=zr)}function _a(e,t,r,a,i){return n.__awaiter(this,void 0,void 0,(function(){var o,s;return n.__generator(this,(function(n){return o=0,s=a-r,[2,new Promise((function(n,a){e.on("readable",(function(){if(o>=s)n();else{var a=e.read();if(a){"string"==typeof a&&(a=Buffer.from(a,i));var u=o+a.length>s?s-o:a.length;t.fill(a.slice(0,u),r+o,r+o+u),o+=u}}})),e.on("end",(function(){o<s&&a(new Error("Stream drains before getting enough data needed. Data read: "+o+", data need: "+s)),n()})),e.on("error",a)}))]}))}))}function xa(e,t,r){return n.__awaiter(this,void 0,void 0,(function(){var a,i;return n.__generator(this,(function(n){return a=0,i=t.length,[2,new Promise((function(n,o){e.on("readable",(function(){var n=e.read();n&&("string"==typeof n&&(n=Buffer.from(n,r)),a+n.length>i?o(new Error("Stream exceeds buffer size. Buffer size: "+i)):(t.fill(n,a,a+n.length),a+=n.length))})),e.on("end",(function(){n(a)})),e.on("error",o)}))]}))}))}function ka(e,t){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(n){return[2,new Promise((function(n,r){var a=u.createWriteStream(t);e.on("error",(function(e){r(e)})),a.on("error",(function(e){r(e)})),a.on("close",n),e.pipe(a)}))]}))}))}(fa=e.BlockBlobTier||(e.BlockBlobTier={})).Hot="Hot",fa.Cool="Cool",fa.Archive="Archive",(ma=e.PremiumPageBlobTier||(e.PremiumPageBlobTier={})).P4="P4",ma.P6="P6",ma.P10="P10",ma.P15="P15",ma.P20="P20",ma.P30="P30",ma.P40="P40",ma.P50="P50",ma.P60="P60",ma.P70="P70",ma.P80="P80";var Sa,Ea=l.promisify(u.stat),Ca=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.sendRequest=function(e){return this._nextPolicy.sendRequest(this.signRequest(e))},t.prototype.signRequest=function(e){return e},t}(t.BaseRequestPolicy),Da=function(e){function r(t,n,r){var a=e.call(this,t,n)||this;return a.factory=r,a}return n.__extends(r,e),r.prototype.signRequest=function(e){e.headers.set(Ir.X_MS_DATE,(new Date).toUTCString()),e.body&&"string"==typeof e.body&&e.body.length>0&&e.headers.set(Ir.CONTENT_LENGTH,Buffer.byteLength(e.body));var t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,Ir.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,Ir.CONTENT_ENCODING),this.getHeaderValueToSign(e,Ir.CONTENT_LENGTH),this.getHeaderValueToSign(e,Ir.CONTENT_MD5),this.getHeaderValueToSign(e,Ir.CONTENT_TYPE),this.getHeaderValueToSign(e,Ir.DATE),this.getHeaderValueToSign(e,Ir.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,Ir.IF_MATCH),this.getHeaderValueToSign(e,Ir.IF_NONE_MATCH),this.getHeaderValueToSign(e,Ir.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,Ir.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(t);return e.headers.set(Ir.AUTHORIZATION,"SharedKey "+this.factory.accountName+":"+n),"function"==typeof e.body||e.body&&e.onUploadProgress||e.headers.remove(Ir.CONTENT_LENGTH),e},r.prototype.getHeaderValueToSign=function(e,t){var n=e.headers.get(t);return n?t===Ir.CONTENT_LENGTH&&"0"===n?"":n:""},r.prototype.getCanonicalizedHeadersString=function(e){var t=e.headers.headersArray().filter((function(e){return e.name.toLowerCase().startsWith(Ir.PREFIX_FOR_STORAGE)}));t.sort((function(e,t){return e.name.toLowerCase().localeCompare(t.name.toLowerCase())})),t=t.filter((function(e,t,n){return!(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase())}));var n="";return t.forEach((function(e){n+=e.name.toLowerCase().trimRight()+":"+e.value.trimLeft()+"\n"})),n},r.prototype.getCanonicalizedResourceString=function(e){var n=Kr(e.url)||"/",r="";r+="/"+this.factory.accountName+n;var a=function(e){var n=t.URLBuilder.parse(e).getQuery();if(!n)return{};var r=(n=(n=n.trim()).startsWith("?")?n.substr(1):n).split("&");r=r.filter((function(e){var t=e.indexOf("="),n=e.lastIndexOf("=");return t>0&&t===n&&n<e.length-1}));for(var a={},i=0,o=r;i<o.length;i++){var s=o[i].split("="),u=s[0],l=s[1];a[u]=l}return a}(e.url),i={};if(a){var o=[];for(var s in a)if(a.hasOwnProperty(s)){var u=s.toLowerCase();i[u]=a[s],o.push(u)}o.sort();for(var l=0,c=o;l<c.length;l++){r+="\n"+(s=c[l])+":"+decodeURIComponent(i[s])}}return r},r}(Ca),Oa=function(){function e(){}return e.prototype.create=function(e,t){throw new Error("Method should be implemented in children classes.")},e}(),Na=function(e){function t(t,n){var r=e.call(this)||this;return r.accountName=t,r.accountKey=Buffer.from(n,"base64"),r}return n.__extends(t,e),t.prototype.create=function(e,t){return new Da(e,t,this)},t.prototype.computeHMACSHA256=function(e){return c.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")},t}(Oa),ja=function(e){function t(t,n){return e.call(this,t,n)||this}return n.__extends(t,e),t}(Ca),Pa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.create=function(e,t){return new ja(e,t)},t}(Oa);!function(e){e[e.Good=0]="Good",e[e.Error=1]="Error"}(Sa||(Sa={}));var Ta=function(){function e(e){if(void 0===e&&(e=5),this.actives=0,this.completed=0,this.offset=0,this.operations=[],this.state=Sa.Good,e<1)throw new RangeError("concurrency must be larger than 0");this.concurrency=e,this.emitter=new p.EventEmitter}return e.prototype.addOperation=function(e){var t=this;this.operations.push((function(){return n.__awaiter(t,void 0,void 0,(function(){var t;return n.__generator(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),this.actives++,[4,e()];case 1:return n.sent(),this.actives--,this.completed++,this.parallelExecute(),[3,3];case 2:return t=n.sent(),this.emitter.emit("error",t),[3,3];case 3:return[2]}}))}))}))},e.prototype.do=function(){return n.__awaiter(this,void 0,void 0,(function(){var e=this;return n.__generator(this,(function(t){return 0===this.operations.length?[2,Promise.resolve()]:(this.parallelExecute(),[2,new Promise((function(t,n){e.emitter.on("finish",t),e.emitter.on("error",(function(t){e.state=Sa.Error,n(t)}))}))])}))}))},e.prototype.nextOperation=function(){return this.offset<this.operations.length?this.operations[this.offset++]:null},e.prototype.parallelExecute=function(){if(this.state!==Sa.Error)if(this.completed>=this.operations.length)this.emitter.emit("finish");else for(;this.actives<this.concurrency;){var e=this.nextOperation();if(!e)return;e()}},e}();function Aa(e,t){void 0===t&&(t={});var a=d.getTracer(),i=n.__assign(n.__assign({},t.spanOptions),{kind:r.SpanKind.INTERNAL}),o=a.startSpan("Azure.Storage.Blob."+e,i);o.setAttribute("az.namespace","Microsoft.Storage");var s=t.spanOptions||{};return o.isRecording()&&(s=n.__assign(n.__assign({},t.spanOptions),{parent:o.context(),attributes:n.__assign(n.__assign({},i.attributes),{"az.namespace":"Microsoft.Storage"})})),{span:o,spanOptions:s}}var Ra="azure-storage-blob",Ia="12.1.2",Ma=function(e){function r(n,r){var a=this;if(null==n)throw new Error("'url' cannot be null.");if(r||(r={}),!r.userAgent){var i=t.getDefaultUserAgentValue();r.userAgent=Ra+"/"+Ia+" "+i}return(a=e.call(this,void 0,r)||this).version="2019-07-07",a.baseUri="{url}",a.requestContentType="application/json; charset=utf-8",a.url=n,a}return n.__extends(r,e),r}(t.ServiceClient),La=function(e,n){this.url=$r(e),this.accountName=ea(e),this.pipeline=n,this.storageClientContext=new Ma(this.url,n.toServiceClientOptions()),this.isHttps=Zr(function(e){return t.URLBuilder.parse(e).getScheme()}(this.url)||"","https"),this.credential=new Pa;for(var r=0,a=this.pipeline.factories;r<a.length;r++){var i=a[r];(t.isNode&&i instanceof Na||i instanceof Pa||t.isTokenCredential(i))&&(this.credential=i)}this.storageClientContext.requestContentType=void 0},Fa=function(){function e(e,t,n,r,a,i){if(this.emitter=new p.EventEmitter,this.offset=0,this.isStreamEnd=!1,this.isError=!1,this.executingOutgoingHandlers=0,this.numBuffers=0,this.unresolvedDataArray=[],this.unresolvedLength=0,this.incoming=[],this.outgoing=[],t<=0)throw new RangeError("bufferSize must be larger than 0, current is "+t);if(n<=0)throw new RangeError("maxBuffers must be larger than 0, current is "+n);if(a<=0)throw new RangeError("concurrency must be larger than 0, current is "+a);this.bufferSize=t,this.maxBuffers=n,this.readable=e,this.outgoingHandler=r,this.concurrency=a,this.encoding=i}return e.prototype.do=function(){return n.__awaiter(this,void 0,void 0,(function(){var e=this;return n.__generator(this,(function(t){return[2,new Promise((function(t,n){e.readable.on("data",(function(t){t="string"==typeof t?Buffer.from(t,e.encoding):t,e.appendUnresolvedData(t),e.resolveData()||e.readable.pause()})),e.readable.on("error",(function(t){e.emitter.emit("error",t)})),e.readable.on("end",(function(){e.isStreamEnd=!0,e.emitter.emit("checkEnd")})),e.emitter.on("error",(function(t){e.isError=!0,e.readable.pause(),n(t)})),e.emitter.on("checkEnd",(function(){if(e.outgoing.length>0)e.triggerOutgoingHandlers();else if(e.isStreamEnd&&0===e.executingOutgoingHandlers)if(e.unresolvedLength>0&&e.unresolvedLength<e.bufferSize)e.outgoingHandler(e.shiftBufferFromUnresolvedDataArray(),e.offset).then(t).catch(n);else{if(e.unresolvedLength>=e.bufferSize)return;t()}}))}))]}))}))},e.prototype.appendUnresolvedData=function(e){this.unresolvedDataArray.push(e),this.unresolvedLength+=e.length},e.prototype.shiftBufferFromUnresolvedDataArray=function(){if(this.unresolvedLength>=this.bufferSize){if(this.bufferSize===this.unresolvedDataArray[0].length)return this.unresolvedLength-=this.bufferSize,this.unresolvedDataArray.shift();var e=(t=Buffer.concat(this.unresolvedDataArray,this.unresolvedLength)).slice(0,this.bufferSize);return t=t.slice(this.bufferSize),this.unresolvedDataArray=[t],this.unresolvedLength-=e.length,e}if(this.unresolvedLength>0){var t=Buffer.concat(this.unresolvedDataArray,this.unresolvedLength);return this.unresolvedDataArray=[],this.unresolvedLength=0,t}return Buffer.allocUnsafe(0)},e.prototype.resolveData=function(){for(;this.unresolvedLength>=this.bufferSize;){var e=void 0;if(this.incoming.length>0)e=this.incoming.shift();else{if(!(this.numBuffers<this.maxBuffers))return!1;e=Buffer.allocUnsafe(this.bufferSize),this.numBuffers++}e.fill(this.shiftBufferFromUnresolvedDataArray()),this.outgoing.push(e),this.triggerOutgoingHandlers()}return!0},e.prototype.triggerOutgoingHandlers=function(){return n.__awaiter(this,void 0,void 0,(function(){var e;return n.__generator(this,(function(t){do{if(this.executingOutgoingHandlers>=this.concurrency)return[2];(e=this.outgoing.shift())&&this.triggerOutgoingHandler(e)}while(e);return[2]}))}))},e.prototype.triggerOutgoingHandler=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t,r;return n.__generator(this,(function(n){switch(n.label){case 0:t=e.length,this.executingOutgoingHandlers++,this.offset+=t,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.outgoingHandler(e,this.offset-t)];case 2:return n.sent(),[3,4];case 3:return r=n.sent(),this.emitter.emit("error",r),[2];case 4:return this.executingOutgoingHandlers--,this.reuseBuffer(e),this.emitter.emit("checkEnd"),[2]}}))}))},e.prototype.reuseBuffer=function(e){this.incoming.push(e),this.isError||!this.resolveData()||this.isStreamEnd||this.readable.resume()},e}();function za(e){var t=(e._response.parsedBody.pageRange||[]).map((function(e){return{offset:e.start,count:e.end-e.start}})),r=(e._response.parsedBody.clearRange||[]).map((function(e){return{offset:e.start,count:e.end-e.start}}));return n.__assign(n.__assign({},e),{pageRange:t,clearRange:r,_response:n.__assign(n.__assign({},e._response),{parsedBody:{pageRange:t,clearRange:r}})})}var Ba=function(e){function r(t){var r,a=this,i=t.blobClient,o=t.copySource,s=t.intervalInMs,u=void 0===s?15e3:s,l=t.onProgress,c=t.resumeFrom,p=t.startCopyFromURLOptions;c&&(r=JSON.parse(c).state);var d=Va(n.__assign(n.__assign({},r),{blobClient:i,copySource:o,startCopyFromURLOptions:p}));return a=e.call(this,d)||this,"function"==typeof l&&a.onProgress(l),a.intervalInMs=u,a}return n.__extends(r,e),r.prototype.delay=function(){return t.delay(this.intervalInMs)},r}(f.Poller),Ua=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,r;return n.__generator(this,(function(n){switch(n.label){case 0:return t=this.state,r=t.copyId,t.isCompleted?[2,Va(t)]:r?[4,t.blobClient.abortCopyFromURL(r,{abortSignal:e.abortSignal})]:(t.isCancelled=!0,[2,Va(t)]);case 1:return n.sent(),t.isCancelled=!0,[2,Va(t)]}}))}))},qa=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,r,a,i,o,s,u,l,c;return n.__generator(this,(function(n){switch(n.label){case 0:return t=this.state,r=t.blobClient,a=t.copySource,i=t.startCopyFromURLOptions,t.isStarted?[3,2]:(t.isStarted=!0,[4,r.startCopyFromURL(a,i)]);case 1:return o=n.sent(),t.copyId=o.copyId,"success"===o.copyStatus&&(t.result=o,t.isCompleted=!0),[3,6];case 2:if(t.isCompleted)return[3,6];n.label=3;case 3:return n.trys.push([3,5,,6]),[4,t.blobClient.getProperties({abortSignal:e.abortSignal})];case 4:return o=n.sent(),s=o.copyStatus,u=o.copyProgress,l=t.copyProgress,u&&(t.copyProgress=u),"pending"===s&&u!==l&&"function"==typeof e.fireProgress?e.fireProgress(t):"success"===s?(t.result=o,t.isCompleted=!0):"failed"===s&&(t.error=new Error('Blob copy failed with reason: "'+(o.copyStatusDescription||"unknown")+'"'),t.isCompleted=!0),[3,6];case 5:return c=n.sent(),t.error=c,t.isCompleted=!0,[3,6];case 6:return[2,Va(t)]}}))}))},$a=function(){return JSON.stringify({state:this.state},(function(e,t){if("blobClient"!==e)return t}))};function Va(e){return{state:n.__assign({},e),cancel:Ua,toString:$a,update:qa}}var Ha=function(e){function a(n,r,a,i){var o,s,u,l=this;if(i=i||{},r instanceof pa)u=n,s=r;else if(t.isNode&&r instanceof Na||r instanceof Pa||t.isTokenCredential(r))u=n,s=da(r,i=a);else if(r||"string"==typeof r){if(!r||"string"!=typeof r||!a||"string"!=typeof a)throw new Error("Expecting non-empty strings for containerName and blobName parameters");var c=r,p=a,d=Hr(n);if("AccountConnString"===d.kind){var f=new Na(d.accountName,d.accountKey);u=Wr(Wr(d.url,encodeURIComponent(c)),encodeURIComponent(p)),i.proxyOptions=t.getDefaultProxySettings(d.proxyUri),s=da(f,i)}else{if("SASConnString"!==d.kind)throw new Error("Connection string must be either an Account connection string or a SAS connection string");u=Wr(Wr(d.url,encodeURIComponent(c)),encodeURIComponent(p))+"?"+d.accountSas,s=da(new Pa,i)}}else u=n,s=da(new Pa,i);return o=(l=e.call(this,u,s)||this).getBlobAndContainerNamesFromUrl(),l._name=o.blobName,l._containerName=o.containerName,l.blobContext=new Pn(l.storageClientContext),l}return n.__extends(a,e),Object.defineProperty(a.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"containerName",{get:function(){return this._containerName},enumerable:!0,configurable:!0}),a.prototype.withSnapshot=function(e){return new a(Gr(this.url,Ar.SNAPSHOT,0===e.length?void 0:e),this.pipeline)},a.prototype.getAppendBlobClient=function(){return new Wa(this.url,this.pipeline)},a.prototype.getBlockBlobClient=function(){return new Ga(this.url,this.pipeline)},a.prototype.getPageBlobClient=function(){return new Ka(this.url,this.pipeline)},a.prototype.download=function(e,a,i){return void 0===e&&(e=0),void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l,c,p=this;return n.__generator(this,(function(d){switch(d.label){case 0:i.conditions=i.conditions||{},i.conditions=i.conditions||{},wa(i.customerProvidedKey,this.isHttps),o=Aa("BlobClient-download",i.tracingOptions),s=o.span,u=o.spanOptions,d.label=1;case 1:return d.trys.push([1,3,4,5]),[4,this.blobContext.download({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:i.conditions,onDownloadProgress:t.isNode?void 0:i.onProgress,range:0!==e||a?va({offset:e,count:a}):void 0,rangeGetContentMD5:i.rangeGetContentMD5,rangeGetContentCRC64:i.rangeGetContentCrc64,snapshot:i.snapshot,cpkInfo:i.customerProvidedKey,spanOptions:u})];case 2:if(l=d.sent(),(void 0===i.maxRetryRequests||i.maxRetryRequests<0)&&(i.maxRetryRequests=5),void 0===l.contentLength)throw new RangeError("File download response doesn't contain valid content length header");if(!l.etag)throw new RangeError("File download response doesn't contain valid etag header");return[2,new ya(l,(function(t){return n.__awaiter(p,void 0,void 0,(function(){var r;return n.__generator(this,(function(a){switch(a.label){case 0:return r={leaseAccessConditions:i.conditions,modifiedAccessConditions:{ifMatch:i.conditions.ifMatch||l.etag,ifModifiedSince:i.conditions.ifModifiedSince,ifNoneMatch:i.conditions.ifNoneMatch,ifUnmodifiedSince:i.conditions.ifUnmodifiedSince},range:va({count:e+l.contentLength-t,offset:t}),rangeGetContentMD5:i.rangeGetContentMD5,rangeGetContentCRC64:i.rangeGetContentCrc64,snapshot:i.snapshot,cpkInfo:i.customerProvidedKey},[4,this.blobContext.download(n.__assign({abortSignal:i.abortSignal},r))];case 1:return[2,a.sent().readableStreamBody]}}))}))}),e,l.contentLength,{abortSignal:i.abortSignal,maxRetryRequests:i.maxRetryRequests,onProgress:i.onProgress})];case 3:throw c=d.sent(),s.setStatus({code:r.CanonicalCode.UNKNOWN,message:c.message}),c;case 4:return s.end(),[7];case 5:return[2]}}))}))},a.prototype.exists=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(s){switch(s.label){case 0:t=Aa("BlobClient-exists",e.tracingOptions),a=t.span,i=t.spanOptions,s.label=1;case 1:return s.trys.push([1,3,4,5]),wa(e.customerProvidedKey,this.isHttps),[4,this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,tracingOptions:n.__assign(n.__assign({},e.tracingOptions),{spanOptions:i})})];case 2:return s.sent(),[2,!0];case 3:if(404===(o=s.sent()).statusCode)return a.setStatus({code:r.CanonicalCode.NOT_FOUND,message:"Expected exception when checking blob existence"}),[2,!1];throw a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.getProperties=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:t=Aa("BlobClient-getProperties",e.tracingOptions),a=t.span,i=t.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),e.conditions=e.conditions||{},wa(e.customerProvidedKey,this.isHttps),[4,this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:e.conditions,cpkInfo:e.customerProvidedKey,spanOptions:i})];case 2:return[2,n.sent()];case 3:throw o=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.delete=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:t=Aa("BlobClient-delete",e.tracingOptions),a=t.span,i=t.spanOptions,e.conditions=e.conditions||{},n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.blobContext.deleteMethod({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:e.conditions,spanOptions:i})];case 2:return[2,n.sent()];case 3:throw o=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.undelete=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:t=Aa("BlobClient-undelete",e.tracingOptions),a=t.span,i=t.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.blobContext.undelete({abortSignal:e.abortSignal,spanOptions:i})];case 2:return[2,n.sent()];case 3:throw o=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.setHTTPHeaders=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("BlobClient-setHTTPHeaders",t.tracingOptions),i=a.span,o=a.spanOptions,t.conditions=t.conditions||{},n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(t.customerProvidedKey,this.isHttps),[4,this.blobContext.setHTTPHeaders({abortSignal:t.abortSignal,blobHTTPHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:t.conditions,cpkInfo:t.customerProvidedKey,spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.setMetadata=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("BlobClient-setMetadata",t.tracingOptions),i=a.span,o=a.spanOptions,t.conditions=t.conditions||{},n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(t.customerProvidedKey,this.isHttps),[4,this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:t.conditions,cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.getBlobLeaseClient=function(e){return new Ya(this,e)},a.prototype.createSnapshot=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:t=Aa("BlobClient-createSnapshot",e.tracingOptions),a=t.span,i=t.spanOptions,e.conditions=e.conditions||{},n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(e.customerProvidedKey,this.isHttps),[4,this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:e.conditions,cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,spanOptions:i})];case 2:return[2,n.sent()];case 3:throw o=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.beginCopyFromURL=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var r,a,i=this;return n.__generator(this,(function(n){switch(n.label){case 0:return r={abortCopyFromURL:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.abortCopyFromURL.apply(i,e)},getProperties:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.getProperties.apply(i,e)},startCopyFromURL:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.startCopyFromURL.apply(i,e)}},[4,(a=new Ba({blobClient:r,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t})).poll()];case 1:return n.sent(),[2,a]}}))}))},a.prototype.abortCopyFromURL=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("BlobClient-abortCopyFromURL",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.syncCopyFromURL=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("BlobClient-syncCopyFromURL",t.tracingOptions),i=a.span,o=a.spanOptions,t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:t.conditions,sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.setAccessTier=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("BlobClient-setAccessTier",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.blobContext.setTier(ba(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,rehydratePriority:t.rehydratePriority,spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.downloadToBuffer=function(e,t,a,i){return void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l,c,p,d,f,m,h,g,y,v,b=this;return n.__generator(this,(function(w){switch(w.label){case 0:s=0,u=0,l=i,e instanceof Buffer?(o=e,s=t||0,u="number"==typeof a?a:0):(s="number"==typeof e?e:0,u="number"==typeof t?t:0,l=a||{}),c=Aa("BlobClient-downloadToBuffer",l.tracingOptions),p=c.span,d=c.spanOptions,w.label=1;case 1:if(w.trys.push([1,5,6,7]),l.blockSize||(l.blockSize=0),l.blockSize<0)throw new RangeError("blockSize option must be >= 0");if(0===l.blockSize&&(l.blockSize=Pr),s<0)throw new RangeError("offset option must be >= 0");if(u&&u<=0)throw new RangeError("count option must be > 0");return l.conditions||(l.conditions={}),u?[3,3]:[4,this.getProperties(n.__assign(n.__assign({},l),{tracingOptions:n.__assign(n.__assign({},l.tracingOptions),{spanOptions:d})}))];case 2:if(f=w.sent(),(u=f.contentLength-s)<0)throw new RangeError("offset "+s+" shouldn't be larger than blob size "+f.contentLength);w.label=3;case 3:if(!o)try{o=Buffer.alloc(u)}catch(e){throw new Error("Unable to allocate the buffer of size: "+u+'(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t '+e.message)}if(o.length<u)throw new RangeError("The buffer's size should be equal to or larger than the request count of bytes: "+u);for(m=0,h=new Ta(l.concurrency),g=function(e){h.addOperation((function(){return n.__awaiter(b,void 0,void 0,(function(){var t,r;return n.__generator(this,(function(a){switch(a.label){case 0:return t=s+u,e+l.blockSize<t&&(t=e+l.blockSize),[4,this.download(e,t-e,{abortSignal:l.abortSignal,conditions:l.conditions,maxRetryRequests:l.maxRetryRequestsPerBlock,tracingOptions:n.__assign(n.__assign({},l.tracingOptions),{spanOptions:d})})];case 1:return r=a.sent(),[4,_a(r.readableStreamBody,o,e-s,t-s)];case 2:return a.sent(),m+=t-e,l.onProgress&&l.onProgress({loadedBytes:m}),[2]}}))}))}))},y=s;y<s+u;y+=l.blockSize)g(y);return[4,h.do()];case 4:return w.sent(),[2,o];case 5:throw v=w.sent(),p.setStatus({code:r.CanonicalCode.UNKNOWN,message:v.message}),v;case 6:return p.end(),[7];case 7:return[2]}}))}))},a.prototype.downloadToFile=function(e,t,a,i){return void 0===t&&(t=0),void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l,c;return n.__generator(this,(function(p){switch(p.label){case 0:o=Aa("BlobClient-downloadToFile",i.tracingOptions),s=o.span,u=o.spanOptions,p.label=1;case 1:return p.trys.push([1,5,6,7]),[4,this.download(t,a,n.__assign(n.__assign({},i),{tracingOptions:n.__assign(n.__assign({},i.tracingOptions),{spanOptions:u})}))];case 2:return(l=p.sent()).readableStreamBody?[4,ka(l.readableStreamBody,e)]:[3,4];case 3:p.sent(),p.label=4;case 4:return l.blobDownloadStream=void 0,[2,l];case 5:throw c=p.sent(),s.setStatus({code:r.CanonicalCode.UNKNOWN,message:c.message}),c;case 6:return s.end(),[7];case 7:return[2]}}))}))},a.prototype.getBlobAndContainerNamesFromUrl=function(){var e,n;try{var r,a=t.URLBuilder.parse(this.url);if("blob"===a.getHost().split(".")[1])e=(r=a.getPath().match("/([^/]*)(/(.*))?"))[1],n=r[3];else e=(r=a.getPath().match("/([^/]*)/([^/]*)(/(.*))?"))[2],n=r[4];if(e=decodeURIComponent(e),!(n=(n=decodeURIComponent(n)).replace(/\\/g,"/")))throw new Error("Provided blobName is invalid.");if(!e)throw new Error("Provided containerName is invalid.");return{blobName:n,containerName:e}}catch(e){throw new Error("Unable to extract blobName and containerName with provided information.")}},a.prototype.startCopyFromURL=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("BlobClient-startCopyFromURL",t.tracingOptions),i=a.span,o=a.spanOptions,t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:t.conditions,sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince},rehydratePriority:t.rehydratePriority,tier:ba(t.tier),spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a}(La),Wa=function(e){function a(n,r,a,i){var o,s,u=this;if(i=i||{},r instanceof pa)s=n,o=r;else if(t.isNode&&r instanceof Na||r instanceof Pa||t.isTokenCredential(r))s=n,o=da(r,i=a);else if(r||"string"==typeof r){if(!r||"string"!=typeof r||!a||"string"!=typeof a)throw new Error("Expecting non-empty strings for containerName and blobName parameters");var l=r,c=a,p=Hr(n);if("AccountConnString"===p.kind){var d=new Na(p.accountName,p.accountKey);s=Wr(Wr(p.url,encodeURIComponent(l)),encodeURIComponent(c)),i.proxyOptions=t.getDefaultProxySettings(p.proxyUri),o=da(d,i)}else{if("SASConnString"!==p.kind)throw new Error("Connection string must be either an Account connection string or a SAS connection string");s=Wr(Wr(p.url,encodeURIComponent(l)),encodeURIComponent(c))+"?"+p.accountSas,o=da(new Pa,i)}}else s=n,o=da(new Pa,i);return(u=e.call(this,s,o)||this).appendBlobContext=new dr(u.storageClientContext),u}return n.__extends(a,e),a.prototype.withSnapshot=function(e){return new a(Gr(this.url,Ar.SNAPSHOT,0===e.length?void 0:e),this.pipeline)},a.prototype.create=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:t=Aa("AppendBlobClient-create",e.tracingOptions),a=t.span,i=t.spanOptions,e.conditions=e.conditions||{},n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(e.customerProvidedKey,this.isHttps),[4,this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHTTPHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:e.conditions,cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,spanOptions:i})];case 2:return[2,n.sent()];case 3:throw o=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.appendBlock=function(e,t,a){return void 0===a&&(a={}),n.__awaiter(this,void 0,void 0,(function(){var i,o,s,u;return n.__generator(this,(function(n){switch(n.label){case 0:i=Aa("AppendBlobClient-appendBlock",a.tracingOptions),o=i.span,s=i.spanOptions,a.conditions=a.conditions||{},n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(a.customerProvidedKey,this.isHttps),[4,this.appendBlobContext.appendBlock(e,t,{abortSignal:a.abortSignal,appendPositionAccessConditions:a.conditions,leaseAccessConditions:a.conditions,modifiedAccessConditions:a.conditions,onUploadProgress:a.onProgress,transactionalContentMD5:a.transactionalContentMD5,transactionalContentCrc64:a.transactionalContentCrc64,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,spanOptions:s})];case 2:return[2,n.sent()];case 3:throw u=n.sent(),o.setStatus({code:r.CanonicalCode.UNKNOWN,message:u.message}),u;case 4:return o.end(),[7];case 5:return[2]}}))}))},a.prototype.appendBlockFromURL=function(e,t,a,i){return void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l;return n.__generator(this,(function(n){switch(n.label){case 0:o=Aa("AppendBlobClient-appendBlockFromURL",i.tracingOptions),s=o.span,u=o.spanOptions,i.conditions=i.conditions||{},i.sourceConditions=i.sourceConditions||{},n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(i.customerProvidedKey,this.isHttps),[4,this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:i.abortSignal,sourceRange:va({offset:t,count:a}),sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,appendPositionAccessConditions:i.conditions,modifiedAccessConditions:i.conditions,sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions.ifMatch,sourceIfModifiedSince:i.sourceConditions.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions.ifUnmodifiedSince},cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,spanOptions:u})];case 2:return[2,n.sent()];case 3:throw l=n.sent(),s.setStatus({code:r.CanonicalCode.UNKNOWN,message:l.message}),l;case 4:return s.end(),[7];case 5:return[2]}}))}))},a}(Ha),Ga=function(e){function a(n,r,a,i){var o,s,u=this;if(i=i||{},r instanceof pa)s=n,o=r;else if(t.isNode&&r instanceof Na||r instanceof Pa||t.isTokenCredential(r))s=n,o=da(r,i=a);else if(r||"string"==typeof r){if(!r||"string"!=typeof r||!a||"string"!=typeof a)throw new Error("Expecting non-empty strings for containerName and blobName parameters");var l=r,c=a,p=Hr(n);if("AccountConnString"===p.kind){var d=new Na(p.accountName,p.accountKey);s=Wr(Wr(p.url,encodeURIComponent(l)),encodeURIComponent(c)),i.proxyOptions=t.getDefaultProxySettings(p.proxyUri),o=da(d,i)}else{if("SASConnString"!==p.kind)throw new Error("Connection string must be either an Account connection string or a SAS connection string");s=Wr(Wr(p.url,encodeURIComponent(l)),encodeURIComponent(c))+"?"+p.accountSas,o=da(new Pa,i)}}else s=n,o=da(new Pa,i);return(u=e.call(this,s,o)||this).blockBlobContext=new vr(u.storageClientContext),u}return n.__extends(a,e),a.prototype.withSnapshot=function(e){return new a(Gr(this.url,Ar.SNAPSHOT,0===e.length?void 0:e),this.pipeline)},a.prototype.upload=function(e,t,a){return void 0===a&&(a={}),n.__awaiter(this,void 0,void 0,(function(){var i,o,s,u;return n.__generator(this,(function(n){switch(n.label){case 0:a.conditions=a.conditions||{},i=Aa("BlockBlobClient-upload",a.tracingOptions),o=i.span,s=i.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(a.customerProvidedKey,this.isHttps),[4,this.blockBlobContext.upload(e,t,{abortSignal:a.abortSignal,blobHTTPHeaders:a.blobHTTPHeaders,leaseAccessConditions:a.conditions,metadata:a.metadata,modifiedAccessConditions:a.conditions,onUploadProgress:a.onProgress,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,tier:ba(a.tier),spanOptions:s})];case 2:return[2,n.sent()];case 3:throw u=n.sent(),o.setStatus({code:r.CanonicalCode.UNKNOWN,message:u.message}),u;case 4:return o.end(),[7];case 5:return[2]}}))}))},a.prototype.stageBlock=function(e,t,a,i){return void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l;return n.__generator(this,(function(n){switch(n.label){case 0:o=Aa("BlockBlobClient-stageBlock",i.tracingOptions),s=o.span,u=o.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(i.customerProvidedKey,this.isHttps),[4,this.blockBlobContext.stageBlock(e,a,t,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,onUploadProgress:i.onProgress,transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,spanOptions:u})];case 2:return[2,n.sent()];case 3:throw l=n.sent(),s.setStatus({code:r.CanonicalCode.UNKNOWN,message:l.message}),l;case 4:return s.end(),[7];case 5:return[2]}}))}))},a.prototype.stageBlockFromURL=function(e,t,a,i,o){return void 0===a&&(a=0),void 0===o&&(o={}),n.__awaiter(this,void 0,void 0,(function(){var s,u,l,c;return n.__generator(this,(function(n){switch(n.label){case 0:s=Aa("BlockBlobClient-stageBlockFromURL",o.tracingOptions),u=s.span,l=s.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(o.customerProvidedKey,this.isHttps),[4,this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,sourceRange:0!==a||i?va({offset:a,count:i}):void 0,cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,spanOptions:l})];case 2:return[2,n.sent()];case 3:throw c=n.sent(),u.setStatus({code:r.CanonicalCode.UNKNOWN,message:c.message}),c;case 4:return u.end(),[7];case 5:return[2]}}))}))},a.prototype.commitBlockList=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:t.conditions=t.conditions||{},a=Aa("BlockBlobClient-commitBlockList",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(t.customerProvidedKey,this.isHttps),[4,this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHTTPHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:t.conditions,cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tier:ba(t.tier),spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.getBlockList=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s,u;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("BlockBlobClient-getBlockList",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,spanOptions:o})];case 2:return(s=n.sent()).committedBlocks||(s.committedBlocks=[]),s.uncommittedBlocks||(s.uncommittedBlocks=[]),[2,s];case 3:throw u=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:u.message}),u;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.uploadBrowserData=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s,u;return n.__generator(this,(function(l){switch(l.label){case 0:a=Aa("BlockBlobClient-uploadBrowserData",t.tracingOptions),i=a.span,o=a.spanOptions,l.label=1;case 1:return l.trys.push([1,3,4,5]),s=new Blob([e]),[4,this.uploadSeekableBlob((function(e,t){return s.slice(e,e+t)}),s.size,n.__assign(n.__assign({},t),{tracingOptions:n.__assign(n.__assign({},t.tracingOptions),{spanOptions:o})}))];case 2:return[2,l.sent()];case 3:throw u=l.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:u.message}),u;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.uploadSeekableBlob=function(e,a,i){return void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l,c,p,d,f,m,h,g,y=this;return n.__generator(this,(function(v){switch(v.label){case 0:if(i.blockSize||(i.blockSize=0),i.blockSize<0||i.blockSize>Nr)throw new RangeError("blockSize option must be >= 0 and <= "+Nr);if(0===i.maxSingleShotSize||i.maxSingleShotSize||(i.maxSingleShotSize=Or),i.maxSingleShotSize<0||i.maxSingleShotSize>Or)throw new RangeError("maxSingleShotSize option must be >= 0 and <= "+Or);if(0===i.blockSize){if(a>524288e7)throw new RangeError(a+" is too larger to upload to a block blob.");a>i.maxSingleShotSize&&(i.blockSize=Math.ceil(a/jr),i.blockSize<Pr&&(i.blockSize=Pr))}i.blobHTTPHeaders||(i.blobHTTPHeaders={}),i.conditions||(i.conditions={}),o=Aa("BlockBlobClient-UploadSeekableBlob",i.tracingOptions),s=o.span,u=o.spanOptions,v.label=1;case 1:return v.trys.push([1,5,6,7]),a<=i.maxSingleShotSize?[4,this.upload(e(0,a),a,n.__assign(n.__assign({},i),{tracingOptions:n.__assign(n.__assign({},i.tracingOptions),{spanOptions:u})}))]:[3,3];case 2:return[2,v.sent()];case 3:if((l=Math.floor((a-1)/i.blockSize)+1)>jr)throw new RangeError("The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= "+jr);for(c=[],p=t.generateUuid(),d=0,f=new Ta(i.concurrency),m=function(t){f.addOperation((function(){return n.__awaiter(y,void 0,void 0,(function(){var r,o,s,f;return n.__generator(this,(function(m){switch(m.label){case 0:return r=Xr(p,t),o=i.blockSize*t,s=t===l-1?a:o+i.blockSize,f=s-o,c.push(r),[4,this.stageBlock(r,e(o,f),f,{abortSignal:i.abortSignal,conditions:i.conditions,encryptionScope:i.encryptionScope,tracingOptions:n.__assign(n.__assign({},i.tracingOptions),{spanOptions:u})})];case 1:return m.sent(),d+=f,i.onProgress&&i.onProgress({loadedBytes:d}),[2]}}))}))}))},h=0;h<l;h++)m(h);return[4,f.do()];case 4:return v.sent(),[2,this.commitBlockList(c,n.__assign(n.__assign({},i),{tracingOptions:n.__assign(n.__assign({},i.tracingOptions),{spanOptions:u})}))];case 5:throw g=v.sent(),s.setStatus({code:r.CanonicalCode.UNKNOWN,message:g.message}),g;case 6:return s.end(),[7];case 7:return[2]}}))}))},a.prototype.uploadFile=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s,l;return n.__generator(this,(function(c){switch(c.label){case 0:a=Aa("BlockBlobClient-uploadFile",t.tracingOptions),i=a.span,o=a.spanOptions,c.label=1;case 1:return c.trys.push([1,4,5,6]),[4,Ea(e)];case 2:return s=c.sent().size,[4,this.uploadResetableStream((function(t,n){return u.createReadStream(e,{autoClose:!0,end:n?t+n-1:1/0,start:t})}),s,n.__assign(n.__assign({},t),{tracingOptions:n.__assign(n.__assign({},t.tracingOptions),{spanOptions:o})}))];case 3:return[2,c.sent()];case 4:throw l=c.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:l.message}),l;case 5:return i.end(),[7];case 6:return[2]}}))}))},a.prototype.uploadStream=function(e,a,i,o){return void 0===a&&(a=8388608),void 0===i&&(i=5),void 0===o&&(o={}),n.__awaiter(this,void 0,void 0,(function(){var s,u,l,c,p,d,f,m,h,g=this;return n.__generator(this,(function(y){switch(y.label){case 0:o.blobHTTPHeaders||(o.blobHTTPHeaders={}),o.conditions||(o.conditions={}),s=Aa("BlockBlobClient-uploadStream",o.tracingOptions),u=s.span,l=s.spanOptions,y.label=1;case 1:return y.trys.push([1,4,5,6]),c=0,p=t.generateUuid(),d=0,f=[],m=new Fa(e,a,i,(function(e){return n.__awaiter(g,void 0,void 0,(function(){var t;return n.__generator(this,(function(r){switch(r.label){case 0:return t=Xr(p,c),f.push(t),c++,[4,this.stageBlock(t,e,e.length,{conditions:o.conditions,encryptionScope:o.encryptionScope,tracingOptions:n.__assign(n.__assign({},o.tracingOptions),{spanOptions:l})})];case 1:return r.sent(),d+=e.length,o.onProgress&&o.onProgress({loadedBytes:d}),[2]}}))}))}),Math.ceil(i/4*3)),[4,m.do()];case 2:return y.sent(),[4,this.commitBlockList(f,n.__assign(n.__assign({},o),{tracingOptions:n.__assign(n.__assign({},o.tracingOptions),{spanOptions:l})}))];case 3:return[2,y.sent()];case 4:throw h=y.sent(),u.setStatus({code:r.CanonicalCode.UNKNOWN,message:h.message}),h;case 5:return u.end(),[7];case 6:return[2]}}))}))},a.prototype.uploadResetableStream=function(e,a,i){return void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l,c,p,d,f,m,h,g,y=this;return n.__generator(this,(function(v){switch(v.label){case 0:if(i.blockSize||(i.blockSize=0),i.blockSize<0||i.blockSize>Nr)throw new RangeError("blockSize option must be >= 0 and <= "+Nr);if(0===i.maxSingleShotSize||i.maxSingleShotSize||(i.maxSingleShotSize=Or),i.maxSingleShotSize<0||i.maxSingleShotSize>Or)throw new RangeError("maxSingleShotSize option must be >= 0 and <= "+Or);if(0===i.blockSize){if(a>524288e7)throw new RangeError(a+" is too larger to upload to a block blob.");a>i.maxSingleShotSize&&(i.blockSize=Math.ceil(a/jr),i.blockSize<Pr&&(i.blockSize=Pr))}i.blobHTTPHeaders||(i.blobHTTPHeaders={}),i.conditions||(i.conditions={}),o=Aa("BlockBlobClient-uploadResetableStream",i.tracingOptions),s=o.span,u=o.spanOptions,v.label=1;case 1:return v.trys.push([1,6,7,8]),a<=i.maxSingleShotSize?[4,this.upload((function(){return e(0)}),a,n.__assign(n.__assign({},i),{tracingOptions:n.__assign(n.__assign({},i.tracingOptions),{spanOptions:u})}))]:[3,3];case 2:return[2,v.sent()];case 3:if((l=Math.floor((a-1)/i.blockSize)+1)>jr)throw new RangeError("The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= "+jr);for(c=[],p=t.generateUuid(),d=0,f=new Ta(i.concurrency),m=function(t){f.addOperation((function(){return n.__awaiter(y,void 0,void 0,(function(){var r,o,s,f;return n.__generator(this,(function(m){switch(m.label){case 0:return r=Xr(p,t),o=i.blockSize*t,s=t===l-1?a:o+i.blockSize,f=s-o,c.push(r),[4,this.stageBlock(r,(function(){return e(o,f)}),f,{abortSignal:i.abortSignal,conditions:i.conditions,encryptionScope:i.encryptionScope,tracingOptions:n.__assign(n.__assign({},i.tracingOptions),{spanOptions:u})})];case 1:return m.sent(),d+=f,i.onProgress&&i.onProgress({loadedBytes:d}),[2]}}))}))}))},h=0;h<l;h++)m(h);return[4,f.do()];case 4:return v.sent(),[4,this.commitBlockList(c,n.__assign(n.__assign({},i),{tracingOptions:n.__assign(n.__assign({},i.tracingOptions),{spanOptions:u})}))];case 5:return[2,v.sent()];case 6:throw g=v.sent(),s.setStatus({code:r.CanonicalCode.UNKNOWN,message:g.message}),g;case 7:return s.end(),[7];case 8:return[2]}}))}))},a}(Ha),Ka=function(e){function a(n,r,a,i){var o,s,u=this;if(i=i||{},r instanceof pa)s=n,o=r;else if(t.isNode&&r instanceof Na||r instanceof Pa||t.isTokenCredential(r))s=n,o=da(r,i=a);else if(r||"string"==typeof r){if(!r||"string"!=typeof r||!a||"string"!=typeof a)throw new Error("Expecting non-empty strings for containerName and blobName parameters");var l=r,c=a,p=Hr(n);if("AccountConnString"===p.kind){var d=new Na(p.accountName,p.accountKey);s=Wr(Wr(p.url,encodeURIComponent(l)),encodeURIComponent(c)),i.proxyOptions=t.getDefaultProxySettings(p.proxyUri),o=da(d,i)}else{if("SASConnString"!==p.kind)throw new Error("Connection string must be either an Account connection string or a SAS connection string");s=Wr(Wr(p.url,encodeURIComponent(l)),encodeURIComponent(c))+"?"+p.accountSas,o=da(new Pa,i)}}else s=n,o=da(new Pa,i);return(u=e.call(this,s,o)||this).pageBlobContext=new er(u.storageClientContext),u}return n.__extends(a,e),a.prototype.withSnapshot=function(e){return new a(Gr(this.url,Ar.SNAPSHOT,0===e.length?void 0:e),this.pipeline)},a.prototype.create=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:t.conditions=t.conditions||{},a=Aa("PageBlobClient-create",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(t.customerProvidedKey,this.isHttps),[4,this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHTTPHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:t.conditions,cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tier:ba(t.tier),spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.uploadPages=function(e,t,a,i){return void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l;return n.__generator(this,(function(n){switch(n.label){case 0:i.conditions=i.conditions||{},o=Aa("PageBlobClient-uploadPages",i.tracingOptions),s=o.span,u=o.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(i.customerProvidedKey,this.isHttps),[4,this.pageBlobContext.uploadPages(e,a,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:i.conditions,onUploadProgress:i.onProgress,range:va({offset:t,count:a}),sequenceNumberAccessConditions:i.conditions,transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,spanOptions:u})];case 2:return[2,n.sent()];case 3:throw l=n.sent(),s.setStatus({code:r.CanonicalCode.UNKNOWN,message:l.message}),l;case 4:return s.end(),[7];case 5:return[2]}}))}))},a.prototype.uploadPagesFromURL=function(e,t,a,i,o){return void 0===o&&(o={}),n.__awaiter(this,void 0,void 0,(function(){var s,u,l,c;return n.__generator(this,(function(n){switch(n.label){case 0:o.conditions=o.conditions||{},o.sourceConditions=o.sourceConditions||{},s=Aa("PageBlobClient-uploadPagesFromURL",o.tracingOptions),u=s.span,l=s.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),wa(o.customerProvidedKey,this.isHttps),[4,this.pageBlobContext.uploadPagesFromURL(e,va({offset:t,count:i}),0,va({offset:a,count:i}),{abortSignal:o.abortSignal,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,leaseAccessConditions:o.conditions,sequenceNumberAccessConditions:o.conditions,modifiedAccessConditions:o.conditions,sourceModifiedAccessConditions:{sourceIfMatch:o.sourceConditions.ifMatch,sourceIfModifiedSince:o.sourceConditions.ifModifiedSince,sourceIfNoneMatch:o.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:o.sourceConditions.ifUnmodifiedSince},cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,spanOptions:l})];case 2:return[2,n.sent()];case 3:throw c=n.sent(),u.setStatus({code:r.CanonicalCode.UNKNOWN,message:c.message}),c;case 4:return u.end(),[7];case 5:return[2]}}))}))},a.prototype.clearPages=function(e,t,a){return void 0===e&&(e=0),void 0===a&&(a={}),n.__awaiter(this,void 0,void 0,(function(){var i,o,s,u;return n.__generator(this,(function(n){switch(n.label){case 0:a.conditions=a.conditions||{},i=Aa("PageBlobClient-clearPages",a.tracingOptions),o=i.span,s=i.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.pageBlobContext.clearPages(0,{abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:a.conditions,range:va({offset:e,count:t}),sequenceNumberAccessConditions:a.conditions,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,spanOptions:s})];case 2:return[2,n.sent()];case 3:throw u=n.sent(),o.setStatus({code:r.CanonicalCode.UNKNOWN,message:u.message}),u;case 4:return o.end(),[7];case 5:return[2]}}))}))},a.prototype.getPageRanges=function(e,t,a){return void 0===e&&(e=0),void 0===a&&(a={}),n.__awaiter(this,void 0,void 0,(function(){var i,o,s,u;return n.__generator(this,(function(n){switch(n.label){case 0:a.conditions=a.conditions||{},i=Aa("PageBlobClient-getPageRanges",a.tracingOptions),o=i.span,s=i.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.pageBlobContext.getPageRanges({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:a.conditions,range:va({offset:e,count:t}),spanOptions:s}).then(za)];case 2:return[2,n.sent()];case 3:throw u=n.sent(),o.setStatus({code:r.CanonicalCode.UNKNOWN,message:u.message}),u;case 4:return o.end(),[7];case 5:return[2]}}))}))},a.prototype.getPageRangesDiff=function(e,t,a,i){return void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l;return n.__generator(this,(function(n){switch(n.label){case 0:i.conditions=i.conditions||{},o=Aa("PageBlobClient-getPageRangesDiff",i.tracingOptions),s=o.span,u=o.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.pageBlobContext.getPageRangesDiff({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:i.conditions,prevsnapshot:a,range:va({offset:e,count:t}),spanOptions:u}).then(za)];case 2:return[2,n.sent()];case 3:throw l=n.sent(),s.setStatus({code:r.CanonicalCode.UNKNOWN,message:l.message}),l;case 4:return s.end(),[7];case 5:return[2]}}))}))},a.prototype.getPageRangesDiffForManagedDisks=function(e,t,a,i){return void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l;return n.__generator(this,(function(n){switch(n.label){case 0:i.conditions=i.conditions||{},o=Aa("PageBlobClient-GetPageRangesDiffForManagedDisks",i.tracingOptions),s=o.span,u=o.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.pageBlobContext.getPageRangesDiff({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:i.conditions,prevSnapshotUrl:a,range:va({offset:e,count:t}),spanOptions:u}).then(za)];case 2:return[2,n.sent()];case 3:throw l=n.sent(),s.setStatus({code:r.CanonicalCode.UNKNOWN,message:l.message}),l;case 4:return s.end(),[7];case 5:return[2]}}))}))},a.prototype.resize=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:t.conditions=t.conditions||{},a=Aa("PageBlobClient-resize",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:t.conditions,encryptionScope:t.encryptionScope,spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.updateSequenceNumber=function(e,t,a){return void 0===a&&(a={}),n.__awaiter(this,void 0,void 0,(function(){var i,o,s,u;return n.__generator(this,(function(n){switch(n.label){case 0:a.conditions=a.conditions||{},i=Aa("PageBlobClient-updateSequenceNumber",a.tracingOptions),o=i.span,s=i.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.pageBlobContext.updateSequenceNumber(e,{abortSignal:a.abortSignal,blobSequenceNumber:t,leaseAccessConditions:a.conditions,modifiedAccessConditions:a.conditions,spanOptions:s})];case 2:return[2,n.sent()];case 3:throw u=n.sent(),o.setStatus({code:r.CanonicalCode.UNKNOWN,message:u.message}),u;case 4:return o.end(),[7];case 5:return[2]}}))}))},a.prototype.startCopyIncremental=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("PageBlobClient-startCopyIncremental",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:t.conditions,spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a}(Ha),Ya=function(){function e(e,n){var r=new Ma(e.url,e.pipeline.toServiceClientOptions());this._url=e.url,this._containerOrBlobOperation=e instanceof Qa?new mn(r):new Pn(r),n||(n=t.generateUuid()),this._leaseId=n}return Object.defineProperty(e.prototype,"leaseId",{get:function(){return this._leaseId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._url},enumerable:!0,configurable:!0}),e.prototype.acquireLease=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("BlobLeaseClient-acquireLease",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:t.conditions,proposedLeaseId:this._leaseId,spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},e.prototype.changeLease=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s,u;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("BlobLeaseClient-changeLease",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:t.conditions,spanOptions:o})];case 2:return s=n.sent(),this._leaseId=e,[2,s];case 3:throw u=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:u.message}),u;case 4:return i.end(),[7];case 5:return[2]}}))}))},e.prototype.releaseLease=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:t=Aa("BlobLeaseClient-releaseLease",e.tracingOptions),a=t.span,i=t.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:e.conditions,spanOptions:i})];case 2:return[2,n.sent()];case 3:throw o=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},e.prototype.renewLease=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:t=Aa("BlobLeaseClient-renewLease",e.tracingOptions),a=t.span,i=t.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:e.conditions,spanOptions:i})];case 2:return[2,n.sent()];case 3:throw o=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},e.prototype.breakLease=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s,u;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("BlobLeaseClient-breakLease",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),s={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:t.conditions,spanOptions:o},[4,this._containerOrBlobOperation.breakLease(s)];case 2:return[2,n.sent()];case 3:throw u=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:u.message}),u;case 4:return i.end(),[7];case 5:return[2]}}))}))},e}(),Qa=function(e){function a(n,r,a){var i,o,s=this;if(a=a||{},r instanceof pa)o=n,i=r;else if(t.isNode&&r instanceof Na||r instanceof Pa||t.isTokenCredential(r))o=n,i=da(r,a);else if(r||"string"==typeof r){if(!r||"string"!=typeof r)throw new Error("Expecting non-empty strings for containerName parameter");var u=r,l=Hr(n);if("AccountConnString"===l.kind){var c=new Na(l.accountName,l.accountKey);o=Wr(l.url,encodeURIComponent(u)),a.proxyOptions=t.getDefaultProxySettings(l.proxyUri),i=da(c,a)}else{if("SASConnString"!==l.kind)throw new Error("Connection string must be either an Account connection string or a SAS connection string");o=Wr(l.url,encodeURIComponent(u))+"?"+l.accountSas,i=da(new Pa,a)}}else o=n,i=da(new Pa,a);return(s=e.call(this,o,i)||this)._containerName=s.getContainerNameFromUrl(),s.containerContext=new mn(s.storageClientContext),s}return n.__extends(a,e),Object.defineProperty(a.prototype,"containerName",{get:function(){return this._containerName},enumerable:!0,configurable:!0}),a.prototype.create=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(s){switch(s.label){case 0:t=Aa("ContainerClient-create",e.tracingOptions),a=t.span,i=t.spanOptions,s.label=1;case 1:return s.trys.push([1,3,4,5]),[4,this.containerContext.create(n.__assign(n.__assign({},e),{spanOptions:i}))];case 2:return[2,s.sent()];case 3:throw o=s.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.exists=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(s){switch(s.label){case 0:t=Aa("ContainerClient-exists",e.tracingOptions),a=t.span,i=t.spanOptions,s.label=1;case 1:return s.trys.push([1,3,4,5]),[4,this.getProperties({abortSignal:e.abortSignal,tracingOptions:n.__assign(n.__assign({},e.tracingOptions),{spanOptions:i})})];case 2:return s.sent(),[2,!0];case 3:if(404===(o=s.sent()).statusCode)return a.setStatus({code:r.CanonicalCode.NOT_FOUND,message:"Expected exception when checking container existence"}),[2,!1];throw a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.getBlobClient=function(e){return new Ha(Wr(this.url,encodeURIComponent(e)),this.pipeline)},a.prototype.getAppendBlobClient=function(e){return new Wa(Wr(this.url,encodeURIComponent(e)),this.pipeline)},a.prototype.getBlockBlobClient=function(e){return new Ga(Wr(this.url,encodeURIComponent(e)),this.pipeline)},a.prototype.getPageBlobClient=function(e){return new Ka(Wr(this.url,encodeURIComponent(e)),this.pipeline)},a.prototype.getProperties=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(s){switch(s.label){case 0:e.conditions||(e.conditions={}),t=Aa("ContainerClient-getProperties",e.tracingOptions),a=t.span,i=t.spanOptions,s.label=1;case 1:return s.trys.push([1,3,4,5]),[4,this.containerContext.getProperties(n.__assign(n.__assign({abortSignal:e.abortSignal},e.conditions),{spanOptions:i}))];case 2:return[2,s.sent()];case 3:throw o=s.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.delete=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:if(e.conditions||(e.conditions={}),e.conditions.ifMatch&&""!==e.conditions.ifMatch||e.conditions.ifNoneMatch&&""!==e.conditions.ifNoneMatch)throw new RangeError("the IfMatch and IfNoneMatch access conditions must have their default\t values because they are ignored by the service");t=Aa("ContainerClient-delete",e.tracingOptions),a=t.span,i=t.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.containerContext.deleteMethod({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:e.conditions,spanOptions:i})];case 2:return[2,n.sent()];case 3:throw o=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.setMetadata=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:if(t.conditions||(t.conditions={}),t.conditions.ifUnmodifiedSince||t.conditions.ifMatch&&""!==t.conditions.ifMatch||t.conditions.ifNoneMatch&&""!==t.conditions.ifNoneMatch)throw new RangeError("the IfUnmodifiedSince, IfMatch, and IfNoneMatch must have their default values\t because they are ignored by the blob service");a=Aa("ContainerClient-setMetadata",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.containerContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:t.conditions,spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.getAccessPolicy=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o,s,u,l,c,p,d;return n.__generator(this,(function(n){switch(n.label){case 0:e.conditions||(e.conditions={}),t=Aa("ContainerClient-getAccessPolicy",e.tracingOptions),a=t.span,i=t.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.containerContext.getAccessPolicy({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,spanOptions:i})];case 2:for(o=n.sent(),s={_response:o._response,blobPublicAccess:o.blobPublicAccess,date:o.date,etag:o.etag,errorCode:o.errorCode,lastModified:o.lastModified,requestId:o.requestId,clientRequestId:o.clientRequestId,signedIdentifiers:[],version:o.version},u=0,l=o;u<l.length;u++)c=l[u],p=void 0,c.accessPolicy&&(p={permissions:c.accessPolicy.permissions},c.accessPolicy.expiresOn&&(p.expiresOn=new Date(c.accessPolicy.expiresOn)),c.accessPolicy.startsOn&&(p.startsOn=new Date(c.accessPolicy.startsOn))),s.signedIdentifiers.push({accessPolicy:p,id:c.id});return[2,s];case 3:throw d=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:d.message}),d;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.setAccessPolicy=function(e,t,a){return void 0===a&&(a={}),n.__awaiter(this,void 0,void 0,(function(){var i,o,s,u,l,c,p,d;return n.__generator(this,(function(n){switch(n.label){case 0:a.conditions=a.conditions||{},i=Aa("ContainerClient-setAccessPolicy",a.tracingOptions),o=i.span,s=i.spanOptions,n.label=1;case 1:for(n.trys.push([1,3,4,5]),u=[],l=0,c=t||[];l<c.length;l++)p=c[l],u.push({accessPolicy:{expiresOn:p.accessPolicy.expiresOn?Qr(p.accessPolicy.expiresOn):"",permissions:p.accessPolicy.permissions,startsOn:p.accessPolicy.startsOn?Qr(p.accessPolicy.startsOn):""},id:p.id});return[4,this.containerContext.setAccessPolicy({abortSignal:a.abortSignal,access:e,containerAcl:u,leaseAccessConditions:a.conditions,modifiedAccessConditions:a.conditions,spanOptions:s})];case 2:return[2,n.sent()];case 3:throw d=n.sent(),o.setStatus({code:r.CanonicalCode.UNKNOWN,message:d.message}),d;case 4:return o.end(),[7];case 5:return[2]}}))}))},a.prototype.getBlobLeaseClient=function(e){return new Ya(this,e)},a.prototype.uploadBlockBlob=function(e,t,a,i){return void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l,c,p;return n.__generator(this,(function(d){switch(d.label){case 0:o=Aa("ContainerClient-uploadBlockBlob",i.tracingOptions),s=o.span,u=o.spanOptions,d.label=1;case 1:return d.trys.push([1,3,4,5]),[4,(l=this.getBlockBlobClient(e)).upload(t,a,n.__assign(n.__assign({},i),{tracingOptions:n.__assign(n.__assign({},i.tracingOptions),{spanOptions:u})}))];case 2:return c=d.sent(),[2,{blockBlobClient:l,response:c}];case 3:throw p=d.sent(),s.setStatus({code:r.CanonicalCode.UNKNOWN,message:p.message}),p;case 4:return s.end(),[7];case 5:return[2]}}))}))},a.prototype.deleteBlob=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(u){switch(u.label){case 0:a=Aa("ContainerClient-deleteBlob",t.tracingOptions),i=a.span,o=a.spanOptions,u.label=1;case 1:return u.trys.push([1,3,4,5]),[4,this.getBlobClient(e).delete(n.__assign(n.__assign({},t),{tracingOptions:n.__assign(n.__assign({},t.tracingOptions),{spanOptions:o})}))];case 2:return[2,u.sent()];case 3:throw s=u.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.listBlobFlatSegment=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(u){switch(u.label){case 0:a=Aa("ContainerClient-listBlobFlatSegment",t.tracingOptions),i=a.span,o=a.spanOptions,u.label=1;case 1:return u.trys.push([1,3,4,5]),[4,this.containerContext.listBlobFlatSegment(n.__assign(n.__assign({marker:e},t),{spanOptions:o}))];case 2:return[2,u.sent()];case 3:throw s=u.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.listBlobHierarchySegment=function(e,t,a){return void 0===a&&(a={}),n.__awaiter(this,void 0,void 0,(function(){var i,o,s,u;return n.__generator(this,(function(l){switch(l.label){case 0:i=Aa("ContainerClient-listBlobHierarchySegment",a.tracingOptions),o=i.span,s=i.spanOptions,l.label=1;case 1:return l.trys.push([1,3,4,5]),[4,this.containerContext.listBlobHierarchySegment(e,n.__assign(n.__assign({marker:t},a),{spanOptions:s}))];case 2:return[2,l.sent()];case 3:throw u=l.sent(),o.setStatus({code:r.CanonicalCode.UNKNOWN,message:u.message}),u;case 4:return o.end(),[7];case 5:return[2]}}))}))},a.prototype.listSegments=function(e,t){return void 0===t&&(t={}),n.__asyncGenerator(this,arguments,(function(){var r;return n.__generator(this,(function(a){switch(a.label){case 0:if(!e&&void 0!==e)return[3,7];a.label=1;case 1:return[4,n.__await(this.listBlobFlatSegment(e,t))];case 2:return r=a.sent(),e=r.continuationToken,[4,n.__await(r)];case 3:return[4,n.__await.apply(void 0,[a.sent()])];case 4:return[4,a.sent()];case 5:a.sent(),a.label=6;case 6:if(e)return[3,1];a.label=7;case 7:return[2]}}))}))},a.prototype.listItems=function(e){return void 0===e&&(e={}),n.__asyncGenerator(this,arguments,(function(){var t,r,a,i,o,s;return n.__generator(this,(function(u){switch(u.label){case 0:u.trys.push([0,7,8,13]),t=n.__asyncValues(this.listSegments(undefined,e)),u.label=1;case 1:return[4,n.__await(t.next())];case 2:return(r=u.sent()).done?[3,6]:(a=r.value,[5,n.__values(n.__asyncDelegator(n.__asyncValues(a.segment.blobItems)))]);case 3:return[4,n.__await.apply(void 0,[u.sent()])];case 4:u.sent(),u.label=5;case 5:return[3,1];case 6:return[3,13];case 7:return i=u.sent(),o={error:i},[3,13];case 8:return u.trys.push([8,,11,12]),r&&!r.done&&(s=t.return)?[4,n.__await(s.call(t))]:[3,10];case 9:u.sent(),u.label=10;case 10:return[3,12];case 11:if(o)throw o.error;return[7];case 12:return[7];case 13:return[2]}}))}))},a.prototype.listBlobsFlat=function(e){var t,r=this;void 0===e&&(e={});var a=[];e.includeCopy&&a.push("copy"),e.includeDeleted&&a.push("deleted"),e.includeMetadata&&a.push("metadata"),e.includeSnapshots&&a.push("snapshots"),e.includeUncommitedBlobs&&a.push("uncommittedblobs"),""===e.prefix&&(e.prefix=void 0);var i=n.__assign(n.__assign({},e),a.length>0?{include:a}:{}),o=this.listItems(i);return(t={next:function(){return o.next()}})[Symbol.asyncIterator]=function(){return this},t.byPage=function(e){return void 0===e&&(e={}),r.listSegments(e.continuationToken,n.__assign({maxPageSize:e.maxPageSize},i))},t},a.prototype.listHierarchySegments=function(e,t,r){return void 0===r&&(r={}),n.__asyncGenerator(this,arguments,(function(){var a;return n.__generator(this,(function(i){switch(i.label){case 0:if(!t&&void 0!==t)return[3,7];i.label=1;case 1:return[4,n.__await(this.listBlobHierarchySegment(e,t,r))];case 2:return a=i.sent(),t=a.continuationToken,[4,n.__await(a)];case 3:return[4,n.__await.apply(void 0,[i.sent()])];case 4:return[4,i.sent()];case 5:i.sent(),i.label=6;case 6:if(t)return[3,1];i.label=7;case 7:return[2]}}))}))},a.prototype.listItemsByHierarchy=function(e,t){return void 0===t&&(t={}),n.__asyncGenerator(this,arguments,(function(){var r,a,i,o,s,u,l,c,p,d,f,m,h;return n.__generator(this,(function(g){switch(g.label){case 0:g.trys.push([0,14,15,20]),r=n.__asyncValues(this.listHierarchySegments(e,undefined,t)),g.label=1;case 1:return[4,n.__await(r.next())];case 2:if((a=g.sent()).done)return[3,13];if(i=a.value,!(o=i.segment).blobPrefixes)return[3,7];s=0,u=o.blobPrefixes,g.label=3;case 3:return s<u.length?(l=u[s],[4,n.__await(n.__assign({kind:"prefix"},l))]):[3,7];case 4:return[4,g.sent()];case 5:g.sent(),g.label=6;case 6:return s++,[3,3];case 7:c=0,p=o.blobItems,g.label=8;case 8:return c<p.length?(d=p[c],[4,n.__await(n.__assign({kind:"blob"},d))]):[3,12];case 9:return[4,g.sent()];case 10:g.sent(),g.label=11;case 11:return c++,[3,8];case 12:return[3,1];case 13:return[3,20];case 14:return f=g.sent(),m={error:f},[3,20];case 15:return g.trys.push([15,,18,19]),a&&!a.done&&(h=r.return)?[4,n.__await(h.call(r))]:[3,17];case 16:g.sent(),g.label=17;case 17:return[3,19];case 18:if(m)throw m.error;return[7];case 19:return[7];case 20:return[2]}}))}))},a.prototype.listBlobsByHierarchy=function(e,t){var r,a=this;void 0===t&&(t={});var i=[];t.includeCopy&&i.push("copy"),t.includeDeleted&&i.push("deleted"),t.includeMetadata&&i.push("metadata"),t.includeSnapshots&&i.push("snapshots"),t.includeUncommitedBlobs&&i.push("uncommittedblobs"),""===t.prefix&&(t.prefix=void 0);var o=n.__assign(n.__assign({},t),i.length>0?{include:i}:{}),s=this.listItemsByHierarchy(e,o);return(r={next:function(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(e){return[2,s.next()]}))}))}})[Symbol.asyncIterator]=function(){return this},r.byPage=function(t){return void 0===t&&(t={}),a.listHierarchySegments(e,t.continuationToken,n.__assign({maxPageSize:t.maxPageSize},o))},r},a.prototype.getContainerNameFromUrl=function(){var e;try{var n=t.URLBuilder.parse(this.url);if(e="blob"===n.getHost().split(".")[1]?n.getPath().split("/")[1]:n.getPath().split("/")[2],!(e=decodeURIComponent(e)))throw new Error("Provided containerName is invalid.");return e}catch(e){throw new Error("Unable to extract containerName with provided information.")}},a}(La);function Xa(e){return n.__awaiter(this,void 0,void 0,(function(){var t,r;return n.__generator(this,(function(n){switch(n.label){case 0:return t=Buffer.alloc(Mr),[4,xa(e.readableStreamBody,t)];case 1:return r=n.sent(),[2,(t=t.slice(0,r)).toString()]}}))}))}function Ja(e){return Buffer.byteLength(e)}var Za,ei=": ",ti=function(){function e(e,t){if(!e||!e.contentType)throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.");if(!t||0===t.size)throw new RangeError("Invalid state: subRequests is not provided or size is 0.");this.batchResponse=e,this.subRequests=t,this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1],this.perResponsePrefix="--"+this.responseBatchBoundary+Lr,this.batchResponseEnding="--"+this.responseBatchBoundary+"--"}return e.prototype.parseBatchResponse=function(){return n.__awaiter(this,void 0,void 0,(function(){var e,r,a,i,o,s,u,l,c,p,d,f,m,h,g,y,v,b;return n.__generator(this,(function(n){switch(n.label){case 0:if(this.batchResponse._response.status!=Rr)throw new Error("Invalid state: batch request failed with status: '"+this.batchResponse._response.status+"'.");return[4,Xa(this.batchResponse)];case 1:if(e=n.sent(),r=e.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1),(a=r.length)!=this.subRequests.size&&1!=a)throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.");for(i=new Array(a),o=0,s=0,u=0;u<a;u++){for(l=r[u],i[u]={},(c=i[u]).headers=new t.HttpHeaders,p=l.split(""+Lr),d=!1,f=!1,m=!1,h=-1,g=0,y=p;g<y.length;g++)if(v=y[g],d)if(""!==v.trim())if(f)c.bodyAsText||(c.bodyAsText=""),c.bodyAsText+=v;else{if(-1===v.indexOf(ei))throw new Error("Invalid state: find non-empty line '"+v+"' without HTTP header delimiter '"+": '.");b=v.split(ei),c.headers.set(b[0],b[1]),b[0]===Ir.X_MS_ERROR_CODE&&(c.errorCode=b[1],m=!0)}else f||(f=!0);else v.startsWith(Ir.CONTENT_ID)&&(h=parseInt(v.split(ei)[1])),v.startsWith(Fr)&&(d=!0,b=v.split(" "),c.status=parseInt(b[1]),c.statusMessage=b.slice(2).join(" "));-1!=h&&(c._request=this.subRequests.get(h)),m?s++:o++}return[2,{subResponses:i,subResponsesSucceededCount:o,subResponsesFailedCount:s}]}}))}))},e}();!function(e){e[e.LOCKED=0]="LOCKED",e[e.UNLOCKED=1]="UNLOCKED"}(Za||(Za={}));var ni,ri=function(){function e(){}return e.lock=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t=this;return n.__generator(this,(function(n){return[2,new Promise((function(n){void 0===t.keys[e]||t.keys[e]===Za.UNLOCKED?(t.keys[e]=Za.LOCKED,n()):t.onUnlockEvent(e,(function(){t.keys[e]=Za.LOCKED,n()}))}))]}))}))},e.unlock=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t=this;return n.__generator(this,(function(n){return[2,new Promise((function(n){t.keys[e]===Za.LOCKED&&t.emitUnlockEvent(e),delete t.keys[e],n()}))]}))}))},e.onUnlockEvent=function(e,t){void 0===this.listeners[e]?this.listeners[e]=[t]:this.listeners[e].push(t)},e.emitUnlockEvent=function(e){var t=this;if(void 0!==this.listeners[e]&&this.listeners[e].length>0){var n=this.listeners[e].shift();setImmediate((function(){n.call(t)}))}},e.keys={},e.listeners={},e}(),ai=function(){function e(){this.batch="batch",this.batchRequest=new ii}return e.prototype.getMultiPartContentType=function(){return this.batchRequest.getMultipartContentType()},e.prototype.getHttpRequestBody=function(){return this.batchRequest.getHttpRequestBody()},e.prototype.getSubRequests=function(){return this.batchRequest.getSubRequests()},e.prototype.addSubRequestInternal=function(e,t){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(n){switch(n.label){case 0:return[4,ri.lock(this.batch)];case 1:n.sent(),n.label=2;case 2:return n.trys.push([2,,4,6]),this.batchRequest.preAddSubRequest(e),[4,t()];case 3:return n.sent(),this.batchRequest.postAddSubRequest(e),[3,6];case 4:return[4,ri.unlock(this.batch)];case 5:return n.sent(),[7];case 6:return[2]}}))}))},e.prototype.setBatchType=function(e){if(this.batchType||(this.batchType=e),this.batchType!==e)throw new RangeError("BlobBatch only supports one operation type per batch and it already is being used for "+this.batchType+" operations.")},e.prototype.deleteBlob=function(e,a,i){return n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l,c,p,d=this;return n.__generator(this,(function(f){switch(f.label){case 0:if("string"==typeof e&&(t.isNode&&a instanceof Na||a instanceof Pa||t.isTokenCredential(a)))o=e,s=a;else{if(!(e instanceof Ha))throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.");o=e.url,s=e.credential,i=a}i||(i={}),u=Aa("BatchDeleteRequest-addSubRequest",i.tracingOptions),l=u.span,c=u.spanOptions,f.label=1;case 1:return f.trys.push([1,3,4,5]),this.setBatchType("delete"),[4,this.addSubRequestInternal({url:o,credential:s},(function(){return n.__awaiter(d,void 0,void 0,(function(){return n.__generator(this,(function(e){switch(e.label){case 0:return[4,new Ha(o,this.batchRequest.createPipeline(s)).delete(n.__assign(n.__assign({},i),{tracingOptions:n.__assign(n.__assign({},i.tracingOptions),{spanOptions:c})}))];case 1:return e.sent(),[2]}}))}))}))];case 2:return f.sent(),[3,5];case 3:throw p=f.sent(),l.setStatus({code:r.CanonicalCode.UNKNOWN,message:p.message}),p;case 4:return l.end(),[7];case 5:return[2]}}))}))},e.prototype.setBlobAccessTier=function(e,a,i,o){return n.__awaiter(this,void 0,void 0,(function(){var s,u,l,c,p,d,f,m=this;return n.__generator(this,(function(h){switch(h.label){case 0:if("string"==typeof e&&(t.isNode&&a instanceof Na||a instanceof Pa||t.isTokenCredential(a)))s=e,u=a,l=i;else{if(!(e instanceof Ha))throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.");s=e.url,u=e.credential,l=a,o=i}o||(o={}),c=Aa("BatchSetTierRequest-addSubRequest",o.tracingOptions),p=c.span,d=c.spanOptions,h.label=1;case 1:return h.trys.push([1,3,4,5]),this.setBatchType("setAccessTier"),[4,this.addSubRequestInternal({url:s,credential:u},(function(){return n.__awaiter(m,void 0,void 0,(function(){return n.__generator(this,(function(e){switch(e.label){case 0:return[4,new Ha(s,this.batchRequest.createPipeline(u)).setAccessTier(l,n.__assign(n.__assign({},o),{tracingOptions:n.__assign(n.__assign({},o.tracingOptions),{spanOptions:d})}))];case 1:return e.sent(),[2]}}))}))}))];case 2:return h.sent(),[3,5];case 3:throw f=h.sent(),p.setStatus({code:r.CanonicalCode.UNKNOWN,message:f.message}),f;case 4:return p.end(),[7];case 5:return[2]}}))}))},e}(),ii=function(){function e(){this.operationCount=0,this.body="";var e=t.generateUuid();this.boundary="batch_"+e,this.subRequestPrefix="--"+this.boundary+Lr+Ir.CONTENT_TYPE+": application/http"+Lr+Ir.CONTENT_TRANSFER_ENCODING+": binary",this.multipartContentType="multipart/mixed; boundary="+this.boundary,this.batchRequestEnding="--"+this.boundary+"--",this.subRequests=new Map}return e.prototype.createPipeline=function(e){var n=e instanceof Pa,r=3+(n?0:1),a=new Array(r);return a[0]=t.deserializationPolicy(),a[1]=new li,n||(a[2]=t.isTokenCredential(e)?t.bearerTokenAuthenticationPolicy(e,Tr):e),a[r-1]=new si(this),new pa(a,{})},e.prototype.appendSubRequestToBody=function(e){this.body+=[this.subRequestPrefix,Ir.CONTENT_ID+": "+this.operationCount,"",e.method.toString()+" "+Yr(e.url)+" "+Fr+Lr].join(Lr);for(var t=0,n=e.headers.headersArray();t<n.length;t++){var r=n[t];this.body+=r.name+": "+r.value+Lr}this.body+=Lr},e.prototype.preAddSubRequest=function(e){if(this.operationCount>=256)throw new RangeError("Cannot exceed 256 sub requests in a single batch");var t=Kr(e.url);if(!t||""==t)throw new RangeError("Invalid url for sub request: '"+e.url+"'")},e.prototype.postAddSubRequest=function(e){this.subRequests.set(this.operationCount,e),this.operationCount++},e.prototype.getHttpRequestBody=function(){return""+this.body+this.batchRequestEnding+Lr},e.prototype.getMultipartContentType=function(){return this.multipartContentType},e.prototype.getSubRequests=function(){return this.subRequests},e}(),oi=function(e){function r(n,r,a){var i=e.call(this,r,a)||this;return i.dummyResponse={request:new t.WebResource,status:200,headers:new t.HttpHeaders},i.batchRequest=n,i}return n.__extends(r,e),r.prototype.sendRequest=function(e){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(t){switch(t.label){case 0:return[4,this.batchRequest.appendSubRequestToBody(e)];case 1:return t.sent(),[2,this.dummyResponse]}}))}))},r}(t.BaseRequestPolicy),si=function(){function e(e){this.batchRequest=e}return e.prototype.create=function(e,t){return new oi(this.batchRequest,e,t)},e}(),ui=function(e){function t(t,n){return e.call(this,t,n)||this}return n.__extends(t,e),t.prototype.sendRequest=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t,r,a,i;return n.__generator(this,(function(n){for(t="",r=0,a=e.headers.headersArray();r<a.length;r++)Zr((i=a[r]).name,Ir.X_MS_VERSION)&&(t=i.name);return""!==t&&e.headers.remove(t),[2,this._nextPolicy.sendRequest(e)]}))}))},t}(t.BaseRequestPolicy),li=function(){function e(){}return e.prototype.create=function(e,t){return new ui(e,t)},e}(),ci=function(){function e(e,t,n){var r;r=t instanceof pa?t:da(t||new Pa,n);var a=new Ma(e,r.toServiceClientOptions());this._serviceContext=new rn(a)}return e.prototype.createBatch=function(){return new ai},e.prototype.deleteBlobs=function(e,t,r){return n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:a=new ai,i=0,o=e,n.label=1;case 1:return i<o.length?"string"!=typeof(s=o[i])?[3,3]:[4,a.deleteBlob(s,t,r)]:[3,6];case 2:return n.sent(),[3,5];case 3:return[4,a.deleteBlob(s,t)];case 4:n.sent(),n.label=5;case 5:return i++,[3,1];case 6:return[2,this.submitBatch(a)]}}))}))},e.prototype.setBlobsAccessTier=function(e,t,r,a){return n.__awaiter(this,void 0,void 0,(function(){var i,o,s,u;return n.__generator(this,(function(n){switch(n.label){case 0:i=new ai,o=0,s=e,n.label=1;case 1:return o<s.length?"string"!=typeof(u=s[o])?[3,3]:[4,i.setBlobAccessTier(u,t,r,a)]:[3,6];case 2:return n.sent(),[3,5];case 3:return[4,i.setBlobAccessTier(u,t,r)];case 4:n.sent(),n.label=5;case 5:return o++,[3,1];case 6:return[2,this.submitBatch(i)]}}))}))},e.prototype.submitBatch=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s,u,l,c;return n.__generator(this,(function(p){switch(p.label){case 0:if(!e||0==e.getSubRequests().size)throw new RangeError("Batch request should contain one or more sub requests.");a=Aa("BlobBatchClient-submitBatch",t.tracingOptions),i=a.span,o=a.spanOptions,p.label=1;case 1:return p.trys.push([1,4,5,6]),s=e.getHttpRequestBody(),[4,this._serviceContext.submitBatch(s,Ja(s),e.getMultiPartContentType(),n.__assign(n.__assign({},t),{spanOptions:o}))];case 2:return u=p.sent(),[4,new ti(u,e.getSubRequests()).parseBatchResponse()];case 3:return l=p.sent(),[2,{_response:u._response,contentType:u.contentType,errorCode:u.errorCode,requestId:u.requestId,clientRequestId:u.clientRequestId,version:u.version,subResponses:l.subResponses,subResponsesSucceededCount:l.subResponsesSucceededCount,subResponsesFailedCount:l.subResponsesFailedCount}];case 4:throw c=p.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:c.message}),c;case 5:return i.end(),[7];case 6:return[2]}}))}))},e}(),pi=function(e){function a(n,r,a){var i,o=this;return i=r instanceof pa?r:t.isNode&&r instanceof Na||r instanceof Pa||t.isTokenCredential(r)?da(r,a):da(new Pa,a),(o=e.call(this,n,i)||this).serviceContext=new rn(o.storageClientContext),o}return n.__extends(a,e),a.fromConnectionString=function(e,n){n=n||{};var r=Hr(e);if("AccountConnString"===r.kind){var i=new Na(r.accountName,r.accountKey);n.proxyOptions=t.getDefaultProxySettings(r.proxyUri);var o=da(i,n);return new a(r.url,o)}if("SASConnString"===r.kind){o=da(new Pa,n);return new a(r.url+"?"+r.accountSas,o)}throw new Error("Connection string must be either an Account connection string or a SAS connection string")},a.prototype.getContainerClient=function(e){return new Qa(Wr(this.url,encodeURIComponent(e)),this.pipeline)},a.prototype.createContainer=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s,u,l;return n.__generator(this,(function(c){switch(c.label){case 0:a=Aa("BlobServiceClient-createContainer",t.tracingOptions),i=a.span,o=a.spanOptions,c.label=1;case 1:return c.trys.push([1,3,4,5]),[4,(s=this.getContainerClient(e)).create(n.__assign(n.__assign({},t),{tracingOptions:n.__assign(n.__assign({},t.tracingOptions),{spanOptions:o})}))];case 2:return u=c.sent(),[2,{containerClient:s,containerCreateResponse:u}];case 3:throw l=c.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:l.message}),l;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.deleteContainer=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(u){switch(u.label){case 0:a=Aa("BlobServiceClient-deleteContainer",t.tracingOptions),i=a.span,o=a.spanOptions,u.label=1;case 1:return u.trys.push([1,3,4,5]),[4,this.getContainerClient(e).delete(n.__assign(n.__assign({},t),{tracingOptions:n.__assign(n.__assign({},t.tracingOptions),{spanOptions:o})}))];case 2:return[2,u.sent()];case 3:throw s=u.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.getProperties=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:t=Aa("BlobServiceClient-getProperties",e.tracingOptions),a=t.span,i=t.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.serviceContext.getProperties({abortSignal:e.abortSignal,spanOptions:i})];case 2:return[2,n.sent()];case 3:throw o=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.setProperties=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(n){switch(n.label){case 0:a=Aa("BlobServiceClient-setProperties",t.tracingOptions),i=a.span,o=a.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.serviceContext.setProperties(e,{abortSignal:t.abortSignal,spanOptions:o})];case 2:return[2,n.sent()];case 3:throw s=n.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.getStatistics=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:t=Aa("BlobServiceClient-getStatistics",e.tracingOptions),a=t.span,i=t.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.serviceContext.getStatistics({abortSignal:e.abortSignal,spanOptions:i})];case 2:return[2,n.sent()];case 3:throw o=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.getAccountInfo=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,(function(){var t,a,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:t=Aa("BlobServiceClient-getAccountInfo",e.tracingOptions),a=t.span,i=t.spanOptions,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,spanOptions:i})];case 2:return[2,n.sent()];case 3:throw o=n.sent(),a.setStatus({code:r.CanonicalCode.UNKNOWN,message:o.message}),o;case 4:return a.end(),[7];case 5:return[2]}}))}))},a.prototype.listContainersSegment=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,(function(){var a,i,o,s;return n.__generator(this,(function(u){switch(u.label){case 0:a=Aa("BlobServiceClient-listContainersSegment",t.tracingOptions),i=a.span,o=a.spanOptions,u.label=1;case 1:return u.trys.push([1,3,4,5]),[4,this.serviceContext.listContainersSegment(n.__assign(n.__assign({abortSignal:t.abortSignal,marker:e},t),{spanOptions:o}))];case 2:return[2,u.sent()];case 3:throw s=u.sent(),i.setStatus({code:r.CanonicalCode.UNKNOWN,message:s.message}),s;case 4:return i.end(),[7];case 5:return[2]}}))}))},a.prototype.listSegments=function(e,t){return void 0===t&&(t={}),n.__asyncGenerator(this,arguments,(function(){var r;return n.__generator(this,(function(a){switch(a.label){case 0:if(!e&&void 0!==e)return[3,7];a.label=1;case 1:return[4,n.__await(this.listContainersSegment(e,t))];case 2:return(r=a.sent()).containerItems=r.containerItems||[],e=r.continuationToken,[4,n.__await(r)];case 3:return[4,n.__await.apply(void 0,[a.sent()])];case 4:return[4,a.sent()];case 5:a.sent(),a.label=6;case 6:if(e)return[3,1];a.label=7;case 7:return[2]}}))}))},a.prototype.listItems=function(e){return void 0===e&&(e={}),n.__asyncGenerator(this,arguments,(function(){var t,r,a,i,o,s;return n.__generator(this,(function(u){switch(u.label){case 0:u.trys.push([0,7,8,13]),t=n.__asyncValues(this.listSegments(undefined,e)),u.label=1;case 1:return[4,n.__await(t.next())];case 2:return(r=u.sent()).done?[3,6]:(a=r.value,[5,n.__values(n.__asyncDelegator(n.__asyncValues(a.containerItems)))]);case 3:return[4,n.__await.apply(void 0,[u.sent()])];case 4:u.sent(),u.label=5;case 5:return[3,1];case 6:return[3,13];case 7:return i=u.sent(),o={error:i},[3,13];case 8:return u.trys.push([8,,11,12]),r&&!r.done&&(s=t.return)?[4,n.__await(s.call(t))]:[3,10];case 9:u.sent(),u.label=10;case 10:return[3,12];case 11:if(o)throw o.error;return[7];case 12:return[7];case 13:return[2]}}))}))},a.prototype.listContainers=function(e){var t,r=this;void 0===e&&(e={}),""===e.prefix&&(e.prefix=void 0);var a=n.__assign(n.__assign({},e),e.includeMetadata?{include:"metadata"}:{}),i=this.listItems(a);return(t={next:function(){return i.next()}})[Symbol.asyncIterator]=function(){return this},t.byPage=function(e){return void 0===e&&(e={}),r.listSegments(e.continuationToken,n.__assign({maxPageSize:e.maxPageSize},a))},t},a.prototype.getUserDelegationKey=function(e,t,a){return void 0===a&&(a={}),n.__awaiter(this,void 0,void 0,(function(){var i,o,s,u,l,c;return n.__generator(this,(function(p){switch(p.label){case 0:i=Aa("BlobServiceClient-getUserDelegationKey",a.tracingOptions),o=i.span,s=i.spanOptions,p.label=1;case 1:return p.trys.push([1,3,4,5]),[4,this.serviceContext.getUserDelegationKey({startsOn:Qr(e,!1),expiresOn:Qr(t,!1)},{abortSignal:a.abortSignal,spanOptions:s})];case 2:return u=p.sent(),l={signedObjectId:u.signedObjectId,signedTenantId:u.signedTenantId,signedStartsOn:new Date(u.signedStartsOn),signedExpiresOn:new Date(u.signedExpiresOn),signedService:u.signedService,signedVersion:u.signedVersion,value:u.value},[2,n.__assign({_response:u._response,requestId:u.requestId,clientRequestId:u.clientRequestId,version:u.version,date:u.date,errorCode:u.errorCode},l)];case 3:throw c=p.sent(),o.setStatus({code:r.CanonicalCode.UNKNOWN,message:c.message}),c;case 4:return o.end(),[7];case 5:return[2]}}))}))},a.prototype.getBlobBatchClient=function(){return new ci(this.url,this.pipeline)},a}(La),di=function(){function e(){this.read=!1,this.write=!1,this.delete=!1,this.list=!1,this.add=!1,this.create=!1,this.update=!1,this.process=!1}return e.parse=function(t){for(var n=new e,r=0,a=t;r<a.length;r++){var i=a[r];switch(i){case"r":n.read=!0;break;case"w":n.write=!0;break;case"d":n.delete=!0;break;case"l":n.list=!0;break;case"a":n.add=!0;break;case"c":n.create=!0;break;case"u":n.update=!0;break;case"p":n.process=!0;break;default:throw new RangeError("Invalid permission character: "+i)}}return n},e.prototype.toString=function(){var e=[];return this.read&&e.push("r"),this.write&&e.push("w"),this.delete&&e.push("d"),this.list&&e.push("l"),this.add&&e.push("a"),this.create&&e.push("c"),this.update&&e.push("u"),this.process&&e.push("p"),e.join("")},e}(),fi=function(){function e(){this.service=!1,this.container=!1,this.object=!1}return e.parse=function(t){for(var n=new e,r=0,a=t;r<a.length;r++){var i=a[r];switch(i){case"s":n.service=!0;break;case"c":n.container=!0;break;case"o":n.object=!0;break;default:throw new RangeError("Invalid resource type: "+i)}}return n},e.prototype.toString=function(){var e=[];return this.service&&e.push("s"),this.container&&e.push("c"),this.object&&e.push("o"),e.join("")},e}(),mi=function(){function e(){this.blob=!1,this.file=!1,this.queue=!1,this.table=!1}return e.parse=function(t){for(var n=new e,r=0,a=t;r<a.length;r++){var i=a[r];switch(i){case"b":n.blob=!0;break;case"f":n.file=!0;break;case"q":n.queue=!0;break;case"t":n.table=!0;break;default:throw new RangeError("Invalid service character: "+i)}}return n},e.prototype.toString=function(){var e=[];return this.blob&&e.push("b"),this.table&&e.push("t"),this.queue&&e.push("q"),this.file&&e.push("f"),e.join("")},e}();function hi(e){return e.end?e.start+"-"+e.end:e.start}(ni=e.SASProtocol||(e.SASProtocol={})).Https="https",ni.HttpsAndHttp="https,http";var gi=function(){function e(e,t,n,r,a,i,o,s,u,l,c,p,d,f,m,h,g){this.version=e,this.services=r,this.resourceTypes=a,this.expiresOn=s,this.permissions=n,this.protocol=i,this.startsOn=o,this.ipRangeInner=u,this.identifier=l,this.resource=c,this.signature=t,this.cacheControl=p,this.contentDisposition=d,this.contentEncoding=f,this.contentLanguage=m,this.contentType=h,g&&(this.signedOid=g.signedObjectId,this.signedTenentId=g.signedTenantId,this.signedStartsOn=g.signedStartsOn,this.signedExpiresOn=g.signedExpiresOn,this.signedService=g.signedService,this.signedVersion=g.signedVersion)}return Object.defineProperty(e.prototype,"ipRange",{get:function(){if(this.ipRangeInner)return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}},enumerable:!0,configurable:!0}),e.prototype.toString=function(){for(var e=[],t=0,n=["sv","ss","srt","spr","st","se","sip","si","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct"];t<n.length;t++){var r=n[t];switch(r){case"sv":this.tryAppendQueryParameter(e,r,this.version);break;case"ss":this.tryAppendQueryParameter(e,r,this.services);break;case"srt":this.tryAppendQueryParameter(e,r,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(e,r,this.protocol);break;case"st":this.tryAppendQueryParameter(e,r,this.startsOn?Qr(this.startsOn,!1):void 0);break;case"se":this.tryAppendQueryParameter(e,r,this.expiresOn?Qr(this.expiresOn,!1):void 0);break;case"sip":this.tryAppendQueryParameter(e,r,this.ipRange?hi(this.ipRange):void 0);break;case"si":this.tryAppendQueryParameter(e,r,this.identifier);break;case"skoid":this.tryAppendQueryParameter(e,r,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(e,r,this.signedTenentId);break;case"skt":this.tryAppendQueryParameter(e,r,this.signedStartsOn?Qr(this.signedStartsOn,!1):void 0);break;case"ske":this.tryAppendQueryParameter(e,r,this.signedExpiresOn?Qr(this.signedExpiresOn,!1):void 0);break;case"sks":this.tryAppendQueryParameter(e,r,this.signedService);break;case"skv":this.tryAppendQueryParameter(e,r,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(e,r,this.resource);break;case"sp":this.tryAppendQueryParameter(e,r,this.permissions);break;case"sig":this.tryAppendQueryParameter(e,r,this.signature);break;case"rscc":this.tryAppendQueryParameter(e,r,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(e,r,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(e,r,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(e,r,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(e,r,this.contentType)}}return e.join("&")},e.prototype.tryAppendQueryParameter=function(e,t,n){n&&(t=encodeURIComponent(t),n=encodeURIComponent(n),t.length>0&&n.length>0&&e.push(t+"="+n))},e}();var yi=function(){function e(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1}return e.parse=function(t){for(var n=new e,r=0,a=t;r<a.length;r++){var i=a[r];switch(i){case"r":n.read=!0;break;case"a":n.add=!0;break;case"c":n.create=!0;break;case"w":n.write=!0;break;case"d":n.delete=!0;break;default:throw new RangeError("Invalid permission: "+i)}}return n},e.prototype.toString=function(){var e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),e.join("")},e}(),vi=function(){function e(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.list=!1}return e.parse=function(t){for(var n=new e,r=0,a=t;r<a.length;r++){var i=a[r];switch(i){case"r":n.read=!0;break;case"a":n.add=!0;break;case"c":n.create=!0;break;case"w":n.write=!0;break;case"d":n.delete=!0;break;case"l":n.list=!0;break;default:throw new RangeError("Invalid permission "+i)}}return n},e.prototype.toString=function(){var e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.list&&e.push("l"),e.join("")},e}(),bi=function(){function e(e,t){this.accountName=e,this.userDelegationKey=t,this.key=Buffer.from(t.value,"base64")}return e.prototype.computeHMACSHA256=function(e){return c.createHmac("sha256",this.key).update(e,"utf8").digest("base64")},e}();function wi(e,t,n){var r=["/blob/"+e+"/"+t];return n&&r.push("/"+n),r.join("")}Object.defineProperty(e,"BaseRequestPolicy",{enumerable:!0,get:function(){return t.BaseRequestPolicy}}),Object.defineProperty(e,"HttpHeaders",{enumerable:!0,get:function(){return t.HttpHeaders}}),Object.defineProperty(e,"RequestPolicyOptions",{enumerable:!0,get:function(){return t.RequestPolicyOptions}}),Object.defineProperty(e,"RestError",{enumerable:!0,get:function(){return t.RestError}}),Object.defineProperty(e,"WebResource",{enumerable:!0,get:function(){return t.WebResource}}),Object.defineProperty(e,"deserializationPolicy",{enumerable:!0,get:function(){return t.deserializationPolicy}}),e.AccountSASPermissions=di,e.AccountSASResourceTypes=fi,e.AccountSASServices=mi,e.AnonymousCredential=Pa,e.AnonymousCredentialPolicy=ja,e.AppendBlobClient=Wa,e.BlobBatch=ai,e.BlobBatchClient=ci,e.BlobClient=Ha,e.BlobLeaseClient=Ya,e.BlobSASPermissions=yi,e.BlobServiceClient=pi,e.BlockBlobClient=Ga,e.ContainerClient=Qa,e.ContainerSASPermissions=vi,e.Credential=Oa,e.CredentialPolicy=Ca,e.PageBlobClient=Ka,e.Pipeline=pa,e.SASQueryParameters=gi,e.StorageBrowserPolicy=na,e.StorageBrowserPolicyFactory=ra,e.StorageOAuthScopes=Tr,e.StorageRetryPolicy=oa,e.StorageRetryPolicyFactory=sa,e.StorageSharedKeyCredential=Na,e.StorageSharedKeyCredentialPolicy=Da,e.generateAccountSASQueryParameters=function(e,t){var n=e.version?e.version:Dr,r=di.parse(e.permissions.toString()),a=mi.parse(e.services).toString(),i=fi.parse(e.resourceTypes).toString(),o=[t.accountName,r,a,i,e.startsOn?Qr(e.startsOn,!1):"",Qr(e.expiresOn,!1),e.ipRange?hi(e.ipRange):"",e.protocol?e.protocol:"",n,""].join("\n"),s=t.computeHMACSHA256(o);return new gi(n,s,r.toString(),a,i,e.protocol,e.startsOn,e.expiresOn,e.ipRange)},e.generateBlobSASQueryParameters=function(e,t,n){var r,a=e.version?e.version:Dr,i=t instanceof Na?t:void 0;if(void 0===i&&void 0!==n&&(r=new bi(n,t)),void 0===i&&void 0===r)throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.");if(a>="2018-11-09")return void 0!==i?function(e,t){if(!e.identifier&&!e.permissions&&!e.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");var n,r=e.version?e.version:Dr,a="c";if(void 0===e.blobName&&e.snapshotTime)throw RangeError("Must provide 'blobName' when provided 'snapshotTime'.");e.blobName&&(a="b",e.snapshotTime&&(a="bs"));e.permissions&&(n=e.blobName?yi.parse(e.permissions.toString()).toString():vi.parse(e.permissions.toString()).toString());var i=[n||"",e.startsOn?Qr(e.startsOn,!1):"",e.expiresOn?Qr(e.expiresOn,!1):"",wi(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?hi(e.ipRange):"",e.protocol?e.protocol:"",r,a,e.snapshotTime,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n"),o=t.computeHMACSHA256(i);return new gi(r,o,n,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,a,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType)}(e,i):function(e,t){if(!e.permissions||!e.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");var n,r=e.version?e.version:Dr,a="c";if(void 0===e.blobName&&e.snapshotTime)throw RangeError("Must provide 'blobName' when provided 'snapshotTime'.");e.blobName&&(a="b",e.snapshotTime&&(a="bs"));e.permissions&&(n=e.blobName?yi.parse(e.permissions.toString()).toString():vi.parse(e.permissions.toString()).toString());var i=[n||"",e.startsOn?Qr(e.startsOn,!1):"",e.expiresOn?Qr(e.expiresOn,!1):"",wi(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?Qr(t.userDelegationKey.signedStartsOn,!1):"",t.userDelegationKey.signedExpiresOn?Qr(t.userDelegationKey.signedExpiresOn,!1):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?hi(e.ipRange):"",e.protocol?e.protocol:"",r,a,e.snapshotTime,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n"),o=t.computeHMACSHA256(i);return new gi(r,o,n,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,a,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey)}(e,r);if(a>="2015-04-05"){if(void 0!==i)return function(e,t){if(!e.identifier&&!e.permissions&&!e.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");var n,r=e.version?e.version:Dr,a="c";if(e.snapshotTime)throw RangeError("'version' must be >= '2018-11-09' when provided 'snapshotTime'.");e.blobName&&(a="b");e.permissions&&(n=e.blobName?yi.parse(e.permissions.toString()).toString():vi.parse(e.permissions.toString()).toString());var i=[n||"",e.startsOn?Qr(e.startsOn,!1):"",e.expiresOn?Qr(e.expiresOn,!1):"",wi(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?hi(e.ipRange):"",e.protocol?e.protocol:"",r,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n"),o=t.computeHMACSHA256(i);return new gi(r,o,n,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,a,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType)}(e,i);throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}throw new RangeError("'version' must be >= '2015-04-05'.")},e.logger=Er,e.newPipeline=da}(Yo);var kg={};const Sg=R.default,Eg=A.default,Cg=Sg.lchown?"lchown":"chown",Dg=Sg.lchownSync?"lchownSync":"chownSync",Og=Sg.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),Ng=(e,t,n)=>{try{return Sg[Dg](e,t,n)}catch(e){if("ENOENT"!==e.code)throw e}},jg=Og?(e,t,n,r)=>a=>{a&&"EISDIR"===a.code?Sg.chown(e,t,n,r):r(a)}:(e,t,n,r)=>r,Pg=Og?(e,t,n)=>{try{return Ng(e,t,n)}catch(r){if("EISDIR"!==r.code)throw r;((e,t,n)=>{try{return Sg.chownSync(e,t,n)}catch(e){if("ENOENT"!==e.code)throw e}})(e,t,n)}}:(e,t,n)=>Ng(e,t,n),Tg=process.version;let Ag=(e,t,n)=>Sg.readdir(e,t,n);/^v4\./.test(Tg)&&(Ag=(e,t,n)=>Sg.readdir(e,n));const Rg=(e,t,n,r)=>{Sg[Cg](e,t,n,jg(e,t,n,(e=>{r(e&&"ENOENT"!==e.code?e:null)})))},Ig=(e,t,n,r,a)=>{if("string"==typeof t)return Sg.lstat(Eg.resolve(e,t),((i,o)=>{if(i)return a("ENOENT"!==i.code?i:null);o.name=t,Ig(e,o,n,r,a)}));if(t.isDirectory())Mg(Eg.resolve(e,t.name),n,r,(i=>{if(i)return a(i);const o=Eg.resolve(e,t.name);Rg(o,n,r,a)}));else{const i=Eg.resolve(e,t.name);Rg(i,n,r,a)}},Mg=(e,t,n,r)=>{Ag(e,{withFileTypes:!0},((a,i)=>{if(a){if("ENOENT"===a.code)return r();if("ENOTDIR"!==a.code&&"ENOTSUP"!==a.code)return r(a)}if(a||!i.length)return Rg(e,t,n,r);let o=i.length,s=null;const u=a=>{if(!s)return a?r(s=a):0==--o?Rg(e,t,n,r):void 0};i.forEach((r=>Ig(e,r,t,n,u)))}))},Lg=(e,t,n)=>{let r;try{r=((e,t)=>Sg.readdirSync(e,t))(e,{withFileTypes:!0})}catch(r){if("ENOENT"===r.code)return;if("ENOTDIR"===r.code||"ENOTSUP"===r.code)return Pg(e,t,n);throw r}return r&&r.length&&r.forEach((r=>((e,t,n,r)=>{if("string"==typeof t)try{const n=Sg.lstatSync(Eg.resolve(e,t));n.name=t,t=n}catch(e){if("ENOENT"===e.code)return;throw e}t.isDirectory()&&Lg(Eg.resolve(e,t.name),n,r),Pg(Eg.resolve(e,t.name),n,r)})(e,r,t,n))),Pg(e,t,n)};var Fg=Mg;Mg.sync=Lg;var zg,Bg,Ug,qg,$g,Vg={},Hg={exports:{}},Wg={exports:{}},Gg={exports:{}};function Kg(){return zg||(zg=1,Gg.exports=z.default),Gg.exports}function Yg(){if(Ug)return Bg;function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?e(Object(a),!0).forEach((function(e){n(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Ug=1;const r=J.default.Buffer,a=L.default.inspect,i=a&&a.custom||"inspect";function o(e,t,n){r.prototype.copy.call(e,t,n)}return Bg=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){const t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){const t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0===this.length)return;const e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}concat(e){if(0===this.length)return r.alloc(0);const t=r.allocUnsafe(e>>>0);for(var n=this.head,a=0;n;)o(n.data,t,a),a+=n.data.length,n=n.next;return t}consume(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}first(){return this.head.data}_getString(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){const a=t.data,i=e>a.length?a.length:e;if(i===a.length?r+=a:r+=a.slice(0,e),0===(e-=i)){i===a.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=a.slice(i));break}++n}return this.length-=n,r}_getBuffer(e){const t=r.allocUnsafe(e);var n=this.head,a=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){const r=n.data,i=e>r.length?r.length:e;if(r.copy(t,t.length-e,0,i),0===(e-=i)){i===r.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=r.slice(i));break}++a}return this.length-=a,t}[i](e,n){return a(this,t(t({},n),{},{depth:0,customInspect:!1}))}},Bg}function Qg(){if($g)return qg;function e(e,r){n(e,r),t(e)}function t(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}return $g=1,qg={destroy:function(r,a){const i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(a?a(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,r)):process.nextTick(n,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,(n=>{!a&&n?this._writableState?this._writableState.errorEmitted?process.nextTick(t,this):(this._writableState.errorEmitted=!0,process.nextTick(e,this,n)):process.nextTick(e,this,n):a?(process.nextTick(t,this),a(n)):process.nextTick(t,this)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){const n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}},qg}var Xg,Jg,Zg,ey={};function ty(){if(Xg)return ey;Xg=1;const e={};function t(t,n,r){r||(r=Error);class a extends r{constructor(e,t,r){super(function(e,t,r){return"string"==typeof n?n:n(e,t,r)}(e,t,r))}}a.prototype.name=r.name,a.prototype.code=t,e[t]=a}function n(e,t){if(Array.isArray(e)){const n=e.length;return e=e.map((e=>String(e))),n>2?`one of ${t} ${e.slice(0,n-1).join(", ")}, or `+e[n-1]:2===n?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}return t("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),t("ERR_INVALID_ARG_TYPE",(function(e,t,r){let a,i;if("string"==typeof t&&function(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}(t,"not ")?(a="must not be",t=t.replace(/^not /,"")):a="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))i=`The ${e} ${a} ${n(t,"type")}`;else{const r=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";i=`The "${e}" ${r} ${a} ${n(t,"type")}`}return i+=". Received type "+typeof r,i}),TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),ey.codes=e,ey}function ny(){if(Zg)return Jg;Zg=1;const e=ty().codes.ERR_INVALID_OPT_VALUE;return Jg={getHighWaterMark:function(t,n,r,a){const i=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(n,a,r);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0){throw new e(a?r:"highWaterMark",i)}return Math.floor(i)}return t.objectMode?16:16384}}}var ry,ay,iy,oy,sy,uy,ly,cy,py,dy,fy,my,hy,gy,yy,vy,by,wy,_y,xy,ky,Sy={exports:{}},Ey={exports:{}};function Cy(){if(sy)return oy;function e(e){this.next=null,this.entry=null,this.finish=()=>{!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var a=r.callback;t.pendingcb--,a(n),r=r.next}t.corkedRequestsFree.next=e}(this,e)}}var t;sy=1,oy=_,_.WritableState=b;const n={deprecate:iy?ay:(iy=1,ay=L.default.deprecate)};var r=Kg();const a=J.default.Buffer,i=(void 0!==oe?oe:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};const o=Qg(),s=ny().getHighWaterMark,u=ty().codes,l=u.ERR_INVALID_ARG_TYPE,c=u.ERR_METHOD_NOT_IMPLEMENTED,p=u.ERR_MULTIPLE_CALLBACK,d=u.ERR_STREAM_CANNOT_PIPE,f=u.ERR_STREAM_DESTROYED,m=u.ERR_STREAM_NULL_VALUES,h=u.ERR_STREAM_WRITE_AFTER_END,g=u.ERR_UNKNOWN_ENCODING,y=o.errorOrDestroy;function v(){}function b(n,r,a){t=t||Dy(),n=n||{},"boolean"!=typeof a&&(a=r instanceof t),this.objectMode=!!n.objectMode,a&&(this.objectMode=this.objectMode||!!n.writableObjectMode),this.highWaterMark=s(this,n,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===n.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,a=n.writecb;if("function"!=typeof a)throw new p;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,a){--t.pendingcb,n?(process.nextTick(a,r),process.nextTick(D,e,t),e._writableState.errorEmitted=!0,y(e,r)):(a(r),e._writableState.errorEmitted=!0,y(e,r),D(e,t))}(e,n,r,t,a);else{var i=E(n)||e.destroyed;i||n.corked||n.bufferProcessing||!n.bufferedRequest||S(e,n),r?process.nextTick(k,e,n,i,a):k(e,n,i,a)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==n.emitClose,this.autoDestroy=!!n.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}var w;function _(e){const n=this instanceof(t=t||Dy());if(!n&&!w.call(_,this))return new _(e);this._writableState=new b(e,this,n),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),r.call(this)}function x(e,t,n,r,a,i,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new f("write")):n?e._writev(a,t.onwrite):e._write(a,i,t.onwrite),t.sync=!1}function k(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),D(e,t)}function S(t,n){n.bufferProcessing=!0;var r=n.bufferedRequest;if(t._writev&&r&&r.next){var a=n.bufferedRequestCount,i=new Array(a),o=n.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,x(t,n,!0,n.length,i,"",o.finish),n.pendingcb++,n.lastBufferedRequest=null,o.next?(n.corkedRequestsFree=o.next,o.next=null):n.corkedRequestsFree=new e(n),n.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,p=r.callback;if(x(t,n,!1,n.objectMode?1:l.length,l,c,p),r=r.next,n.bufferedRequestCount--,n.writing)break}null===r&&(n.lastBufferedRequest=null)}n.bufferedRequest=r,n.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final((n=>{t.pendingcb--,n&&y(e,n),t.prefinished=!0,e.emit("prefinish"),D(e,t)}))}function D(e,t){var n=E(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(C,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){const t=e._readableState;(!t||t.autoDestroy&&t.endEmitted)&&e.destroy()}return n}return Sy.exports(_,r),b.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(b.prototype,"buffer",{get:n.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(e){return!!w.call(this,e)||this===_&&(e&&e._writableState instanceof b)}})):w=function(e){return e instanceof this},_.prototype.pipe=function(){y(this,new d)},_.prototype.write=function(e,t,n){var r,o=this._writableState,s=!1,u=!o.objectMode&&(r=e,a.isBuffer(r)||r instanceof i);return u&&!a.isBuffer(e)&&(e=function(e){return a.from(e)}(e)),"function"==typeof t&&(n=t,t=null),u?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=v),o.ending?function(e,t){var n=new h;y(e,n),process.nextTick(t,n)}(this,n):(u||function(e,t,n,r){var a;return null===n?a=new m:"string"==typeof n||t.objectMode||(a=new l("chunk",["string","Buffer"],n)),!a||(y(e,a),process.nextTick(r,a),!1)}(this,o,e,n))&&(o.pendingcb++,s=function(e,t,n,r,i,o){if(!n){var s=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=a.from(t,n));return t}(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var u=t.objectMode?1:r.length;t.length+=u;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else x(e,t,!1,u,r,i,o);return l}(this,o,u,e,t,n)),s},_.prototype.cork=function(){this._writableState.corked++},_.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||S(this,e))},_.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new g(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(_.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),_.prototype._write=function(e,t,n){n(new c("_write()"))},_.prototype._writev=null,_.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,D(e,t),n&&(t.finished?process.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(_.prototype,"writableLength",{enumerable:!1,get(){return this._writableState.length}}),Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get(){return void 0!==this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}}),_.prototype.destroy=o.destroy,_.prototype._undestroy=o.undestroy,_.prototype._destroy=function(e,t){t(e)},oy}function Dy(){if(ly)return uy;ly=1;var e=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};uy=a;const t=Py(),n=Cy();Sy.exports(a,t);{const t=e(n.prototype);for(var r=0;r<t.length;r++){const e=t[r];a.prototype[e]||(a.prototype[e]=n.prototype[e])}}function a(e){if(!(this instanceof a))return new a(e);t.call(this,e),n.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",i)))}function i(){this._writableState.ended||process.nextTick(o,this)}function o(e){e.end()}return Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get(){return this._writableState.length}}),Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),uy}function Oy(){if(py)return cy;py=1;const e=ty().codes.ERR_STREAM_PREMATURE_CLOSE;function t(){}return cy=function n(r,a,i){if("function"==typeof a)return n(r,null,a);a||(a={}),i=function(e){let t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];e.apply(this,r)}}}(i||t);let o=a.readable||!1!==a.readable&&r.readable,s=a.writable||!1!==a.writable&&r.writable;const u=()=>{r.writable||c()};var l=r._writableState&&r._writableState.finished;const c=()=>{s=!1,l=!0,o||i.call(r)};var p=r._readableState&&r._readableState.endEmitted;const d=()=>{o=!1,p=!0,s||i.call(r)},f=e=>{i.call(r,e)},m=()=>{let t;return o&&!p?(r._readableState&&r._readableState.ended||(t=new e),i.call(r,t)):s&&!l?(r._writableState&&r._writableState.ended||(t=new e),i.call(r,t)):void 0},h=()=>{r.req.on("finish",c)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(r)?s&&!r._writableState&&(r.on("end",u),r.on("close",u)):(r.on("complete",c),r.on("abort",m),r.req?h():r.on("request",h)),r.on("end",d),r.on("finish",c),!1!==a.error&&r.on("error",f),r.on("close",m),function(){r.removeListener("complete",c),r.removeListener("abort",m),r.removeListener("request",h),r.req&&r.req.removeListener("finish",c),r.removeListener("end",u),r.removeListener("close",u),r.removeListener("finish",c),r.removeListener("end",d),r.removeListener("error",f),r.removeListener("close",m)}},cy}function Ny(){if(fy)return dy;fy=1;const e=Oy(),t=Symbol("lastResolve"),n=Symbol("lastReject"),r=Symbol("error"),a=Symbol("ended"),i=Symbol("lastPromise"),o=Symbol("handlePromise"),s=Symbol("stream");function u(e,t){return{value:e,done:t}}function l(e){const r=e[t];if(null!==r){const a=e[s].read();null!==a&&(e[i]=null,e[t]=null,e[n]=null,r(u(a,!1)))}}function c(e){process.nextTick(l,e)}const p=Object.getPrototypeOf((function(){})),d=Object.setPrototypeOf({get stream(){return this[s]},next(){const e=this[r];if(null!==e)return Promise.reject(e);if(this[a])return Promise.resolve(u(void 0,!0));if(this[s].destroyed)return new Promise(((e,t)=>{process.nextTick((()=>{this[r]?t(this[r]):e(u(void 0,!0))}))}));const t=this[i];let n;if(t)n=new Promise(function(e,t){return(n,r)=>{e.then((()=>{t[a]?n(u(void 0,!0)):t[o](n,r)}),r)}}(t,this));else{const e=this[s].read();if(null!==e)return Promise.resolve(u(e,!1));n=new Promise(this[o])}return this[i]=n,n},[Symbol.asyncIterator](){return this},return(){return new Promise(((e,t)=>{this[s].destroy(null,(n=>{n?t(n):e(u(void 0,!0))}))}))}},p);return dy=l=>{const p=Object.create(d,{[s]:{value:l,writable:!0},[t]:{value:null,writable:!0},[n]:{value:null,writable:!0},[r]:{value:null,writable:!0},[a]:{value:l._readableState.endEmitted,writable:!0},[o]:{value:(e,r)=>{const a=p[s].read();a?(p[i]=null,p[t]=null,p[n]=null,e(u(a,!1))):(p[t]=e,p[n]=r)},writable:!0}});return p[i]=null,e(l,(e=>{if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){const a=p[n];return null!==a&&(p[i]=null,p[t]=null,p[n]=null,a(e)),void(p[r]=e)}const o=p[t];null!==o&&(p[i]=null,p[t]=null,p[n]=null,o(u(void 0,!0))),p[a]=!0})),l.on("readable",c.bind(null,p)),p},dy}function jy(){if(hy)return my;function e(e,t,n,r,a,i,o){try{var s=e[i](o),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,a)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}hy=1;const r=ty().codes.ERR_INVALID_ARG_TYPE;return my=function(a,i,o){let s;if(i&&"function"==typeof i.next)s=i;else if(i&&i[Symbol.asyncIterator])s=i[Symbol.asyncIterator]();else{if(!i||!i[Symbol.iterator])throw new r("iterable",["Iterable"],i);s=i[Symbol.iterator]()}const u=new a(function(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?t(Object(a),!0).forEach((function(t){n(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({objectMode:!0},o));let l=!1;function c(){return p.apply(this,arguments)}function p(){var t;return t=function*(){try{const e=yield s.next(),t=e.value;e.done?u.push(null):u.push(yield t)?c():l=!1}catch(e){u.destroy(e)}},p=function(){var n=this,r=arguments;return new Promise((function(a,i){var o=t.apply(n,r);function s(t){e(o,a,i,s,u,"next",t)}function u(t){e(o,a,i,s,u,"throw",t)}s(void 0)}))},p.apply(this,arguments)}return u._read=function(){l||(l=!0,c())},u},my}function Py(){if(yy)return gy;var e;yy=1,gy=_,_.ReadableState=w,P.default.EventEmitter;var t=function(e,t){return e.listeners(t).length},n=Kg();const r=J.default.Buffer,a=(void 0!==oe?oe:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};const i=L.default;let o;o=i&&i.debuglog?i.debuglog("stream"):function(){};const s=Yg(),u=Qg(),l=ny().getHighWaterMark,c=ty().codes,p=c.ERR_INVALID_ARG_TYPE,d=c.ERR_STREAM_PUSH_AFTER_EOF,f=c.ERR_METHOD_NOT_IMPLEMENTED,m=c.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;let h,g,y;Sy.exports(_,n);const v=u.errorOrDestroy,b=["error","close","destroy","pause","resume"];function w(t,n,r){e=e||Dy(),t=t||{},"boolean"!=typeof r&&(r=n instanceof e),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=l(this,t,"readableHighWaterMark",r),this.buffer=new s,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=Q.default.StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function _(t){if(e=e||Dy(),!(this instanceof _))return new _(t);const r=this instanceof e;this._readableState=new w(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),n.call(this)}function x(e,t,n,i,s){o("readableAddChunk",t);var u,l=e._readableState;if(null===t)l.reading=!1,function(e,t){if(o("onEofChunk"),t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?C(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,D(e)))}(e,l);else if(s||(u=function(e,t){var n;i=t,r.isBuffer(i)||i instanceof a||"string"==typeof t||void 0===t||e.objectMode||(n=new p("chunk",["string","Buffer","Uint8Array"],t));var i;return n}(l,t)),u)v(e,u);else if(l.objectMode||t&&t.length>0)if("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===r.prototype||(t=function(e){return r.from(e)}(t)),i)l.endEmitted?v(e,new m):k(e,l,t,!0);else if(l.ended)v(e,new d);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!n?(t=l.decoder.write(t),l.objectMode||0!==t.length?k(e,l,t,!1):O(e,l)):k(e,l,t,!1)}else i||(l.reading=!1,O(e,l));return!l.ended&&(l.length<l.highWaterMark||0===l.length)}function k(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&C(e)),O(e,t)}Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get(){return void 0!==this._readableState&&this._readableState.destroyed},set(e){this._readableState&&(this._readableState.destroyed=e)}}),_.prototype.destroy=u.destroy,_.prototype._undestroy=u.undestroy,_.prototype._destroy=function(e,t){t(e)},_.prototype.push=function(e,t){var n,a=this._readableState;return a.objectMode?n=!0:"string"==typeof e&&((t=t||a.defaultEncoding)!==a.encoding&&(e=r.from(e,t),t=""),n=!0),x(this,e,t,!1,n)},_.prototype.unshift=function(e){return x(this,e,null,!0,!1)},_.prototype.isPaused=function(){return!1===this._readableState.flowing},_.prototype.setEncoding=function(e){h||(h=Q.default.StringDecoder);const t=new h(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;let n=this._readableState.buffer.head,r="";for(;null!==n;)r+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};const S=1073741824;function E(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(D,e))}function D(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,R(e)}function O(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(N,e,t))}function N(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){const n=t.length;if(o("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function j(e){const t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function T(e){o("readable nexttick read 0"),e.read(0)}function A(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),R(e),t.flowing&&!t.reading&&e.read(0)}function R(e){const t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function I(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function M(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(F,t,e))}function F(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){const e=t._writableState;(!e||e.autoDestroy&&e.finished)&&t.destroy()}}function z(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}return _.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):C(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&M(this),null;var r,a=t.needReadable;return o("need readable",a),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",a=!0),t.ended||t.reading?o("reading or ended",a=!1):a&&(o("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=E(n,t))),null===(r=e>0?I(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&M(this)),null!==r&&this.emit("data",r),r},_.prototype._read=function(e){v(this,new f("_read()"))},_.prototype.pipe=function(e,n){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,o("pipe count=%d opts=%j",a.pipesCount,n);var i=(!n||!1!==n.end)&&e!==process.stdout&&e!==process.stderr?u:h;function s(t,n){o("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,o("cleanup"),e.removeListener("close",f),e.removeListener("finish",m),e.removeListener("drain",l),e.removeListener("error",d),e.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",h),r.removeListener("data",p),c=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function u(){o("onend"),e.end()}a.endEmitted?process.nextTick(i):r.once("end",i),e.on("unpipe",s);var l=function(e){return function(){var n=e._readableState;o("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,0===n.awaitDrain&&t(e,"data")&&(n.flowing=!0,R(e))}}(r);e.on("drain",l);var c=!1;function p(t){o("ondata");var n=e.write(t);o("dest.write",n),!1===n&&((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==z(a.pipes,e))&&!c&&(o("false write response, pause",a.awaitDrain),a.awaitDrain++),r.pause())}function d(n){o("onerror",n),h(),e.removeListener("error",d),0===t(e,"error")&&v(e,n)}function f(){e.removeListener("finish",m),h()}function m(){o("onfinish"),e.removeListener("close",f),h()}function h(){o("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",f),e.once("finish",m),e.emit("pipe",r),a.flowing||(o("pipe resume"),r.resume()),e},_.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<a;i++)r[i].emit("unpipe",this,{hasUnpiped:!1});return this}var o=z(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},_.prototype.on=function(e,t){const r=n.prototype.on.call(this,e,t),a=this._readableState;return"data"===e?(a.readableListening=this.listenerCount("readable")>0,!1!==a.flowing&&this.resume()):"readable"===e&&(a.endEmitted||a.readableListening||(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,o("on readable",a.length,a.reading),a.length?C(this):a.reading||process.nextTick(T,this))),r},_.prototype.addListener=_.prototype.on,_.prototype.removeListener=function(e,t){const r=n.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(j,this),r},_.prototype.removeAllListeners=function(e){const t=n.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(j,this),t},_.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(A,e,t))}(this,e)),e.paused=!1,this},_.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},_.prototype.wrap=function(e){var t=this._readableState,n=!1;for(var r in e.on("end",(()=>{if(o("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&this.push(e)}this.push(null)})),e.on("data",(r=>{(o("wrapped data"),t.decoder&&(r=t.decoder.write(r)),t.objectMode&&null==r)||(t.objectMode||r&&r.length)&&(this.push(r)||(n=!0,e.pause()))})),e)void 0===this[r]&&"function"==typeof e[r]&&(this[r]=function(t){return function(){return e[t].apply(e,arguments)}}(r));for(var a=0;a<b.length;a++)e.on(b[a],this.emit.bind(this,b[a]));return this._read=t=>{o("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(_.prototype[Symbol.asyncIterator]=function(){return void 0===g&&(g=Ny()),g(this)}),Object.defineProperty(_.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(_.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(_.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),_._fromList=I,Object.defineProperty(_.prototype,"readableLength",{enumerable:!1,get(){return this._readableState.length}}),"function"==typeof Symbol&&(_.from=function(e,t){return void 0===y&&(y=jy()),y(_,e,t)}),gy}function Ty(){if(by)return vy;by=1,vy=s;const e=ty().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,n=e.ERR_MULTIPLE_CALLBACK,r=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=e.ERR_TRANSFORM_WITH_LENGTH_0,i=Dy();function o(e,t){var r=this._transformState;r.transforming=!1;var a=r.writecb;if(null===a)return this.emit("error",new n);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),a(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);i.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",u)}function u(){"function"!=typeof this._flush||this._readableState.destroyed?l(this,null,null):this._flush(((e,t)=>{l(this,e,t)}))}function l(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new a;if(e._transformState.transforming)throw new r;return e.push(null)}return Sy.exports(s,i),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,i.prototype.push.call(this,e,t)},s.prototype._transform=function(e,n,r){r(new t("_transform()"))},s.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var a=this._readableState;(r.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},s.prototype._destroy=function(e,t){i.prototype._destroy.call(this,e,(e=>{t(e)}))},vy}function Ay(){if(ky)return xy;let e;ky=1;const t=ty().codes,n=t.ERR_MISSING_ARGS,r=t.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function i(e){e()}function o(e,t){return e.pipe(t)}return xy=function(){for(var t=arguments.length,s=new Array(t),u=0;u<t;u++)s[u]=arguments[u];const l=function(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}(s);if(Array.isArray(s[0])&&(s=s[0]),s.length<2)throw new n("streams");let c;const p=s.map((function(t,n){const a=n<s.length-1;return function(t,n,a,i){i=function(e){let t=!1;return function(){t||(t=!0,e(...arguments))}}(i);let o=!1;t.on("close",(()=>{o=!0})),void 0===e&&(e=Oy()),e(t,{readable:n,writable:a},(e=>{if(e)return i(e);o=!0,i()}));let s=!1;return e=>{if(!o&&!s)return s=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void i(e||new r("pipe"))}}(t,a,n>0,(function(e){c||(c=e),e&&p.forEach(i),a||(p.forEach(i),l(c))}))}));return s.reduce(o)},xy}!function(e){try{var t=require("util");if("function"!=typeof t.inherits)throw"";e.exports=t.inherits}catch(t){e.exports=(ry||(ry=1,"function"==typeof Object.create?Ey.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Ey.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}),Ey.exports)}}(Sy),function(e,t){var n=z.default;"disable"===process.env.READABLE_STREAM&&n?(e.exports=n.Readable,Object.assign(e.exports,n),e.exports.Stream=n):((t=e.exports=Py()).Stream=n||t,t.Readable=t,t.Writable=Cy(),t.Duplex=Dy(),t.Transform=Ty(),t.PassThrough=function(){if(_y)return wy;_y=1,wy=t;const e=Ty();function t(n){if(!(this instanceof t))return new t(n);e.call(this,n)}return Sy.exports(t,e),t.prototype._transform=function(e,t,n){n(null,e)},wy}(),t.finished=Oy(),t.pipeline=Ay())}(Wg,Wg.exports);const{Buffer:Ry}=J.default,Iy=Symbol.for("BufferList");function My(e){if(!(this instanceof My))return new My(e);My._init.call(this,e)}My._init=function(e){Object.defineProperty(this,Iy,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)},My.prototype._new=function(e){return new My(e)},My.prototype._offset=function(e){if(0===e)return[0,0];let t=0;for(let n=0;n<this._bufs.length;n++){const r=t+this._bufs[n].length;if(e<r||n===this._bufs.length-1)return[n,e-t];t=r}},My.prototype._reverseOffset=function(e){const t=e[0];let n=e[1];for(let e=0;e<t;e++)n+=this._bufs[e].length;return n},My.prototype.get=function(e){if(e>this.length||e<0)return;const t=this._offset(e);return this._bufs[t[0]][t[1]]},My.prototype.slice=function(e,t){return"number"==typeof e&&e<0&&(e+=this.length),"number"==typeof t&&t<0&&(t+=this.length),this.copy(null,0,e,t)},My.prototype.copy=function(e,t,n,r){if(("number"!=typeof n||n<0)&&(n=0),("number"!=typeof r||r>this.length)&&(r=this.length),n>=this.length)return e||Ry.alloc(0);if(r<=0)return e||Ry.alloc(0);const a=!!e,i=this._offset(n),o=r-n;let s=o,u=a&&t||0,l=i[1];if(0===n&&r===this.length){if(!a)return 1===this._bufs.length?this._bufs[0]:Ry.concat(this._bufs,this.length);for(let t=0;t<this._bufs.length;t++)this._bufs[t].copy(e,u),u+=this._bufs[t].length;return e}if(s<=this._bufs[i[0]].length-l)return a?this._bufs[i[0]].copy(e,t,l,l+s):this._bufs[i[0]].slice(l,l+s);a||(e=Ry.allocUnsafe(o));for(let t=i[0];t<this._bufs.length;t++){const n=this._bufs[t].length-l;if(!(s>n)){this._bufs[t].copy(e,u,l,l+s),u+=n;break}this._bufs[t].copy(e,u,l),u+=n,s-=n,l&&(l=0)}return e.length>u?e.slice(0,u):e},My.prototype.shallowSlice=function(e,t){if(e=e||0,t="number"!=typeof t?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();const n=this._offset(e),r=this._offset(t),a=this._bufs.slice(n[0],r[0]+1);return 0===r[1]?a.pop():a[a.length-1]=a[a.length-1].slice(0,r[1]),0!==n[1]&&(a[0]=a[0].slice(n[1])),this._new(a)},My.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)},My.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;){if(!(e>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},My.prototype.duplicate=function(){const e=this._new();for(let t=0;t<this._bufs.length;t++)e.append(this._bufs[t]);return e},My.prototype.append=function(e){if(null==e)return this;if(e.buffer)this._appendBuffer(Ry.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let t=0;t<e.length;t++)this.append(e[t]);else if(this._isBufferList(e))for(let t=0;t<e._bufs.length;t++)this.append(e._bufs[t]);else"number"==typeof e&&(e=e.toString()),this._appendBuffer(Ry.from(e));return this},My.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length},My.prototype.indexOf=function(e,t,n){if(void 0===n&&"string"==typeof t&&(n=t,t=void 0),"function"==typeof e||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if("number"==typeof e?e=Ry.from([e]):"string"==typeof e?e=Ry.from(e,n):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=Ry.from(e.buffer,e.byteOffset,e.byteLength):Ry.isBuffer(e)||(e=Ry.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),0===e.length)return t>this.length?this.length:t;const r=this._offset(t);let a=r[0],i=r[1];for(;a<this._bufs.length;a++){const t=this._bufs[a];for(;i<t.length;){if(t.length-i>=e.length){const n=t.indexOf(e,i);if(-1!==n)return this._reverseOffset([a,n]);i=t.length-e.length+1}else{const t=this._reverseOffset([a,i]);if(this._match(t,e))return t;i++}}i=0}return-1},My.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let n=0;n<t.length;n++)if(this.get(e+n)!==t[n])return!1;return!0},function(){const e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(const t in e)!function(t){My.prototype[t]=null===e[t]?function(e,n){return this.slice(e,e+n)[t](0,n)}:function(n=0){return this.slice(n,n+e[t])[t](0)}}(t)}(),My.prototype._isBufferList=function(e){return e instanceof My||My.isBufferList(e)},My.isBufferList=function(e){return null!=e&&e[Iy]};var Ly=My;const Fy=Wg.exports.Duplex,zy=Sy.exports,By=Ly;function Uy(e){if(!(this instanceof Uy))return new Uy(e);if("function"==typeof e){this._callback=e;const t=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on("pipe",(function(e){e.on("error",t)})),this.on("unpipe",(function(e){e.removeListener("error",t)})),e=null}By._init.call(this,e),Fy.call(this)}zy(Uy,Fy),Object.assign(Uy.prototype,By.prototype),Uy.prototype._new=function(e){return new Uy(e)},Uy.prototype._write=function(e,t,n){this._appendBuffer(e),"function"==typeof n&&n()},Uy.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)},Uy.prototype.end=function(e){Fy.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)},Uy.prototype._destroy=function(e,t){this._bufs.length=0,this.length=0,t(e)},Uy.prototype._isBufferList=function(e){return e instanceof Uy||e instanceof By||Uy.isBufferList(e)},Uy.isBufferList=By.isBufferList,Hg.exports=Uy,Hg.exports.BufferListStream=Uy,Hg.exports.BufferList=By;var qy={},$y=Buffer.alloc,Vy="0".charCodeAt(0),Hy=Buffer.from("ustar\0","binary"),Wy=Buffer.from("00","binary"),Gy=Buffer.from("ustar ","binary"),Ky=Buffer.from(" \0","binary"),Yy=parseInt("7777",8),Qy=257,Xy=function(e,t,n,r){for(;n<r;n++)if(e[n]===t)return n;return r},Jy=function(e){for(var t=256,n=0;n<148;n++)t+=e[n];for(var r=156;r<512;r++)t+=e[r];return t},Zy=function(e,t){return(e=e.toString(8)).length>t?"7777777777777777777".slice(0,t)+" ":"0000000000000000000".slice(0,t-e.length)+e+" "};var ev=function(e,t,n){if(128&(e=e.slice(t,t+n))[t=0])return function(e){var t;if(128===e[0])t=!0;else{if(255!==e[0])return null;t=!1}for(var n=[],r=e.length-1;r>0;r--){var a=e[r];t?n.push(a):n.push(255-a)}var i=0,o=n.length;for(r=0;r<o;r++)i+=n[r]*Math.pow(256,r);return t?i:-1*i}(e);for(;t<e.length&&32===e[t];)t++;for(var r=(a=Xy(e,32,t,e.length),i=e.length,o=e.length,"number"!=typeof a?o:(a=~~a)>=i?i:a>=0||(a+=i)>=0?a:0);t<r&&0===e[t];)t++;return r===t?0:parseInt(e.slice(t,r).toString(),8);var a,i,o},tv=function(e,t,n,r){return e.slice(t,Xy(e,0,t,t+n)).toString(r)},nv=function(e){var t=Buffer.byteLength(e),n=Math.floor(Math.log(t)/Math.log(10))+1;return t+n>=Math.pow(10,n)&&n++,t+n+e};qy.decodeLongPath=function(e,t){return tv(e,0,e.length,t)},qy.encodePax=function(e){var t="";e.name&&(t+=nv(" path="+e.name+"\n")),e.linkname&&(t+=nv(" linkpath="+e.linkname+"\n"));var n=e.pax;if(n)for(var r in n)t+=nv(" "+r+"="+n[r]+"\n");return Buffer.from(t)},qy.decodePax=function(e){for(var t={};e.length;){for(var n=0;n<e.length&&32!==e[n];)n++;var r=parseInt(e.slice(0,n).toString(),10);if(!r)return t;var a=e.slice(n+1,r-1).toString(),i=a.indexOf("=");if(-1===i)return t;t[a.slice(0,i)]=a.slice(i+1),e=e.slice(r)}return t},qy.encode=function(e){var t=$y(512),n=e.name,r="";if(5===e.typeflag&&"/"!==n[n.length-1]&&(n+="/"),Buffer.byteLength(n)!==n.length)return null;for(;Buffer.byteLength(n)>100;){var a=n.indexOf("/");if(-1===a)return null;r+=r?"/"+n.slice(0,a):n.slice(0,a),n=n.slice(a+1)}return Buffer.byteLength(n)>100||Buffer.byteLength(r)>155||e.linkname&&Buffer.byteLength(e.linkname)>100?null:(t.write(n),t.write(Zy(e.mode&Yy,6),100),t.write(Zy(e.uid,6),108),t.write(Zy(e.gid,6),116),t.write(Zy(e.size,11),124),t.write(Zy(e.mtime.getTime()/1e3|0,11),136),t[156]=Vy+function(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}(e.type),e.linkname&&t.write(e.linkname,157),Hy.copy(t,Qy),Wy.copy(t,263),e.uname&&t.write(e.uname,265),e.gname&&t.write(e.gname,297),t.write(Zy(e.devmajor||0,6),329),t.write(Zy(e.devminor||0,6),337),r&&t.write(r,345),t.write(Zy(Jy(t),6),148),t)},qy.decode=function(e,t,n){var r=0===e[156]?0:e[156]-Vy,a=tv(e,0,100,t),i=ev(e,100,8),o=ev(e,108,8),s=ev(e,116,8),u=ev(e,124,12),l=ev(e,136,12),c=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}(r),p=0===e[157]?null:tv(e,157,100,t),d=tv(e,265,32),f=tv(e,297,32),m=ev(e,329,8),h=ev(e,337,8),g=Jy(e);if(256===g)return null;if(g!==ev(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(0===Hy.compare(e,Qy,263))e[345]&&(a=tv(e,345,155,t)+"/"+a);else if(0===Gy.compare(e,Qy,263)&&0===Ky.compare(e,263,265));else if(!n)throw new Error("Invalid tar header: unknown format.");return 0===r&&a&&"/"===a[a.length-1]&&(r=5),{name:a,mode:i,uid:o,gid:s,size:u,mtime:new Date(1e3*l),type:c,linkname:p,uname:d,gname:f,devmajor:m,devminor:h}};var rv=L.default,av=Hg.exports,iv=qy,ov=Wg.exports.Writable,sv=Wg.exports.PassThrough,uv=function(){},lv=function(e){return(e&=511)&&512-e},cv=function(e,t){this._parent=e,this.offset=t,sv.call(this,{autoDestroy:!1})};rv.inherits(cv,sv),cv.prototype.destroy=function(e){this._parent.destroy(e)};var pv=function(e){if(!(this instanceof pv))return new pv(e);ov.call(this,e),e=e||{},this._offset=0,this._buffer=av(),this._missing=0,this._partial=!1,this._onparse=uv,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var t=this,n=t._buffer,r=function(){t._continue()},a=function(e){if(t._locked=!1,e)return t.destroy(e);t._stream||r()},i=function(){t._stream=null;var e=lv(t._header.size);e?t._parse(e,o):t._parse(512,p),t._locked||r()},o=function(){t._buffer.consume(lv(t._header.size)),t._parse(512,p),r()},s=function(){var e=t._header.size;t._paxGlobal=iv.decodePax(n.slice(0,e)),n.consume(e),i()},u=function(){var e=t._header.size;t._pax=iv.decodePax(n.slice(0,e)),t._paxGlobal&&(t._pax=Object.assign({},t._paxGlobal,t._pax)),n.consume(e),i()},l=function(){var r=t._header.size;this._gnuLongPath=iv.decodeLongPath(n.slice(0,r),e.filenameEncoding),n.consume(r),i()},c=function(){var r=t._header.size;this._gnuLongLinkPath=iv.decodeLongPath(n.slice(0,r),e.filenameEncoding),n.consume(r),i()},p=function(){var o,d=t._offset;try{o=t._header=iv.decode(n.slice(0,512),e.filenameEncoding,e.allowUnknownFormat)}catch(e){t.emit("error",e)}return n.consume(512),o?"gnu-long-path"===o.type?(t._parse(o.size,l),void r()):"gnu-long-link-path"===o.type?(t._parse(o.size,c),void r()):"pax-global-header"===o.type?(t._parse(o.size,s),void r()):"pax-header"===o.type?(t._parse(o.size,u),void r()):(t._gnuLongPath&&(o.name=t._gnuLongPath,t._gnuLongPath=null),t._gnuLongLinkPath&&(o.linkname=t._gnuLongLinkPath,t._gnuLongLinkPath=null),t._pax&&(t._header=o=function(e,t){return t.path&&(e.name=t.path),t.linkpath&&(e.linkname=t.linkpath),t.size&&(e.size=parseInt(t.size,10)),e.pax=t,e}(o,t._pax),t._pax=null),t._locked=!0,o.size&&"directory"!==o.type?(t._stream=new cv(t,d),t.emit("entry",o,t._stream,a),t._parse(o.size,i),void r()):(t._parse(512,p),void t.emit("entry",o,function(e,t){var n=new cv(e,t);return n.end(),n}(t,d),a))):(t._parse(512,p),void r())};this._onheader=p,this._parse(512,p)};rv.inherits(pv,ov),pv.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.emit("close"))},pv.prototype._parse=function(e,t){this._destroyed||(this._offset+=e,this._missing=e,t===this._onheader&&(this._partial=!1),this._onparse=t)},pv.prototype._continue=function(){if(!this._destroyed){var e=this._cb;this._cb=uv,this._overflow?this._write(this._overflow,void 0,e):e()}},pv.prototype._write=function(e,t,n){if(!this._destroyed){var r=this._stream,a=this._buffer,i=this._missing;if(e.length&&(this._partial=!0),e.length<i)return this._missing-=e.length,this._overflow=null,r?r.write(e,n):(a.append(e),n());this._cb=n,this._missing=0;var o=null;e.length>i&&(o=e.slice(i),e=e.slice(0,i)),r?r.end(e):a.append(e),this._overflow=o,this._onparse()}},pv.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()};var dv=pv,fv=R.default.constants||F.default,mv={exports:{}},hv=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){r[e]=t[e]})),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),a=e[e.length-1];return"function"==typeof r&&r!==a&&Object.keys(a).forEach((function(e){r[e]=a[e]})),r}};var gv=hv;function yv(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function vv(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}mv.exports=gv(yv),mv.exports.strict=gv(vv),yv.proto=yv((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return yv(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return vv(this)},configurable:!0})}));var bv=mv.exports,wv=function(){},_v=function(e,t,n){if("function"==typeof t)return _v(e,null,t);t||(t={}),n=bv(n||wv);var r=e._writableState,a=e._readableState,i=t.readable||!1!==t.readable&&e.readable,o=t.writable||!1!==t.writable&&e.writable,s=!1,u=function(){e.writable||l()},l=function(){o=!1,i||n.call(e)},c=function(){i=!1,o||n.call(e)},p=function(t){n.call(e,t?new Error("exited with error code: "+t):null)},d=function(t){n.call(e,t)},f=function(){process.nextTick(m)},m=function(){if(!s)return(!i||a&&a.ended&&!a.destroyed)&&(!o||r&&r.ended&&!r.destroyed)?void 0:n.call(e,new Error("premature close"))},h=function(){e.req.on("finish",l)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?o&&!r&&(e.on("end",u),e.on("close",u)):(e.on("complete",l),e.on("abort",f),e.req?h():e.on("request",h)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(e)&&e.on("exit",p),e.on("end",c),e.on("finish",l),!1!==t.error&&e.on("error",d),e.on("close",f),function(){s=!0,e.removeListener("complete",l),e.removeListener("abort",f),e.removeListener("request",h),e.req&&e.req.removeListener("finish",l),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",l),e.removeListener("exit",p),e.removeListener("end",c),e.removeListener("error",d),e.removeListener("close",f)}},xv=_v,kv=fv,Sv=xv,Ev=Sy.exports,Cv=Buffer.alloc,Dv=Wg.exports.Readable,Ov=Wg.exports.Writable,Nv=Q.default.StringDecoder,jv=qy,Pv=parseInt("755",8),Tv=parseInt("644",8),Av=Cv(1024),Rv=function(){},Iv=function(e,t){(t&=511)&&e.push(Av.slice(0,512-t))};var Mv=function(e){Ov.call(this),this.written=0,this._to=e,this._destroyed=!1};Ev(Mv,Ov),Mv.prototype._write=function(e,t,n){if(this.written+=e.length,this._to.push(e))return n();this._to._drain=n},Mv.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var Lv=function(){Ov.call(this),this.linkname="",this._decoder=new Nv("utf-8"),this._destroyed=!1};Ev(Lv,Ov),Lv.prototype._write=function(e,t,n){this.linkname+=this._decoder.write(e),n()},Lv.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var Fv=function(){Ov.call(this),this._destroyed=!1};Ev(Fv,Ov),Fv.prototype._write=function(e,t,n){n(new Error("No body allowed for this entry"))},Fv.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var zv=function(e){if(!(this instanceof zv))return new zv(e);Dv.call(this,e),this._drain=Rv,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};Ev(zv,Dv),zv.prototype.entry=function(e,t,n){if(this._stream)throw new Error("already piping an entry");if(!this._finalized&&!this._destroyed){"function"==typeof t&&(n=t,t=null),n||(n=Rv);var r=this;if(e.size&&"symlink"!==e.type||(e.size=0),e.type||(e.type=function(e){switch(e&kv.S_IFMT){case kv.S_IFBLK:return"block-device";case kv.S_IFCHR:return"character-device";case kv.S_IFDIR:return"directory";case kv.S_IFIFO:return"fifo";case kv.S_IFLNK:return"symlink"}return"file"}(e.mode)),e.mode||(e.mode="directory"===e.type?Pv:Tv),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),"string"==typeof t&&(t=Buffer.from(t)),Buffer.isBuffer(t)){e.size=t.length,this._encode(e);var a=this.push(t);return Iv(r,e.size),a?process.nextTick(n):this._drain=n,new Fv}if("symlink"===e.type&&!e.linkname){var i=new Lv;return Sv(i,(function(t){if(t)return r.destroy(),n(t);e.linkname=i.linkname,r._encode(e),n()})),i}if(this._encode(e),"file"!==e.type&&"contiguous-file"!==e.type)return process.nextTick(n),new Fv;var o=new Mv(this);return this._stream=o,Sv(o,(function(t){return r._stream=null,t?(r.destroy(),n(t)):o.written!==e.size?(r.destroy(),n(new Error("size mismatch"))):(Iv(r,e.size),r._finalizing&&r.finalize(),void n())})),o}},zv.prototype.finalize=function(){this._stream?this._finalizing=!0:this._finalized||(this._finalized=!0,this.push(Av),this.push(null))},zv.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.destroy&&this._stream.destroy())},zv.prototype._encode=function(e){if(!e.pax){var t=jv.encode(e);if(t)return void this.push(t)}this._encodePax(e)},zv.prototype._encodePax=function(e){var t=jv.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),n={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(jv.encode(n)),this.push(t),Iv(this,t.length),n.size=e.size,n.type=e.type,this.push(jv.encode(n))},zv.prototype._read=function(e){var t=this._drain;this._drain=Rv,t()};var Bv=zv;Vg.extract=dv,Vg.pack=Bv;var Uv=mv.exports,qv=xv,$v=R.default,Vv=function(){},Hv=/^v?\.0/.test(process.version),Wv=function(e){return"function"==typeof e},Gv=function(e,t,n,r){r=Uv(r);var a=!1;e.on("close",(function(){a=!0})),qv(e,{readable:t,writable:n},(function(e){if(e)return r(e);a=!0,r()}));var i=!1;return function(t){if(!a&&!i)return i=!0,function(e){return!!Hv&&!!$v&&(e instanceof($v.ReadStream||Vv)||e instanceof($v.WriteStream||Vv))&&Wv(e.close)}(e)?e.close(Vv):function(e){return e.setHeader&&Wv(e.abort)}(e)?e.abort():Wv(e.destroy)?e.destroy():void r(t||new Error("stream was destroyed"))}},Kv=function(e){e()},Yv=function(e,t){return e.pipe(t)},Qv=function(){var e,t=Array.prototype.slice.call(arguments),n=Wv(t[t.length-1]||Vv)&&t.pop()||Vv;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r=t.map((function(a,i){var o=i<t.length-1;return Gv(a,o,i>0,(function(t){e||(e=t),t&&r.forEach(Kv),o||(r.forEach(Kv),n(e))}))}));return t.reduce(Yv)},Xv=A.default,Jv=R.default,Zv=parseInt("0777",8),eb=tb.mkdirp=tb.mkdirP=tb;function tb(e,t,n,r){"function"==typeof t?(n=t,t={}):t&&"object"==typeof t||(t={mode:t});var a=t.mode,i=t.fs||Jv;void 0===a&&(a=Zv&~process.umask()),r||(r=null);var o=n||function(){};e=Xv.resolve(e),i.mkdir(e,a,(function(n){if(!n)return o(null,r=r||e);if("ENOENT"===n.code)tb(Xv.dirname(e),t,(function(n,r){n?o(n,r):tb(e,t,o,r)}));else i.stat(e,(function(e,t){e||!t.isDirectory()?o(n,r):o(null,r)}))}))}tb.sync=function e(t,n,r){n&&"object"==typeof n||(n={mode:n});var a=n.mode,i=n.fs||Jv;void 0===a&&(a=Zv&~process.umask()),r||(r=null),t=Xv.resolve(t);try{i.mkdirSync(t,a),r=r||t}catch(a){if("ENOENT"===a.code)r=e(Xv.dirname(t),n,r),e(t,n,r);else{var o;try{o=i.statSync(t)}catch(e){throw a}if(!o.isDirectory())throw a}}return r};var nb=Fg,rb=Vg,ab=Qv,ib=eb,ob=R.default,sb=A.default,ub="win32"===M.default.platform(),lb=function(){},cb=function(e){return e},pb=ub?function(e){return e.replace(/\\/g,"/").replace(/[:?<>|]/g,"_")}:cb,db=function(e,t){return function(n){n.name=n.name.split("/").slice(t).join("/");var r=n.linkname;return r&&("link"===n.type||sb.isAbsolute(r))&&(n.linkname=r.split("/").slice(t).join("/")),e(n)}};kg.pack=function(e,t){e||(e="."),t||(t={});var n=t.fs||ob,r=t.ignore||t.filter||lb,a=t.map||lb,i=t.mapStream||cb,o=function(e,t,n,r,a,i){var o=a||["."];return function(a){if(!o.length)return a();var s=o.shift(),u=sb.join(n,s);t.call(e,u,(function(t,l){return t?a(t):l.isDirectory()?void e.readdir(u,(function(e,t){if(e)return a(e);i&&t.sort();for(var u=0;u<t.length;u++)r(sb.join(n,s,t[u]))||o.push(sb.join(s,t[u]));a(null,s,l)})):a(null,s,l)}))}}(n,t.dereference?n.stat:n.lstat,e,r,t.entries,t.sort),s=!1!==t.strict,u="number"==typeof t.umask?~t.umask:~fb(),l="number"==typeof t.dmode?t.dmode:0,c="number"==typeof t.fmode?t.fmode:0,p=t.pack||rb.pack(),d=t.finish||lb;t.strip&&(a=db(a,t.strip)),t.readable&&(l|=parseInt(555,8),c|=parseInt(444,8)),t.writable&&(l|=parseInt(333,8),c|=parseInt(222,8));var f=function(r,o,f){if(r)return p.destroy(r);if(!o)return!1!==t.finalize&&p.finalize(),d(p);if(f.isSocket())return m();var h={name:pb(o),mode:(f.mode|(f.isDirectory()?l:c))&u,mtime:f.mtime,size:f.size,type:"file",uid:f.uid,gid:f.gid};if(f.isDirectory())return h.size=0,h.type="directory",h=a(h)||h,p.entry(h,m);if(f.isSymbolicLink())return h.size=0,h.type="symlink",function(t,r){n.readlink(sb.join(e,t),(function(e,t){if(e)return p.destroy(e);r.linkname=pb(t),p.entry(r,m)}))}(o,h=a(h)||h);if(h=a(h)||h,!f.isFile())return s?p.destroy(new Error("unsupported type for "+o)):m();var g=p.entry(h,m);if(g){var y=i(n.createReadStream(sb.join(e,o),{start:0,end:h.size>0?h.size-1:h.size}),h);y.on("error",(function(e){g.destroy(e)})),ab(y,g)}},m=function(e){if(e)return p.destroy(e);o(f)};return m(),p};var fb=function(){return process.umask?process.umask():0};function mb(e,t,n,r){if(t===n)return r(null,!0);e.lstat(t,(function(a,i){return a&&"ENOENT"!==a.code?r(a):a||i.isDirectory()?mb(e,sb.join(t,".."),n,r):void r(null,!1)}))}function hb(e,t,n){ib(e,{fs:t.fs},(function(e,r){!e&&r&&t.own?nb(r,t.uid,t.gid,n):n(e)}))}kg.extract=function(e,t){e||(e="."),t||(t={});var n=t.fs||ob,r=t.ignore||t.filter||lb,a=t.map||lb,i=t.mapStream||cb,o=!1!==t.chown&&!ub&&0===(process.getuid?process.getuid():-1),s=t.extract||rb.extract(),u=[],l=new Date,c="number"==typeof t.umask?~t.umask:~fb(),p="number"==typeof t.dmode?t.dmode:0,d="number"==typeof t.fmode?t.fmode:0,f=!1!==t.strict;t.strip&&(a=db(a,t.strip)),t.readable&&(p|=parseInt(555,8),d|=parseInt(444,8)),t.writable&&(p|=parseInt(333,8),d|=parseInt(222,8));var m=function(e,t){for(var r,a;(r=(a=u).length?a[a.length-1]:null)&&e.slice(0,r[0].length)!==r[0];)u.pop();if(!r)return t();n.utimes(r[0],l,r[1],t)};return s.on("entry",(function(s,h,g){(s=a(s)||s).name=pb(s.name);var y=sb.join(e,sb.join("/",s.name));if(r(y,s))return h.resume(),g();var v=function(e){if(e)return g(e);!function(e,r,a){!1===t.utimes?a():"directory"===r.type?n.utimes(e,l,r.mtime,a):"symlink"===r.type?m(e,a):n.utimes(e,l,r.mtime,(function(t){if(t)return a(t);m(e,a)}))}(y,s,(function(e){return e?g(e):ub?g():void function(e,t,r){var a="symlink"===t.type,i=a?n.lchmod:n.chmod,s=a?n.lchown:n.chown;if(!i)return r();var u=(t.mode|("directory"===t.type?p:d))&c;function l(t){return t?r(t):i?void i.call(n,e,u,r):r()}s&&o?s.call(n,e,t.uid,t.gid,l):l(null)}(y,s,g)}))},b=function(){var e=n.createWriteStream(y),t=i(h,s);e.on("error",(function(e){t.destroy(e)})),ab(t,e,(function(t){if(t)return g(t);e.on("close",v)}))};if("directory"===s.type)return u.push([y,s.mtime]),hb(y,{fs:n,own:o,uid:s.uid,gid:s.gid},v);var w=sb.dirname(y);mb(n,w,sb.join(e,"."),(function(r,a){return r?g(r):a?void hb(w,{fs:n,own:o,uid:s.uid,gid:s.gid},(function(r){if(r)return g(r);switch(s.type){case"file":return b();case"link":return function(){if(ub)return g();n.unlink(y,(function(){var r=sb.join(e,sb.join("/",s.linkname));n.link(r,y,(function(e){if(e&&"EPERM"===e.code&&t.hardlinkAsFilesFallback)return h=n.createReadStream(r),b();v(e)}))}))}();case"symlink":return function(){if(ub)return g();n.unlink(y,(function(){n.symlink(s.linkname,y,v)}))}()}if(f)return g(new Error("unsupported type for "+y+" ("+s.type+")"));h.resume(),g()})):g(new Error(w+" is not a valid path"))}))})),t.finish&&s.on("finish",t.finish),s};var gb={},yb={exports:{}};const vb=z.default.PassThrough,bb=Array.prototype.slice;var wb=function(){const e=[],t=bb.call(arguments);let n=!1,r=t[t.length-1];r&&!Array.isArray(r)&&null==r.pipe?t.pop():r={};const a=!1!==r.end,i=!0===r.pipeError;null==r.objectMode&&(r.objectMode=!0);null==r.highWaterMark&&(r.highWaterMark=65536);const o=vb(r);function s(){for(let t=0,n=arguments.length;t<n;t++)e.push(_b(arguments[t],r));return u(),this}function u(){if(n)return;n=!0;let t=e.shift();if(!t)return void process.nextTick(l);Array.isArray(t)||(t=[t]);let r=t.length+1;function a(){--r>0||(n=!1,u())}function s(e){function t(){e.removeListener("merge2UnpipeEnd",t),e.removeListener("end",t),i&&e.removeListener("error",n),a()}function n(e){o.emit("error",e)}if(e._readableState.endEmitted)return a();e.on("merge2UnpipeEnd",t),e.on("end",t),i&&e.on("error",n),e.pipe(o,{end:!1}),e.resume()}for(let e=0;e<t.length;e++)s(t[e]);a()}function l(){n=!1,o.emit("queueDrain"),a&&o.end()}o.setMaxListeners(0),o.add=s,o.on("unpipe",(function(e){e.emit("merge2UnpipeEnd")})),t.length&&s.apply(null,t);return o};function _b(e,t){if(Array.isArray(e))for(let n=0,r=e.length;n<r;n++)e[n]=_b(e[n],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(vb(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}var xb={},kb={},Sb={};Object.defineProperty(Sb,"__esModule",{value:!0}),Sb.splitWhen=Sb.flatten=void 0,Sb.flatten=function(e){return e.reduce(((e,t)=>[].concat(e,t)),[])},Sb.splitWhen=function(e,t){const n=[[]];let r=0;for(const a of e)t(a)?(r++,n[r]=[]):n[r].push(a);return n};var Eb={};Object.defineProperty(Eb,"__esModule",{value:!0}),Eb.isEnoentCodeError=void 0,Eb.isEnoentCodeError=function(e){return"ENOENT"===e.code};var Cb={};Object.defineProperty(Cb,"__esModule",{value:!0}),Cb.createDirentFromStats=void 0;class Db{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}}Cb.createDirentFromStats=function(e,t){return new Db(e,t)};var Ob={};Object.defineProperty(Ob,"__esModule",{value:!0}),Ob.removeLeadingDotSegment=Ob.escape=Ob.makeAbsolute=Ob.unixify=void 0;const Nb=A.default,jb=2,Pb=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;Ob.unixify=function(e){return e.replace(/\\/g,"/")},Ob.makeAbsolute=function(e,t){return Nb.resolve(e,t)},Ob.escape=function(e){return e.replace(Pb,"\\$2")},Ob.removeLeadingDotSegment=function(e){if("."===e.charAt(0)){const t=e.charAt(1);if("/"===t||"\\"===t)return e.slice(jb)}return e};var Tb={},Ab=function(e){if("string"!=typeof e||""===e)return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1},Rb={"{":"}","(":")","[":"]"},Ib=function(e){if("!"===e[0])return!0;for(var t=0,n=-2,r=-2,a=-2,i=-2,o=-2;t<e.length;){if("*"===e[t])return!0;if("?"===e[t+1]&&/[\].+)]/.test(e[t]))return!0;if(-1!==r&&"["===e[t]&&"]"!==e[t+1]&&(r<t&&(r=e.indexOf("]",t)),r>t)){if(-1===o||o>r)return!0;if(-1===(o=e.indexOf("\\",t))||o>r)return!0}if(-1!==a&&"{"===e[t]&&"}"!==e[t+1]&&(a=e.indexOf("}",t))>t&&(-1===(o=e.indexOf("\\",t))||o>a))return!0;if(-1!==i&&"("===e[t]&&"?"===e[t+1]&&/[:!=]/.test(e[t+2])&&")"!==e[t+3]&&(i=e.indexOf(")",t))>t&&(-1===(o=e.indexOf("\\",t))||o>i))return!0;if(-1!==n&&"("===e[t]&&"|"!==e[t+1]&&(n<t&&(n=e.indexOf("|",t)),-1!==n&&")"!==e[n+1]&&(i=e.indexOf(")",n))>n&&(-1===(o=e.indexOf("\\",n))||o>i)))return!0;if("\\"===e[t]){var s=e[t+1];t+=2;var u=Rb[s];if(u){var l=e.indexOf(u,t);-1!==l&&(t=l+1)}if("!"===e[t])return!0}else t++}return!1},Mb=function(e){if("!"===e[0])return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if("\\"===e[t]){var n=e[t+1];t+=2;var r=Rb[n];if(r){var a=e.indexOf(r,t);-1!==a&&(t=a+1)}if("!"===e[t])return!0}else t++}return!1},Lb=function(e,t){if("string"!=typeof e||""===e)return!1;if(Ab(e))return!0;var n=Ib;return t&&!1===t.strict&&(n=Mb),n(e)},Fb=Lb,zb=A.default.posix.dirname,Bb="win32"===M.default.platform(),Ub=/\\/g,qb=/[\{\[].*[\}\]]$/,$b=/(^|[^\\])([\{\[]|\([^\)]+$)/,Vb=/\\([\!\*\?\|\[\]\(\)\{\}])/g,Hb=function(e,t){Object.assign({flipBackslashes:!0},t).flipBackslashes&&Bb&&e.indexOf("/")<0&&(e=e.replace(Ub,"/")),qb.test(e)&&(e+="/"),e+="a";do{e=zb(e)}while(Fb(e)||$b.test(e));return e.replace(Vb,"$1")},Wb={};
|
|
515
515
|
/*!
|
|
516
516
|
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
517
517
|
*
|
|
@@ -548,7 +548,7 @@ const Yb=function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.
|
|
|
548
548
|
* @param {GitUrl} obj The parsed Git url object.
|
|
549
549
|
* @return {String} token prefix
|
|
550
550
|
*/
|
|
551
|
-
function(e){if("bitbucket.org"===e.source)return"x-token-auth:"+e.token+"@";return e.token+"@"}(e):e.user&&(e.protocols.includes("http")||e.protocols.includes("https"))?e.user+"@":"")+e.resource+n+"/"+function(e){if("bitbucket-server"===e.source)return"scm/"+e.full_name;return""+e.full_name}(e)+a;default:return e.href}};var VA=$A,HA=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(OA,"__esModule",{value:!0}),OA.getRepositoryName=void 0;const WA=HA(VA);var GA;function KA(){if(GA)return DA;GA=1;var e=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(DA,"__esModule",{value:!0}),DA.getDefaultRemote=void 0;const t=e(R.default),n=e(A.default),r=uR(),a=OA,i=bA;return DA.getDefaultRemote=function(e){const o="string"==typeof e?{cwd:e}:e,{cwd:s,strict:u,verbose:l}=o,c=e=>l&&console.log(e),p=e=>{if(u)throw new Error(e);c(e)},d=(0,r.findGitRoot)(s);let f={};const m=n.default.join(d,"package.json");try{f=JSON.parse(t.default.readFileSync(m,"utf8").trim())}catch(e){p(`Could not read "${m}"`)}const{repository:h}=f,g="string"==typeof h?h:h&&h.url||"";g||console.log(`Valid "repository" key not found in "${m}". Consider adding this info for more accurate git remote detection.`);const y=(0,a.getRepositoryName)(g),v=(0,i.git)(["remote","-v"],{cwd:s});v.success||p(`Could not determine available git remotes under "${s}"`);const b={};if(v.stdout.split("\n").forEach((e=>{const[t,n]=e.split(/\s+/),r=(0,a.getRepositoryName)(n);r&&(b[r]=t)})),y){if(b[y])return b[y];p(`Could not find remote pointing to repository "${y}".`)}const w=Object.values(b),_=["upstream","origin",...w];for(const e of _)if(w.includes(e))return c(`Default to remote "${e}"`),e;return p(`Could not find any remotes in git repo at "${d}".`),c('Assuming default remote "origin".'),"origin"},DA}OA.getRepositoryName=function(e){var t;try{let n=e.replace("/_optimized/","/").replace("/DefaultCollection/","/");const r=(0,WA.default)(n),a=n.includes(".visualstudio.com"),i=n.includes("dev.azure.com");if(!a&&!i)return r.full_name;const o=r.full_name.match(/(vs-ssh\.visualstudio\.com|ssh\.dev\.azure\.com):v\d+\/([^/]+)\/([^/]+)/);if(o)return`${o[2]}/${o[3]}/${r.name}`;let s=r.organization;return!s&&a&&(s=null===(t=r.resource.match(/([^.@]+)\.visualstudio\.com/))||void 0===t?void 0:t[1]),`${s}/${r.owner}/${r.name}`}catch(e){return""}};var YA={},QA={};Object.defineProperty(QA,"__esModule",{value:!0}),QA.listAllTrackedFiles=QA.getDefaultBranch=QA.parseRemoteBranch=QA.getRemoteBranch=QA.getParentBranch=QA.revertLocalChanges=QA.stageAndCommit=QA.commit=QA.stage=QA.init=QA.getFileAddedHash=QA.getCurrentHash=QA.getShortBranchName=QA.getFullBranchRef=QA.getBranchName=QA.getUserEmail=QA.getRecentCommitMessages=QA.getStagedChanges=QA.getChangesBetweenRefs=QA.getBranchChanges=QA.getChanges=QA.getUnstagedChanges=QA.fetchRemoteBranch=QA.fetchRemote=QA.getUntrackedChanges=void 0;const XA=bA;function JA(e,t,n,r,a){try{return nR((0,XA.git)(["--no-pager","diff","--name-only","--relative",...n,`${e}...${t}`,...r?["--",r]:[]],{cwd:a}))}catch(n){throw new XA.GitError(`Cannot gather information about change between refs changes (${e} to ${t})`,n)}}function ZA(e){try{const t=(0,XA.git)(["rev-parse","--abbrev-ref","HEAD"],{cwd:e});return t.success?t.stdout:null}catch(e){throw new XA.GitError("Cannot get branch name",e)}}function eR(e,t){try{e.forEach((e=>{(0,XA.git)(["add",e],{cwd:t})}))}catch(e){throw new XA.GitError("Cannot stage changes",e)}}function tR(e,t,n=[]){try{const r=(0,XA.git)(["commit","-m",e,...n],{cwd:t});if(!r.success)throw new Error(`Cannot commit changes: ${r.stdout} ${r.stderr}`)}catch(e){throw new XA.GitError("Cannot commit changes",e)}}function nR(e){return e.success?e.stdout.split(/\n/).map((e=>e.trim())).filter((e=>!!e&&!e.includes("node_modules"))):[]}var rR,aR,iR,oR;function sR(){return aR||(aR=1,function(e){var t=oe&&oe.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=oe&&oe.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(bA,e),n(KA(),e),n(function(){if(rR)return YA;rR=1,Object.defineProperty(YA,"__esModule",{value:!0}),YA.getDefaultRemoteBranch=void 0;const e=KA(),t=bA,n=QA;return YA.getDefaultRemoteBranch=function(...r){var a;const[i,o]=r,s="string"==typeof i?{branch:i,cwd:o}:i,{cwd:u,branch:l}=s,c=(0,e.getDefaultRemote)(s);if(l)return`${c}/${l}`;const p=(0,t.git)(["remote","show",c],{cwd:u});let d;return p.success&&(d=null===(a=p.stdout.split(/\n/).find((e=>e.includes("HEAD branch"))))||void 0===a?void 0:a.replace(/^\s*HEAD branch:\s+/,"")),`${c}/${d||(0,n.getDefaultBranch)(u)}`},YA}(),e),n(QA,e)}(vA)),vA}function uR(){if(iR)return Zj;iR=1;var e=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zj,"__esModule",{value:!0}),Zj.isChildOf=Zj.findProjectRoot=Zj.findPackageRoot=Zj.findGitRoot=Zj.searchUp=void 0;const t=e(A.default),n=e(R.default),r=yA(),a=sR();function i(e,r){const a="string"==typeof e?[e]:e,i=t.default.parse(r).root;let o;for(;!o&&r!==i&&(o=a.find((e=>n.default.existsSync(t.default.join(r,e)))),!o);)r=t.default.dirname(r);return o?t.default.join(r,o):void 0}function o(e){const n=(0,a.git)(["rev-parse","--show-toplevel"],{cwd:e});if(!n.success)throw new Error(`Directory "${e}" is not in a git repository`);return t.default.normalize(n.stdout)}return Zj.searchUp=i,Zj.findGitRoot=o,Zj.findPackageRoot=function(e){const n=i("package.json",e);return n&&t.default.dirname(n)},Zj.findProjectRoot=function(e){let t;try{t=(0,r.getWorkspaceRoot)(e)}catch{}return t||o(e)},Zj.isChildOf=function(e,n){const r=t.default.relative(e,n);return/^[.\/\\]+$/.test(r)},Zj}function lR(){if(oR)return Jj;oR=1;var e=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Jj,"__esModule",{value:!0}),Jj.getWorkspaceImplementation=Jj.getWorkspaceImplementationAndLockFile=void 0;const t=e(A.default),n=uR(),r={};function a(e,a=r){if(a[e])return a[e];const i=(0,n.searchUp)(["lerna.json","rush.json","yarn.lock","pnpm-workspace.yaml","package-lock.json"],e);if(i){switch(t.default.basename(i)){case"lerna.json":a[e]={implementation:"lerna",lockFile:i};break;case"yarn.lock":a[e]={implementation:"yarn",lockFile:i};break;case"pnpm-workspace.yaml":a[e]={implementation:"pnpm",lockFile:i};break;case"rush.json":a[e]={implementation:"rush",lockFile:i};break;case"package-lock.json":a[e]={implementation:"npm",lockFile:i}}return a[e]}}return Jj.getWorkspaceImplementationAndLockFile=a,Jj.getWorkspaceImplementation=function(e,t=r){var n;return null===(n=a(e,t))||void 0===n?void 0:n.implementation},Jj}QA.getUntrackedChanges=function(e){try{return nR((0,XA.git)(["ls-files","--others","--exclude-standard"],{cwd:e}))}catch(e){throw new XA.GitError("Cannot gather information about untracked changes",e)}},QA.fetchRemote=function(e,t){if(!(0,XA.git)(["fetch","--",e],{cwd:t}).success)throw new XA.GitError(`Cannot fetch remote "${e}"`)},QA.fetchRemoteBranch=function(e,t,n){if(!(0,XA.git)(["fetch","--",e,t],{cwd:n}).success)throw new XA.GitError(`Cannot fetch branch "${t}" from remote "${e}"`)},QA.getUnstagedChanges=function(e){try{return nR((0,XA.git)(["--no-pager","diff","--name-only","--relative"],{cwd:e}))}catch(e){throw new XA.GitError("Cannot gather information about unstaged changes",e)}},QA.getChanges=function(e,t){try{return nR((0,XA.git)(["--no-pager","diff","--relative","--name-only",e+"..."],{cwd:t}))}catch(e){throw new XA.GitError("Cannot gather information about changes",e)}},QA.getBranchChanges=function(e,t){return JA(e,"",[],"",t)},QA.getChangesBetweenRefs=JA,QA.getStagedChanges=function(e){try{return nR((0,XA.git)(["--no-pager","diff","--relative","--staged","--name-only"],{cwd:e}))}catch(e){throw new XA.GitError("Cannot gather information about staged changes",e)}},QA.getRecentCommitMessages=function(e,t){try{const n=(0,XA.git)(["log","--decorate","--pretty=format:%s",`${e}..HEAD`],{cwd:t});return n.success?n.stdout.trim().split(/\n/).map((e=>e.trim())):[]}catch(e){throw new XA.GitError("Cannot gather information about recent commits",e)}},QA.getUserEmail=function(e){try{const t=(0,XA.git)(["config","user.email"],{cwd:e});return t.success?t.stdout:null}catch(e){throw new XA.GitError("Cannot gather information about user.email",e)}},QA.getBranchName=ZA,QA.getFullBranchRef=function(e,t){const n=(0,XA.git)(["show-ref","--heads",e],{cwd:t});return n.success?n.stdout.split(" ")[1]:null},QA.getShortBranchName=function(e,t){const n=(0,XA.git)(["name-rev","--name-only",e],{cwd:t});return n.success?n.stdout:null},QA.getCurrentHash=function(e){try{const t=(0,XA.git)(["rev-parse","HEAD"],{cwd:e});return t.success?t.stdout:null}catch(e){throw new XA.GitError("Cannot get current git hash",e)}},QA.getFileAddedHash=function(e,t){const n=(0,XA.git)(["rev-list","HEAD",e],{cwd:t});if(n.success)return n.stdout.trim().split("\n").slice(-1)[0]},QA.init=function(e,t,n){(0,XA.git)(["init"],{cwd:e});const r=(0,XA.git)(["config","--list"],{cwd:e}).stdout.split("\n");if(!r.find((e=>e.includes("user.name")))){if(!n)throw new XA.GitError("must include a username when initializing git repo");(0,XA.git)(["config","user.name",n],{cwd:e})}if(!r.find((e=>e.includes("user.email")))){if(!t)throw new Error("must include a email when initializing git repo");(0,XA.git)(["config","user.email",t],{cwd:e})}},QA.stage=eR,QA.commit=tR,QA.stageAndCommit=function(e,t,n,r=[]){eR(e,n),tR(t,n,r)},QA.revertLocalChanges=function(e){const t=`workspace-tools_${(new Date).getTime()}`;(0,XA.git)(["stash","push","-u","-m",t],{cwd:e});const n=(0,XA.git)(["stash","list"]);if(n.success){const e=n.stdout.split(/\n/).find((e=>e.includes(t)));if(e){const t=e.match(/^[^:]+/);if(t)return(0,XA.git)(["stash","drop",t[0]]),!0}}return!1},QA.getParentBranch=function(e){const t=ZA(e);if(!t||"HEAD"===t)return null;const n=(0,XA.git)(["show-branch","-a"],{cwd:e});if(n.success){const e=n.stdout.split(/\n/).find((e=>e.includes("*")&&!e.includes(t)&&!e.includes("publish_"))),r=null==e?void 0:e.match(/\[(.*)\]/);return r?r[1]:null}return null},QA.getRemoteBranch=function(e,t){const n=(0,XA.git)(["rev-parse","--abbrev-ref","--symbolic-full-name",`${e}@{u}`],{cwd:t});return n.success?n.stdout.trim():null},QA.parseRemoteBranch=function(e){const t=e.indexOf("/",0);return{remote:e.substring(0,t),remoteBranch:e.substring(t+1)}},QA.getDefaultBranch=function(e){const t=(0,XA.git)(["config","init.defaultBranch"],{cwd:e});return t.success?t.stdout.trim():"master"},QA.listAllTrackedFiles=function(e,t){const n=(0,XA.git)(["ls-files",...e],{cwd:t});return n.success&&n.stdout.trim()?n.stdout.trim().split(/\n/):[]},Object.defineProperty(Xj,"__esModule",{value:!0}),Xj.getWorkspaces=void 0;const cR=lR(),pR=process.env.PREFERRED_WORKSPACE_MANAGER;Xj.getWorkspaces=function(e){const t=pR||(0,cR.getWorkspaceImplementation)(e);if(!t)return[];switch(t){case"yarn":return hP().getYarnWorkspaces(e);case"pnpm":return UT().getPnpmWorkspaces(e);case"rush":return lA().getRushWorkspaces(e);case"npm":return dA().getNpmWorkspaces(e);case"lerna":return gA().getLernaWorkspaces(e)}},Object.defineProperty(Qj,"__esModule",{value:!0}),Qj._resetCache=Qj.getAllPackageJsonFiles=void 0;const dR=Xj,fR=new Map;Qj.getAllPackageJsonFiles=function(e){if(fR.has(e))return fR.get(e);const t=(0,dR.getWorkspaces)(e).map((e=>e.packageJson.packageJsonPath));return fR.set(e,t),t},Qj._resetCache=function(){fR.clear()};var mR=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kj,"__esModule",{value:!0}),Kj.getPackageInfos=void 0;const hR=mR(R.default),gR=mR(A.default),yR=Yj,vR=Qj;Kj.getPackageInfos=function(e){let t=(0,vR.getAllPackageJsonFiles)(e);0===t.length&&hR.default.existsSync(gR.default.join(e,"package.json"))&&(t=[gR.default.join(e,"package.json")]);const n={};return t&&t.length>0?(t.forEach((e=>{try{const t=JSON.parse(hR.default.readFileSync(e,"utf-8"));n[t.name]=(0,yR.infoFromPackageJson)(t,e)}catch(t){throw t instanceof Error?new Error(`Invalid package.json file detected ${e}: ${t.message}`):t}})),n):{}};var bR={},wR={},_R={};Object.defineProperty(_R,"__esModule",{value:!0}),_R.createDependencyMap=void 0;const xR=Vj;_R.createDependencyMap=function(e,t={withDevDependencies:!0,withPeerDependencies:!1}){const n={dependencies:new Map,dependents:new Map};for(const[r,a]of Object.entries(e)){const i=(0,xR.getPackageDependencies)(a,e,t);for(const e of i)n.dependencies.has(r)||n.dependencies.set(r,new Set),n.dependencies.get(r).add(e),n.dependents.has(e)||n.dependents.set(e,new Set),n.dependents.get(e).add(r)}return n};var kR=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wR,"__esModule",{value:!0}),wR.createPackageGraph=void 0;const SR=_R,ER=kR(nx);function CR(e,t,n,r){var a,i;const o=new Set,s=Object.keys(e),u=r?(0,ER.default)(s,r.namePatterns):s;for(;u.length>0;){const e=u.pop();if(o.has(e))continue;const s=new Set;let l=[],c=[];if(!r||r.includeDependencies){l=[...null!==(a=t.dependencies.get(e))&&void 0!==a?a:[]];for(const e of l)s.add(e)}if(!r||r.includeDependents){c=[...null!==(i=t.dependents.get(e))&&void 0!==i?i:[]];for(const e of c)s.add(e)}if(n(e,l,c),o.add(e),s.size>0)for(const e of s)u.push(e)}}wR.createPackageGraph=function(e,t){const n=new Set,r=[],a=new Set;let i,o,s,u;function l(e,t,i,o){if(n.add(t),!e||e.includeDependencies&&i)for(const e of i){const i=c(t,e);a.has(i)||(a.add(i),r.push({name:t,dependency:e})),n.add(e)}if(!e||e.includeDependents&&o)for(const e of o){const i=c(e,t);a.has(i)||(a.add(i),r.push({name:e,dependency:t})),n.add(e)}}if(t){t=Array.isArray(t)?t:[t];for(const n of t){const t=l.bind(void 0,n);CR(e,p(e,n),t,n)}}else{const t=l.bind(void 0,void 0);CR(e,p(e),t)}return{packages:[...n],dependencies:r};function c(e,t){return`${e}->${t}`}function p(e,t){return t?t.withDevDependencies&&t.withPeerDependencies?(null!=i||(i=(0,SR.createDependencyMap)(e,t)),i):t.withDevDependencies&&!t.withPeerDependencies?(null!=s||(s=(0,SR.createDependencyMap)(e,t)),s):!t.withDevDependencies&&t.withPeerDependencies?(null!=o||(o=(0,SR.createDependencyMap)(e,t)),o):(null!=u||(u=(0,SR.createDependencyMap)(e,t)),u):(0,SR.createDependencyMap)(e)}},function(e){var t=oe&&oe.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=oe&&oe.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.getDependentMap=void 0,n(wR,e),n(_R,e);const r=_R;e.getDependentMap=function(e){return(0,r.createDependencyMap)(e).dependencies}}(bR);var DR={},OR={};Object.defineProperty(OR,"__esModule",{value:!0}),OR.nameAtVersion=void 0,OR.nameAtVersion=function(e,t){return`${e}@${t}`};var NR={};Object.defineProperty(NR,"__esModule",{value:!0}),NR.parsePnpmLock=void 0;const jR=OR;NR.parsePnpmLock=function(e){const t={};if(e&&e.packages)for(const[n,r]of Object.entries(e.packages)){const e=n.split(/\//),a=e.length>3?`${e[1]}/${e[2]}`:e[1],i=e.length>3?e[3]:e[2];t[(0,jR.nameAtVersion)(a,i)]={version:i,dependencies:r.dependencies}}return{object:t,type:"success"}};var PR={};Object.defineProperty(PR,"__esModule",{value:!0}),PR.parseNpmLock=void 0;const TR=OR;PR.parseNpmLock=function(e){var t;return{object:Object.fromEntries(Object.entries(null!==(t=e.dependencies)&&void 0!==t?t:{}).map((([e,t])=>[(0,TR.nameAtVersion)(e,t.version),t]))),type:"success"}};var AR={};function RR(e){return e.includes("npm:")?e.replace(/npm:/,""):e}Object.defineProperty(AR,"__esModule",{value:!0}),AR.parseBerryLock=void 0,AR.parseBerryLock=function(e){var t;const n={};if(e)for(const[r,a]of Object.entries(e)){if("__metadata"===r)continue;const e=r.split(", ");for(const r of e){n[RR(r)]={version:a.version,dependencies:null!==(t=a.dependencies)&&void 0!==t?t:{}}}}return{object:n,type:"success"}};var IR,MR={exports:{}};function LR(){return IR||(IR=1,MR.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=14)}([function(e,t){e.exports=A.default},function(e,t,n){t.__esModule=!0;var r,a=n(173),i=(r=a)&&r.__esModule?r:{default:r};t.default=function(e){return function(){var t=e.apply(this,arguments);return new i.default((function(e,n){return function r(a,o){try{var s=t[a](o),u=s.value}catch(e){return void n(e)}if(!s.done)return i.default.resolve(u).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(u)}("next")}))}}},function(e,t){e.exports=L.default},function(e,t){e.exports=R.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e,t){super(e),this.code=t}}t.MessageError=r,t.ProcessSpawnError=class extends r{constructor(e,t,n){super(e,t),this.process=n}},t.SecurityError=class extends r{},t.ProcessTermError=class extends r{};class a extends Error{constructor(e,t){super(e),this.responseCode=t}}t.ResponseError=a},function(e,t,n){var r;function a(){return r=V(n(1))}Object.defineProperty(t,"__esModule",{value:!0}),t.getFirstSuitableFolder=t.readFirstAvailableStream=t.makeTempDir=t.hardlinksWork=t.writeFilePreservingEol=t.getFileSizeOnDisk=t.walk=t.symlink=t.find=t.readJsonAndFile=t.readJson=t.readFileAny=t.hardlinkBulk=t.copyBulk=t.unlink=t.glob=t.link=t.chmod=t.lstat=t.exists=t.mkdirp=t.stat=t.access=t.rename=t.readdir=t.realpath=t.readlink=t.writeFile=t.open=t.readFileBuffer=t.lockQueue=t.constants=void 0;let i=(o=(0,(r||a()).default)((function*(e,t,n,i){let o=(s=(0,(r||a()).default)((function*(r){const a=r.src,o=r.dest,s=r.type,c=r.onFresh||se,p=r.onDone||se;if(l.has(o.toLowerCase())?i.verbose(`The case-insensitive file ${o} shouldn't be copied twice in one bulk copy`):l.add(o.toLowerCase()),"symlink"===s)return yield Z((T||B()).default.dirname(o)),c(),m.symlink.push({dest:o,linkname:a}),void p();if(t.ignoreBasenames.indexOf((T||B()).default.basename(a))>=0)return;const d=yield te(a);let f,h;d.isDirectory()&&(f=yield X(a));try{h=yield te(o)}catch(e){if("ENOENT"!==e.code)throw e}if(h){const e=d.isSymbolicLink()&&h.isSymbolicLink(),t=d.isDirectory()&&h.isDirectory(),r=d.isFile()&&h.isFile();if(r&&u.has(o))return p(),void i.verbose(i.lang("verboseFileSkipArtifact",a));if(r&&d.size===h.size&&(0,(L||$()).fileDatesEqual)(d.mtime,h.mtime))return p(),void i.verbose(i.lang("verboseFileSkip",a,o,d.size,+d.mtime));if(e){const e=yield Y(a);if(e===(yield Y(o)))return p(),void i.verbose(i.lang("verboseFileSkipSymlink",a,o,e))}if(t){const e=yield X(o);ie(f,"src files not initialised");var g=e,y=Array.isArray(g),v=0;for(g=y?g:g[Symbol.iterator]();;){var b;if(y){if(v>=g.length)break;b=g[v++]}else{if((v=g.next()).done)break;b=v.value}const e=b;if(f.indexOf(e)<0){const t=(T||B()).default.join(o,e);if(n.add(t),(yield te(t)).isDirectory()){var w=yield X(t),_=Array.isArray(w),x=0;for(w=_?w:w[Symbol.iterator]();;){var k;if(_){if(x>=w.length)break;k=w[x++]}else{if((x=w.next()).done)break;k=x.value}const e=k;n.add((T||B()).default.join(t,e))}}}}}}if(h&&h.isSymbolicLink()&&(yield(0,(L||$()).unlink)(o),h=null),d.isSymbolicLink()){c();const e=yield Y(a);m.symlink.push({dest:o,linkname:e}),p()}else if(d.isDirectory()){h||(i.verbose(i.lang("verboseFileFolder",o)),yield Z(o));const t=o.split((T||B()).default.sep);for(;t.length;)l.add(t.join((T||B()).default.sep).toLowerCase()),t.pop();ie(f,"src files not initialised");let n=f.length;n||p();var S=f,E=Array.isArray(S),C=0;for(S=E?S:S[Symbol.iterator]();;){var D;if(E){if(C>=S.length)break;D=S[C++]}else{if((C=S.next()).done)break;D=C.value}const t=D;e.push({dest:(T||B()).default.join(o,t),onFresh:c,onDone:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){0==--n&&p()})),src:(T||B()).default.join(a,t)})}}else{if(!d.isFile())throw new Error(`unsure how to copy this: ${a}`);c(),m.file.push({src:a,dest:o,atime:d.atime,mtime:d.mtime,mode:d.mode}),p()}})),function(e){return s.apply(this,arguments)});var s;const u=new Set(t.artifactFiles||[]),l=new Set;var c=e,p=Array.isArray(c),d=0;for(c=p?c:c[Symbol.iterator]();;){var f;if(p){if(d>=c.length)break;f=c[d++]}else{if((d=c.next()).done)break;f=d.value}const e=f,n=e.onDone;e.onDone=function(){t.onProgress(e.dest),n&&n()}}t.onStart(e.length);const m={file:[],symlink:[],link:[]};for(;e.length;){const t=e.splice(0,re);yield Promise.all(t.map(o))}var h=u,g=Array.isArray(h),y=0;for(h=g?h:h[Symbol.iterator]();;){var v;if(g){if(y>=h.length)break;v=h[y++]}else{if((y=h.next()).done)break;v=y.value}const e=v;n.has(e)&&(i.verbose(i.lang("verboseFilePhantomExtraneous",e)),n.delete(e))}var b=n,w=Array.isArray(b),_=0;for(b=w?b:b[Symbol.iterator]();;){var x;if(w){if(_>=b.length)break;x=b[_++]}else{if((_=b.next()).done)break;x=_.value}const e=x;l.has(e.toLowerCase())&&n.delete(e)}return m})),function(e,t,n,r){return o.apply(this,arguments)});var o;let s=(u=(0,(r||a()).default)((function*(e,t,n,i){let o=(s=(0,(r||a()).default)((function*(r){const a=r.src,o=r.dest,s=r.onFresh||se,c=r.onDone||se;if(l.has(o.toLowerCase()))return void c();if(l.add(o.toLowerCase()),t.ignoreBasenames.indexOf((T||B()).default.basename(a))>=0)return;const p=yield te(a);let d;p.isDirectory()&&(d=yield X(a));const f=yield ee(o);if(f){const e=yield te(o),t=p.isSymbolicLink()&&e.isSymbolicLink(),r=p.isDirectory()&&e.isDirectory(),s=p.isFile()&&e.isFile();if(p.mode!==e.mode)try{yield J(o,p.mode)}catch(e){i.verbose(e)}if(s&&u.has(o))return c(),void i.verbose(i.lang("verboseFileSkipArtifact",a));if(s&&null!==p.ino&&p.ino===e.ino)return c(),void i.verbose(i.lang("verboseFileSkip",a,o,p.ino));if(t){const e=yield Y(a);if(e===(yield Y(o)))return c(),void i.verbose(i.lang("verboseFileSkipSymlink",a,o,e))}if(r){const e=yield X(o);ie(d,"src files not initialised");var h=e,g=Array.isArray(h),y=0;for(h=g?h:h[Symbol.iterator]();;){var v;if(g){if(y>=h.length)break;v=h[y++]}else{if((y=h.next()).done)break;v=y.value}const e=v;if(d.indexOf(e)<0){const t=(T||B()).default.join(o,e);if(n.add(t),(yield te(t)).isDirectory()){var b=yield X(t),w=Array.isArray(b),_=0;for(b=w?b:b[Symbol.iterator]();;){var x;if(w){if(_>=b.length)break;x=b[_++]}else{if((_=b.next()).done)break;x=_.value}const e=x;n.add((T||B()).default.join(t,e))}}}}}}if(p.isSymbolicLink()){s();const e=yield Y(a);m.symlink.push({dest:o,linkname:e}),c()}else if(p.isDirectory()){i.verbose(i.lang("verboseFileFolder",o)),yield Z(o);const t=o.split((T||B()).default.sep);for(;t.length;)l.add(t.join((T||B()).default.sep).toLowerCase()),t.pop();ie(d,"src files not initialised");let n=d.length;n||c();var k=d,S=Array.isArray(k),E=0;for(k=S?k:k[Symbol.iterator]();;){var C;if(S){if(E>=k.length)break;C=k[E++]}else{if((E=k.next()).done)break;C=E.value}const t=C;e.push({onFresh:s,src:(T||B()).default.join(a,t),dest:(T||B()).default.join(o,t),onDone:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){0==--n&&c()}))})}}else{if(!p.isFile())throw new Error(`unsure how to copy this: ${a}`);s(),m.link.push({src:a,dest:o,removeDest:f}),c()}})),function(e){return s.apply(this,arguments)});var s;const u=new Set(t.artifactFiles||[]),l=new Set;var c=e,p=Array.isArray(c),d=0;for(c=p?c:c[Symbol.iterator]();;){var f;if(p){if(d>=c.length)break;f=c[d++]}else{if((d=c.next()).done)break;f=d.value}const e=f,n=e.onDone||se;e.onDone=function(){t.onProgress(e.dest),n()}}t.onStart(e.length);const m={file:[],symlink:[],link:[]};for(;e.length;){const t=e.splice(0,re);yield Promise.all(t.map(o))}var h=u,g=Array.isArray(h),y=0;for(h=g?h:h[Symbol.iterator]();;){var v;if(g){if(y>=h.length)break;v=h[y++]}else{if((y=h.next()).done)break;v=y.value}const e=v;n.has(e)&&(i.verbose(i.lang("verboseFilePhantomExtraneous",e)),n.delete(e))}var b=n,w=Array.isArray(b),_=0;for(b=w?b:b[Symbol.iterator]();;){var x;if(w){if(_>=b.length)break;x=b[_++]}else{if((_=b.next()).done)break;x=_.value}const e=x;l.has(e.toLowerCase())&&n.delete(e)}return m})),function(e,t,n,r){return u.apply(this,arguments)});var u;let l=t.copyBulk=(c=(0,(r||a()).default)((function*(e,t,n){const o={onStart:n&&n.onStart||se,onProgress:n&&n.onProgress||se,possibleExtraneous:n?n.possibleExtraneous:new Set,ignoreBasenames:n&&n.ignoreBasenames||[],artifactFiles:n&&n.artifactFiles||[]},s=yield i(e,o,o.possibleExtraneous,t);o.onStart(s.file.length+s.symlink.length+s.link.length);const u=s.file,l=new Map;var c;yield(R||U()).queue(u,(c=(0,(r||a()).default)((function*(e){let n;for(;n=l.get(e.dest);)yield n;t.verbose(t.lang("verboseFileCopy",e.src,e.dest));const r=(0,(L||$()).copyFile)(e,(function(){return l.delete(e.dest)}));return l.set(e.dest,r),o.onProgress(e.dest),r})),function(e){return c.apply(this,arguments)}),re);const p=s.symlink;yield(R||U()).queue(p,(function(e){const n=(T||B()).default.resolve((T||B()).default.dirname(e.dest),e.linkname);return t.verbose(t.lang("verboseFileSymlink",e.dest,n)),y(n,e.dest)}))})),function(e,t,n){return c.apply(this,arguments)});var c,p,d,f;t.hardlinkBulk=(p=(0,(r||a()).default)((function*(e,t,n){const i={onStart:n&&n.onStart||se,onProgress:n&&n.onProgress||se,possibleExtraneous:n?n.possibleExtraneous:new Set,artifactFiles:n&&n.artifactFiles||[],ignoreBasenames:[]},o=yield s(e,i,i.possibleExtraneous,t);i.onStart(o.file.length+o.symlink.length+o.link.length);const u=o.link;var l;yield(R||U()).queue(u,(l=(0,(r||a()).default)((function*(e){t.verbose(t.lang("verboseFileLink",e.src,e.dest)),e.removeDest&&(yield(0,(L||$()).unlink)(e.dest)),yield ne(e.src,e.dest)})),function(e){return l.apply(this,arguments)}),re);const c=o.symlink;yield(R||U()).queue(c,(function(e){const n=(T||B()).default.resolve((T||B()).default.dirname(e.dest),e.linkname);return t.verbose(t.lang("verboseFileSymlink",e.dest,n)),y(n,e.dest)}))})),function(e,t,n){return p.apply(this,arguments)}),t.readFileAny=(d=(0,(r||a()).default)((function*(e){var t=e,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var a;if(n){if(r>=t.length)break;a=t[r++]}else{if((r=t.next()).done)break;a=r.value}const e=a;if(yield ee(e))return le(e)}return null})),function(e){return d.apply(this,arguments)}),t.readJson=(f=(0,(r||a()).default)((function*(e){return(yield m(e)).object})),function(e){return f.apply(this,arguments)});let m=t.readJsonAndFile=(h=(0,(r||a()).default)((function*(e){const t=yield le(e);try{return{object:(0,(M||(M=V(n(20)))).default)(JSON.parse(oe(t))),content:t}}catch(t){throw t.message=`${e}: ${t.message}`,t}})),function(e){return h.apply(this,arguments)});var h,g;t.find=(g=(0,(r||a()).default)((function*(e,t){const n=t.split((T||B()).default.sep);for(;n.length;){const t=n.concat(e).join((T||B()).default.sep);if(yield ee(t))return t;n.pop()}return!1})),function(e,t){return g.apply(this,arguments)});let y=t.symlink=(v=(0,(r||a()).default)((function*(e,t){try{if((yield te(t)).isSymbolicLink()&&(yield Q(t))===e)return}catch(e){if("ENOENT"!==e.code)throw e}if(yield(0,(L||$()).unlink)(t),"win32"===process.platform)yield ae(e,t,"junction");else{let n;try{n=(T||B()).default.relative((N||F()).default.realpathSync((T||B()).default.dirname(t)),(N||F()).default.realpathSync(e))}catch(r){if("ENOENT"!==r.code)throw r;n=(T||B()).default.relative((T||B()).default.dirname(t),e)}yield ae(n||".",t)}})),function(e,t){return v.apply(this,arguments)});var v;let b=t.walk=(w=(0,(r||a()).default)((function*(e,t,n=new Set){let r=[],a=yield X(e);n.size&&(a=a.filter((function(e){return!n.has(e)})));var i=a,o=Array.isArray(i),s=0;for(i=o?i:i[Symbol.iterator]();;){var u;if(o){if(s>=i.length)break;u=i[s++]}else{if((s=i.next()).done)break;u=s.value}const a=u,l=t?(T||B()).default.join(t,a):a,c=(T||B()).default.join(e,a),p=yield te(c);r.push({relative:l,basename:a,absolute:c,mtime:+p.mtime}),p.isDirectory()&&(r=r.concat(yield b(c,l,n)))}return r})),function(e,t){return w.apply(this,arguments)});var w,_;t.getFileSizeOnDisk=(_=(0,(r||a()).default)((function*(e){const t=yield te(e),n=t.size,r=t.blksize;return Math.ceil(n/r)*r})),function(e){return _.apply(this,arguments)});let x=(k=(0,(r||a()).default)((function*(e){if(!(yield ee(e)))return;const t=yield W(e);for(let e=0;e<t.length;++e){if(t[e]===pe)return"\r\n";if(t[e]===de)return"\n"}})),function(e){return k.apply(this,arguments)});var k,S,E,C,D,O,N,j,P,T,A,R,I,M,L;function F(){return N=V(n(3))}function z(){return P=V(n(36))}function B(){return T=V(n(0))}function U(){return R=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(40))}function q(){return I=n(40)}function $(){return L=n(164)}function V(e){return e&&e.__esModule?e:{default:e}}t.writeFilePreservingEol=(S=(0,(r||a()).default)((function*(e,t){const n=(yield x(e))||(P||z()).default.EOL;"\n"!==n&&(t=t.replace(/\n/g,n)),yield K(e,t)})),function(e,t){return S.apply(this,arguments)}),t.hardlinksWork=(E=(0,(r||a()).default)((function*(e){const t="test-file"+Math.random(),n=(T||B()).default.join(e,t),r=(T||B()).default.join(e,t+"-link");try{yield K(n,"test"),yield ne(n,r)}catch(e){return!1}finally{yield(0,(L||$()).unlink)(n),yield(0,(L||$()).unlink)(r)}return!0})),function(e){return E.apply(this,arguments)}),t.makeTempDir=(C=(0,(r||a()).default)((function*(e){const t=(T||B()).default.join((P||z()).default.tmpdir(),`yarn-${e||""}-${Date.now()}-${Math.random()}`);return yield(0,(L||$()).unlink)(t),yield Z(t),t})),function(e){return C.apply(this,arguments)}),t.readFirstAvailableStream=(D=(0,(r||a()).default)((function*(e){var t=e,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var a;if(n){if(r>=t.length)break;a=t[r++]}else{if((r=t.next()).done)break;a=r.value}const e=a;try{const t=yield G(e,"r");return(N||F()).default.createReadStream(e,{fd:t})}catch(e){}}return null})),function(e){return D.apply(this,arguments)}),t.getFirstSuitableFolder=(O=(0,(r||a()).default)((function*(e,t=H.W_OK|H.X_OK){const n={skipped:[],folder:null};var r=e,a=Array.isArray(r),i=0;for(r=a?r:r[Symbol.iterator]();;){var o;if(a){if(i>=r.length)break;o=r[i++]}else{if((i=r.next()).done)break;o=i.value}const e=o;try{return yield Z(e),yield J(e,t),n.folder=e,n}catch(t){n.skipped.push({error:t,folder:e})}}return n})),function(e){return O.apply(this,arguments)}),t.copy=function(e,t,n){return l([{src:e,dest:t}],n)},t.readFile=le,t.readFileRaw=function(e){return ue(e,"binary")},t.normalizeOS=ce;const H=t.constants=void 0!==(N||F()).default.constants?(N||F()).default.constants:{R_OK:(N||F()).default.R_OK,W_OK:(N||F()).default.W_OK,X_OK:(N||F()).default.X_OK};t.lockQueue=new((A||(A=V(n(84)))).default)("fs lock");const W=t.readFileBuffer=(0,(I||q()).promisify)((N||F()).default.readFile),G=t.open=(0,(I||q()).promisify)((N||F()).default.open),K=t.writeFile=(0,(I||q()).promisify)((N||F()).default.writeFile),Y=t.readlink=(0,(I||q()).promisify)((N||F()).default.readlink),Q=t.realpath=(0,(I||q()).promisify)((N||F()).default.realpath),X=t.readdir=(0,(I||q()).promisify)((N||F()).default.readdir);t.rename=(0,(I||q()).promisify)((N||F()).default.rename);const J=t.access=(0,(I||q()).promisify)((N||F()).default.access);t.stat=(0,(I||q()).promisify)((N||F()).default.stat);const Z=t.mkdirp=(0,(I||q()).promisify)(n(116)),ee=t.exists=(0,(I||q()).promisify)((N||F()).default.exists,!0),te=t.lstat=(0,(I||q()).promisify)((N||F()).default.lstat);t.chmod=(0,(I||q()).promisify)((N||F()).default.chmod);const ne=t.link=(0,(I||q()).promisify)((N||F()).default.link);t.glob=(0,(I||q()).promisify)((j||(j=V(n(75)))).default),t.unlink=(L||$()).unlink;const re=(N||F()).default.copyFile?128:4,ae=(0,(I||q()).promisify)((N||F()).default.symlink),ie=n(7),oe=n(122),se=()=>{};function ue(e,t){return new Promise(((n,r)=>{(N||F()).default.readFile(e,t,(function(e,t){e?r(e):n(t)}))}))}function le(e){return ue(e,"utf8").then(ce)}function ce(e){return e.replace(/\r\n/g,"\n")}const pe="\r".charCodeAt(0),de="\n".charCodeAt(0)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getPathKey=m;const r=n(36),a=n(0),i=n(45).default;var o=n(171);const s=o.getCacheDir,u=o.getConfigDir,l=o.getDataDir,c=n(227),p=t.DEPENDENCY_TYPES=["devDependencies","dependencies","optionalDependencies","peerDependencies"],d=t.RESOLUTIONS="resolutions";t.MANIFEST_FIELDS=[d,...p],t.SUPPORTED_NODE_VERSIONS="^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0",t.YARN_REGISTRY="https://registry.yarnpkg.com",t.YARN_DOCS="https://yarnpkg.com/en/docs/cli/",t.YARN_INSTALLER_SH="https://yarnpkg.com/install.sh",t.YARN_INSTALLER_MSI="https://yarnpkg.com/latest.msi",t.SELF_UPDATE_VERSION_URL="https://yarnpkg.com/latest-version",t.CACHE_VERSION=2,t.LOCKFILE_VERSION=1,t.NETWORK_CONCURRENCY=8,t.NETWORK_TIMEOUT=3e4,t.CHILD_CONCURRENCY=5,t.REQUIRED_PACKAGE_KEYS=["name","version","_uid"],t.PREFERRED_MODULE_CACHE_DIRECTORIES=function(){const e=[s()];return process.getuid&&e.push(a.join(r.tmpdir(),`.yarn-cache-${process.getuid()}`)),e.push(a.join(r.tmpdir(),".yarn-cache")),e}(),t.CONFIG_DIRECTORY=u();const f=t.DATA_DIRECTORY=l();function m(e,t){let n="PATH";if("win32"===e){n="Path";for(const e in t)"path"===e.toLowerCase()&&(n=e)}return n}t.LINK_REGISTRY_DIRECTORY=a.join(f,"link"),t.GLOBAL_MODULE_DIRECTORY=a.join(f,"global"),t.NODE_BIN_PATH=process.execPath,t.YARN_BIN_PATH=c?__filename:a.join(__dirname,"..","bin","yarn.js"),t.NODE_MODULES_FOLDER="node_modules",t.NODE_PACKAGE_JSON="package.json",t.POSIX_GLOBAL_PREFIX=`${process.env.DESTDIR||""}/usr/local`,t.FALLBACK_GLOBAL_PREFIX=a.join(i,".yarn"),t.META_FOLDER=".yarn-meta",t.INTEGRITY_FILENAME=".yarn-integrity",t.LOCKFILE_FILENAME="yarn.lock",t.METADATA_FILENAME=".yarn-metadata.json",t.TARBALL_FILENAME=".yarn-tarball.tgz",t.CLEAN_FILENAME=".yarnclean",t.NPM_LOCK_FILENAME="package-lock.json",t.NPM_SHRINKWRAP_FILENAME="npm-shrinkwrap.json",t.DEFAULT_INDENT=" ",t.SINGLE_INSTANCE_PORT=31997,t.SINGLE_INSTANCE_FILENAME=".yarn-single-instance",t.ENV_PATH_KEY=m(process.platform,process.env),t.VERSION_COLOR_SCHEME={major:"red",premajor:"red",minor:"yellow",preminor:"yellow",patch:"green",prepatch:"green",prerelease:"red",unchanged:"white",unknown:"red"}},function(e,t,n){var r=process.env.NODE_ENV;e.exports=function(e,t,n,a,i,o,s,u){if("production"!==r&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,a,i,o,s,u],p=0;(l=new Error(t.replace(/%s/g,(function(){return c[p++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},,function(e,t){e.exports=q.default},,function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.sortAlpha=function(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){const n=e.charCodeAt(r),a=t.charCodeAt(r);if(n!==a)return n-a}return e.length-t.length},t.entries=function(e){const t=[];if(e)for(const n in e)t.push([n,e[n]]);return t},t.removePrefix=function(e,t){return e.startsWith(t)&&(e=e.slice(t.length)),e},t.removeSuffix=function(e,t){return e.endsWith(t)?e.slice(0,-t.length):e},t.addSuffix=function(e,t){return e.endsWith(t)?e:e+t},t.hyphenate=function(e){return e.replace(/[A-Z]/g,(e=>"-"+e.charAt(0).toLowerCase()))},t.camelCase=function(e){return/[A-Z]/.test(e)?null:r(e)},t.compareSortedArrays=function(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0},t.sleep=function(e){return new Promise((t=>{setTimeout(t,e)}))};const r=n(176)},function(e,t,n){var r=n(107)("wks"),a=n(111),i=n(11).Symbol,o="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=o&&i[e]||(o?i:a)("Symbol."+e))}).store=r},function(e,t,n){var r,a,i,o,s,u,l,c;function p(){return c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5))}function d(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=t.parse=void 0,Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return d(a||(a=n(81))).default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d(i||(i=n(150))).default}}),t.implodeEntry=b,t.explodeEntry=w;const f=n(7),m=n(0),h=n(55);function g(e){return(0,(s||(s=n(29))).normalizePattern)(e).name}function y(e){return e&&Object.keys(e).length?e:void 0}function v(e){return e.resolved||(e.reference&&e.hash?`${e.reference}#${e.hash}`:null)}function b(e,t){const n=g(e),r=t.integrity?function(e){return e.toString().split(" ").sort().join(" ")}(t.integrity):"",a={name:n===t.name?void 0:t.name,version:t.version,uid:t.uid===t.version?void 0:t.uid,resolved:t.resolved,registry:"npm"===t.registry?void 0:t.registry,dependencies:y(t.dependencies),optionalDependencies:y(t.optionalDependencies),permissions:y(t.permissions),prebuiltVariants:y(t.prebuiltVariants)};return r&&(a.integrity=r),a}function w(e,t){t.optionalDependencies=t.optionalDependencies||{},t.dependencies=t.dependencies||{},t.uid=t.uid||t.version,t.permissions=t.permissions||{},t.registry=t.registry||"npm",t.name=t.name||g(e);const n=t.integrity;return n&&n.isIntegrity&&(t.integrity=h.parse(n)),t}class _{constructor({cache:e,source:t,parseResultType:n}={}){this.source=t||"",this.cache=e,this.parseResultType=n}hasEntriesExistWithoutIntegrity(){if(!this.cache)return!1;for(const e in this.cache)if(!/^.*@(file:|http)/.test(e)&&this.cache[e]&&!this.cache[e].integrity)return!0;return!1}static fromDirectory(e,t){return(0,(r||(r=d(n(1)))).default)((function*(){const r=m.join(e,(l||(l=n(6))).LOCKFILE_FILENAME);let a,i,o="";return(yield(c||p()).exists(r))?(o=yield(c||p()).readFile(r),i=(0,(u||(u=d(n(81)))).default)(o,r),t&&("merge"===i.type?t.info(t.lang("lockfileMerged")):"conflict"===i.type&&t.warn(t.lang("lockfileConflict"))),a=i.object):t&&t.info(t.lang("noLockfileFound")),new _({cache:a,source:o,parseResultType:i&&i.type})}))()}getLocked(e){const t=this.cache;if(!t)return;const n=e in t&&t[e];return"string"==typeof n?this.getLocked(n):n?(w(e,n),n):void 0}removePattern(e){const t=this.cache;t&&delete t[e]}getLockfile(e){const t={},r=new Map;var a=Object.keys(e).sort((o||(o=n(12))).sortAlpha),i=Array.isArray(a),s=0;for(a=i?a:a[Symbol.iterator]();;){var u;if(i){if(s>=a.length)break;u=a[s++]}else{if((s=a.next()).done)break;u=s.value}const n=u,o=e[n],l=o._remote,c=o._reference;f(c,"Package is missing a reference"),f(l,"Package is missing a remote");const p=v(l),d=p&&r.get(p);if(d){t[n]=d,d.name||g(n)===o.name||(d.name=o.name);continue}const m=b(n,{name:o.name,version:o.version,uid:o._uid,resolved:l.resolved,integrity:l.integrity,registry:l.registry,dependencies:o.dependencies,peerDependencies:o.peerDependencies,optionalDependencies:o.optionalDependencies,permissions:c.permissions,prebuiltVariants:o.prebuiltVariants});t[n]=m,p&&r.set(p,m)}return t}}t.default=_},,,function(e,t){e.exports=z.default},,,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t={}){if(Array.isArray(t)){var n=t,r=Array.isArray(n),a=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(a>=n.length)break;i=n[a++]}else{if((a=n.next()).done)break;i=a.value}e(i)}}else if((null!==t&&"object"==typeof t||"function"==typeof t)&&(Object.setPrototypeOf(t,null),"object"==typeof t))for(const n in t)e(t[n]);return t}},,function(e,t){e.exports=B.default},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},,,,function(e,t,n){var r=n(34);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePattern=function(e){let t=!1,n="latest",r=e,a=!1;"@"===r[0]&&(a=!0,r=r.slice(1));const i=r.split("@");return i.length>1&&(r=i.shift(),n=i.join("@"),n?t=!0:n="*"),a&&(r=`@${r}`),{name:r,range:n,hasVersion:t}}},,function(e,t,n){var r=n(50),a=n(106);e.exports=n(33)?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(63),a=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return a(e,t,n)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=o),i(a,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=a(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){e.exports=!n(85)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports={}},function(e,t){e.exports=M.default},,,,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.wait=function(e){return new Promise((t=>{setTimeout(t,e)}))},t.promisify=function(e,t){return function(...n){return new Promise((function(r,a){n.push((function(e,...n){let i=n;n.length<=1&&(i=n[0]),t&&(i=e,e=null),e?a(e):r(i)})),e.apply(null,n)}))}},t.queue=function(e,t,n=1/0){n=Math.min(n,e.length),e=e.slice();const r=[];let a=e.length;return a?new Promise(((i,o)=>{for(let e=0;e<n;e++)s();function s(){const n=e.shift();t(n).then((function(t){r.push(t),a--,0===a?i(r):e.length&&s()}),o)}})):Promise.resolve(r)}},function(e,t,n){var r=n(11),a=n(23),i=n(48),o=n(31),s=n(49),u="prototype",l=function(e,t,n){var c,p,d,f=e&l.F,m=e&l.G,h=e&l.S,g=e&l.P,y=e&l.B,v=e&l.W,b=m?a:a[t]||(a[t]={}),w=b[u],_=m?r:h?r[t]:(r[t]||{})[u];for(c in m&&(n=t),n)(p=!f&&_&&void 0!==_[c])&&s(b,c)||(d=p?_[c]:n[c],b[c]=m&&"function"!=typeof _[c]?n[c]:y&&p?i(d,r):v&&_[c]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[u]=e[u],t}(d):g&&"function"==typeof d?i(Function.call,d):d,g&&((b.virtual||(b.virtual={}))[c]=d,e&l.R&&w&&!w[c]&&o(w,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){try{var r=n(2);if("function"!=typeof r.inherits)throw"";e.exports=r.inherits}catch(t){e.exports=n(224)}},,,function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.home=void 0;const a=n(0),i=t.home=n(36).homedir(),o=(r||(s=n(169),r=s&&s.__esModule?s:{default:s})).default?a.resolve("/usr/local/share"):i;var s;t.default=o},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(46);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(27),a=n(184),i=n(201),o=Object.defineProperty;t.f=n(33)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),a)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},,,,function(e,t){e.exports=P.default},function(e,t,n){const r=n(32).Buffer,a=n(9),i=n(17).Transform,o=["sha256","sha384","sha512"],s=/^[a-z0-9+/]+(?:=?=?)$/i,u=/^([^-]+)-([^?]+)([?\S*]*)$/,l=/^([^-]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)*$/,c=/^[\x21-\x7E]+$/;class p{get isHash(){return!0}constructor(e,t){const n=!(!t||!t.strict);this.source=e.trim();const r=this.source.match(n?l:u);if(!r)return;if(n&&!o.some((e=>e===r[1])))return;this.algorithm=r[1],this.digest=r[2];const a=r[3];this.options=a?a.slice(1).split("?"):[]}hexDigest(){return this.digest&&r.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}toString(e){if(e&&e.strict&&!(o.some((e=>e===this.algorithm))&&this.digest.match(s)&&(this.options||[]).every((e=>e.match(c)))))return"";const t=this.options&&this.options.length?`?${this.options.join("?")}`:"";return`${this.algorithm}-${this.digest}${t}`}}class d{get isIntegrity(){return!0}toJSON(){return this.toString()}toString(e){let t=(e=e||{}).sep||" ";return e.strict&&(t=t.replace(/\S+/g," ")),Object.keys(this).map((n=>this[n].map((t=>p.prototype.toString.call(t,e))).filter((e=>e.length)).join(t))).filter((e=>e.length)).join(t)}concat(e,t){const n="string"==typeof e?e:h(e,t);return f(`${this.toString(t)} ${n}`,t)}hexDigest(){return f(this,{single:!0}).hexDigest()}match(e,t){const n=f(e,t),r=n.pickAlgorithm(t);return this[r]&&n[r]&&this[r].find((e=>n[r].find((t=>e.digest===t.digest))))||!1}pickAlgorithm(e){const t=e&&e.pickAlgorithm||b,n=Object.keys(this);if(!n.length)throw new Error(`No algorithms available for ${JSON.stringify(this.toString())}`);return n.reduce(((e,n)=>t(e,n)||e))}}function f(e,t){if(t=t||{},"string"==typeof e)return m(e,t);if(e.algorithm&&e.digest){const n=new d;return n[e.algorithm]=[e],m(h(n,t),t)}return m(h(e,t),t)}function m(e,t){return t.single?new p(e,t):e.trim().split(/\s+/).reduce(((e,n)=>{const r=new p(n,t);if(r.algorithm&&r.digest){const t=r.algorithm;e[t]||(e[t]=[]),e[t].push(r)}return e}),new d)}function h(e,t){return e.algorithm&&e.digest?p.prototype.toString.call(e,t):"string"==typeof e?h(f(e,t),t):d.prototype.toString.call(e,t)}function g(e){const t=(e=e||{}).integrity&&f(e.integrity,e),n=t&&Object.keys(t).length,r=n&&t.pickAlgorithm(e),o=n&&t[r],s=Array.from(new Set((e.algorithms||["sha512"]).concat(r?[r]:[]))),u=s.map(a.createHash);let l=0;const c=new i({transform(e,t,n){l+=e.length,u.forEach((n=>n.update(e,t))),n(null,e,t)}}).on("end",(()=>{const a=e.options&&e.options.length?`?${e.options.join("?")}`:"",i=f(u.map(((e,t)=>`${s[t]}-${e.digest("base64")}${a}`)).join(" "),e),p=n&&i.match(t,e);if("number"==typeof e.size&&l!==e.size){const n=new Error(`stream size mismatch when checking ${t}.\n Wanted: ${e.size}\n Found: ${l}`);n.code="EBADSIZE",n.found=l,n.expected=e.size,n.sri=t,c.emit("error",n)}else if(e.integrity&&!p){const e=new Error(`${t} integrity checksum failed when using ${r}: wanted ${o} but got ${i}. (${l} bytes)`);e.code="EINTEGRITY",e.found=i,e.expected=o,e.algorithm=r,e.sri=t,c.emit("error",e)}else c.emit("size",l),c.emit("integrity",i),p&&c.emit("verified",p)}));return c}e.exports.parse=f,e.exports.stringify=h,e.exports.fromHex=function(e,t,n){const a=n&&n.options&&n.options.length?`?${n.options.join("?")}`:"";return f(`${t}-${r.from(e,"hex").toString("base64")}${a}`,n)},e.exports.fromData=function(e,t){const n=(t=t||{}).algorithms||["sha512"],r=t.options&&t.options.length?`?${t.options.join("?")}`:"";return n.reduce(((n,i)=>{const o=a.createHash(i).update(e).digest("base64"),s=new p(`${i}-${o}${r}`,t);if(s.algorithm&&s.digest){const e=s.algorithm;n[e]||(n[e]=[]),n[e].push(s)}return n}),new d)},e.exports.fromStream=function(e,t){const n=(t=t||{}).Promise||Promise,r=g(t);return new n(((t,n)=>{let a;e.pipe(r),e.on("error",n),r.on("error",n),r.on("integrity",(e=>{a=e})),r.on("end",(()=>t(a))),r.on("data",(()=>{}))}))},e.exports.checkData=function(e,t,n){if(t=f(t,n=n||{}),!Object.keys(t).length){if(n.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}const r=t.pickAlgorithm(n),i=a.createHash(r).update(e).digest("base64"),o=f({algorithm:r,digest:i}),s=o.match(t,n);if(s||!n.error)return s;if("number"==typeof n.size&&e.length!==n.size){const r=new Error(`data size mismatch when checking ${t}.\n Wanted: ${n.size}\n Found: ${e.length}`);throw r.code="EBADSIZE",r.found=e.length,r.expected=n.size,r.sri=t,r}{const n=new Error(`Integrity checksum failed when using ${r}: Wanted ${t}, but got ${o}. (${e.length} bytes)`);throw n.code="EINTEGRITY",n.found=o,n.expected=t,n.algorithm=r,n.sri=t,n}},e.exports.checkStream=function(e,t,n){const r=(n=n||{}).Promise||Promise,a=g(Object.assign({},n,{integrity:t}));return new r(((t,n)=>{let r;e.pipe(a),e.on("error",n),a.on("error",n),a.on("verified",(e=>{r=e})),a.on("end",(()=>t(r))),a.on("data",(()=>{}))}))},e.exports.integrityStream=g,e.exports.create=function(e){const t=(e=e||{}).algorithms||["sha512"],n=e.options&&e.options.length?`?${e.options.join("?")}`:"",r=t.map(a.createHash);return{update:function(e,t){return r.forEach((n=>n.update(e,t))),this},digest:function(a){return t.reduce(((t,a)=>{const i=r.shift().digest("base64"),o=new p(`${a}-${i}${n}`,e);if(o.algorithm&&o.digest){const e=o.algorithm;t[e]||(t[e]=[]),t[e].push(o)}return t}),new d)}}};const y=new Set(a.getHashes()),v=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter((e=>y.has(e)));function b(e,t){return v.indexOf(e.toLowerCase())>=v.indexOf(t.toLowerCase())?e:t}},,,,,function(e,t,n){e.exports=m,m.Minimatch=h;var r={sep:"/"};try{r=n(0)}catch(e){}var a=m.GLOBSTAR=h.GLOBSTAR={},i=n(175),o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},s="[^/]",u=s+"*?",l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",c="(?:(?!(?:\\/|^)\\.).)*?",p="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{}),d=/\/+/;function f(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function m(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new h(t,n).match(e))}function h(e,t){if(!(this instanceof h))return new h(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function g(e,t){if(t||(t=this instanceof h?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:i(e)}m.filter=function(e,t){return t=t||{},function(n,r,a){return m(n,e,t)}},m.defaults=function(e){if(!e||!Object.keys(e).length)return m;var t=m,n=function(n,r,a){return t.minimatch(n,r,f(e,a))};return n.Minimatch=function(n,r){return new t.Minimatch(n,f(e,r))},n},h.defaults=function(e){return e&&Object.keys(e).length?m.defaults(e).Minimatch:h},h.prototype.debug=function(){},h.prototype.make=function(){if(!this._made){var e=this.pattern,t=this.options;if(t.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error),this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(d)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n}else this.empty=!0;else this.comment=!0}},h.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=this.options,r=0;if(!n.nonegate){for(var a=0,i=e.length;a<i&&"!"===e.charAt(a);a++)t=!t,r++;r&&(this.pattern=e.substr(r)),this.negate=t}},m.braceExpand=function(e,t){return g(e,t)},h.prototype.braceExpand=g,h.prototype.parse=function(e,t){if(e.length>65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return a;if(""===e)return"";var r,i="",l=!!n.nocase,c=!1,d=[],f=[],m=!1,h=-1,g=-1,v="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",b=this;function w(){if(r){switch(r){case"*":i+=u,l=!0;break;case"?":i+=s,l=!0;break;default:i+="\\"+r}b.debug("clearStateChar %j %j",r,i),r=!1}}for(var _,x=0,k=e.length;x<k&&(_=e.charAt(x));x++)if(this.debug("%s\t%s %s %j",e,x,i,_),c&&p[_])i+="\\"+_,c=!1;else switch(_){case"/":return!1;case"\\":w(),c=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,x,i,_),m){this.debug(" in class"),"!"===_&&x===g+1&&(_="^"),i+=_;continue}b.debug("call clearStateChar %j",r),w(),r=_,n.noext&&w();continue;case"(":if(m){i+="(";continue}if(!r){i+="\\(";continue}d.push({type:r,start:x-1,reStart:i.length,open:o[r].open,close:o[r].close}),i+="!"===r?"(?:(?!(?:":"(?:",this.debug("plType %j %j",r,i),r=!1;continue;case")":if(m||!d.length){i+="\\)";continue}w(),l=!0;var S=d.pop();i+=S.close,"!"===S.type&&f.push(S),S.reEnd=i.length;continue;case"|":if(m||!d.length||c){i+="\\|",c=!1;continue}w(),i+="|";continue;case"[":if(w(),m){i+="\\"+_;continue}m=!0,g=x,h=i.length,i+=_;continue;case"]":if(x===g+1||!m){i+="\\"+_,c=!1;continue}if(m){var E=e.substring(g+1,x);try{RegExp("["+E+"]")}catch(e){var C=this.parse(E,y);i=i.substr(0,h)+"\\["+C[0]+"\\]",l=l||C[1],m=!1;continue}}l=!0,m=!1,i+=_;continue;default:w(),c?c=!1:!p[_]||"^"===_&&m||(i+="\\"),i+=_}for(m&&(E=e.substr(g+1),C=this.parse(E,y),i=i.substr(0,h)+"\\["+C[0],l=l||C[1]),S=d.pop();S;S=d.pop()){var D=i.slice(S.reStart+S.open.length);this.debug("setting tail",i,S),D=D.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,n){return n||(n="\\"),t+t+n+"|"})),this.debug("tail=%j\n %s",D,D,S,i);var O="*"===S.type?u:"?"===S.type?s:"\\"+S.type;l=!0,i=i.slice(0,S.reStart)+O+"\\("+D}w(),c&&(i+="\\\\");var N=!1;switch(i.charAt(0)){case".":case"[":case"(":N=!0}for(var j=f.length-1;j>-1;j--){var P=f[j],T=i.slice(0,P.reStart),A=i.slice(P.reStart,P.reEnd-8),R=i.slice(P.reEnd-8,P.reEnd),I=i.slice(P.reEnd);R+=I;var M=T.split("(").length-1,L=I;for(x=0;x<M;x++)L=L.replace(/\)[+*?]?/,"");var F="";""===(I=L)&&t!==y&&(F="$"),i=T+A+I+F+R}if(""!==i&&l&&(i="(?=.)"+i),N&&(i=v+i),t===y)return[i,l];if(!l)return function(e){return e.replace(/\\(.)/g,"$1")}(e);var z=n.nocase?"i":"";try{var B=new RegExp("^"+i+"$",z)}catch(e){return new RegExp("$.")}return B._glob=e,B._src=i,B};var y={};m.makeRe=function(e,t){return new h(e,t||{}).makeRe()},h.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,n=t.noglobstar?u:t.dot?l:c,r=t.nocase?"i":"",i=e.map((function(e){return e.map((function(e){return e===a?n:"string"==typeof e?function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(e):e._src})).join("\\/")})).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,r)}catch(e){this.regexp=!1}return this.regexp},m.match=function(e,t,n){var r=new h(t,n=n||{});return e=e.filter((function(e){return r.match(e)})),r.options.nonull&&!e.length&&e.push(t),e},h.prototype.match=function(e,t){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var n=this.options;"/"!==r.sep&&(e=e.split(r.sep).join("/")),e=e.split(d),this.debug(this.pattern,"split",e);var a,i,o=this.set;for(this.debug(this.pattern,"set",o),i=e.length-1;i>=0&&!(a=e[i]);i--);for(i=0;i<o.length;i++){var s=o[i],u=e;if(n.matchBase&&1===s.length&&(u=[a]),this.matchOne(u,s,t))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate},h.prototype.matchOne=function(e,t,n){var r=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var i=0,o=0,s=e.length,u=t.length;i<s&&o<u;i++,o++){this.debug("matchOne loop");var l,c=t[o],p=e[i];if(this.debug(t,c,p),!1===c)return!1;if(c===a){this.debug("GLOBSTAR",[t,c,p]);var d=i,f=o+1;if(f===u){for(this.debug("** at the end");i<s;i++)if("."===e[i]||".."===e[i]||!r.dot&&"."===e[i].charAt(0))return!1;return!0}for(;d<s;){var m=e[d];if(this.debug("\nglobstar while",e,d,t,f,m),this.matchOne(e.slice(d),t.slice(f),n))return this.debug("globstar found match!",d,s,m),!0;if("."===m||".."===m||!r.dot&&"."===m.charAt(0)){this.debug("dot detected!",e,d,t,f);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!n||(this.debug("\n>>> no match, partial?",e,d,t,f),d!==s))}if("string"==typeof c?(l=r.nocase?p.toLowerCase()===c.toLowerCase():p===c,this.debug("string match",c,p,l)):(l=p.match(c),this.debug("pattern match",c,p,l)),!l)return!1}if(i===s&&o===u)return!0;if(i===s)return n;if(o===u)return i===s-1&&""===e[i];throw new Error("wtf?")}},function(e,t,n){var r=n(123);function a(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function i(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}e.exports=r(a),e.exports.strict=r(i),a.proto=a((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return a(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})}))},,function(e,t){e.exports=J.default},,,,function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(34),a=n(11).document,i=r(a)&&r(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},function(e,t){e.exports=!0},function(e,t,n){var r=n(46);function a(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new a(e)}},function(e,t,n){var r=n(50).f,a=n(49),i=n(13)("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(107)("keys"),a=n(111);e.exports=function(e){return r[e]||(r[e]=a(e))}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(131),a=n(67);e.exports=function(e){return r(a(e))}},function(e,t,n){e.exports=b;var r=n(3),a=n(114),i=n(60);i.Minimatch;var o=n(42),s=n(54).EventEmitter,u=n(0),l=n(22),c=n(76),p=n(218),d=n(115);d.alphasort,d.alphasorti;var f=d.setopts,m=d.ownProp,h=n(223);n(2);var g=d.childrenIgnored,y=d.isIgnored,v=n(61);function b(e,t,n){if("function"==typeof t&&(n=t,t={}),t||(t={}),t.sync){if(n)throw new TypeError("callback provided to sync glob");return p(e,t)}return new _(e,t,n)}b.sync=p;var w=b.GlobSync=p.GlobSync;function _(e,t,n){if("function"==typeof t&&(n=t,t=null),t&&t.sync){if(n)throw new TypeError("callback provided to sync glob");return new w(e,t)}if(!(this instanceof _))return new _(e,t,n);f(this,e,t),this._didRealPath=!1;var r=this.minimatch.set.length;this.matches=new Array(r),"function"==typeof n&&(n=v(n),this.on("error",n),this.on("end",(function(e){n(null,e)})));var a=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===r)return s();for(var i=!0,o=0;o<r;o++)this._process(this.minimatch.set[o],o,!1,s);function s(){--a._processing,a._processing<=0&&(i?process.nextTick((function(){a._finish()})):a._finish())}i=!1}b.glob=b,b.hasMagic=function(e,t){var n=function(e,t){if(null===t||"object"!=typeof t)return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}({},t);n.noprocess=!0;var r=new _(e,n).minimatch.set;if(!e)return!1;if(r.length>1)return!0;for(var a=0;a<r[0].length;a++)if("string"!=typeof r[0][a])return!0;return!1},b.Glob=_,o(_,s),_.prototype._finish=function(){if(l(this instanceof _),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();d.finish(this),this.emit("end",this.found)}},_.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var e=this.matches.length;if(0===e)return this._finish();for(var t=this,n=0;n<this.matches.length;n++)this._realpathSet(n,r)}function r(){0==--e&&t._finish()}},_.prototype._realpathSet=function(e,t){var n=this.matches[e];if(!n)return t();var r=Object.keys(n),i=this,o=r.length;if(0===o)return t();var s=this.matches[e]=Object.create(null);r.forEach((function(n,r){n=i._makeAbs(n),a.realpath(n,i.realpathCache,(function(r,a){r?"stat"===r.syscall?s[n]=!0:i.emit("error",r):s[a]=!0,0==--o&&(i.matches[e]=s,t())}))}))},_.prototype._mark=function(e){return d.mark(this,e)},_.prototype._makeAbs=function(e){return d.makeAbs(this,e)},_.prototype.abort=function(){this.aborted=!0,this.emit("abort")},_.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},_.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var n=e[t];this._emitMatch(n[0],n[1])}}if(this._processQueue.length){var r=this._processQueue.slice(0);for(this._processQueue.length=0,t=0;t<r.length;t++){var a=r[t];this._processing--,this._process(a[0],a[1],a[2],a[3])}}}},_.prototype._process=function(e,t,n,r){if(l(this instanceof _),l("function"==typeof r),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([e,t,n,r]);else{for(var a,o=0;"string"==typeof e[o];)o++;switch(o){case e.length:return void this._processSimple(e.join("/"),t,r);case 0:a=null;break;default:a=e.slice(0,o).join("/")}var s,u=e.slice(o);null===a?s=".":c(a)||c(e.join("/"))?(a&&c(a)||(a="/"+a),s=a):s=a;var p=this._makeAbs(s);if(g(this,s))return r();u[0]===i.GLOBSTAR?this._processGlobStar(a,s,p,u,t,n,r):this._processReaddir(a,s,p,u,t,n,r)}},_.prototype._processReaddir=function(e,t,n,r,a,i,o){var s=this;this._readdir(n,i,(function(u,l){return s._processReaddir2(e,t,n,r,a,i,l,o)}))},_.prototype._processReaddir2=function(e,t,n,r,a,i,o,s){if(!o)return s();for(var l=r[0],c=!!this.minimatch.negate,p=l._glob,d=this.dot||"."===p.charAt(0),f=[],m=0;m<o.length;m++)("."!==(g=o[m]).charAt(0)||d)&&(c&&!e?!g.match(l):g.match(l))&&f.push(g);var h=f.length;if(0===h)return s();if(1===r.length&&!this.mark&&!this.stat){for(this.matches[a]||(this.matches[a]=Object.create(null)),m=0;m<h;m++){var g=f[m];e&&(g="/"!==e?e+"/"+g:e+g),"/"!==g.charAt(0)||this.nomount||(g=u.join(this.root,g)),this._emitMatch(a,g)}return s()}for(r.shift(),m=0;m<h;m++)g=f[m],e&&(g="/"!==e?e+"/"+g:e+g),this._process([g].concat(r),a,i,s);s()},_.prototype._emitMatch=function(e,t){if(!this.aborted&&!y(this,t))if(this.paused)this._emitQueue.push([e,t]);else{var n=c(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=n),!this.matches[e][t]){if(this.nodir){var r=this.cache[n];if("DIR"===r||Array.isArray(r))return}this.matches[e][t]=!0;var a=this.statCache[n];a&&this.emit("stat",t,a),this.emit("match",t)}}},_.prototype._readdirInGlobStar=function(e,t){if(!this.aborted){if(this.follow)return this._readdir(e,!1,t);var n=this,a=h("lstat\0"+e,(function(r,a){if(r&&"ENOENT"===r.code)return t();var i=a&&a.isSymbolicLink();n.symlinks[e]=i,i||!a||a.isDirectory()?n._readdir(e,!1,t):(n.cache[e]="FILE",t())}));a&&r.lstat(e,a)}},_.prototype._readdir=function(e,t,n){if(!this.aborted&&(n=h("readdir\0"+e+"\0"+t,n))){if(t&&!m(this.symlinks,e))return this._readdirInGlobStar(e,n);if(m(this.cache,e)){var a=this.cache[e];if(!a||"FILE"===a)return n();if(Array.isArray(a))return n(null,a)}r.readdir(e,function(e,t,n){return function(r,a){r?e._readdirError(t,r,n):e._readdirEntries(t,a,n)}}(this,e,n))}},_.prototype._readdirEntries=function(e,t,n){if(!this.aborted){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var a=t[r];a="/"===e?e+a:e+"/"+a,this.cache[a]=!0}return this.cache[e]=t,n(null,t)}},_.prototype._readdirError=function(e,t,n){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var a=new Error(t.code+" invalid cwd "+this.cwd);a.path=this.cwd,a.code=t.code,this.emit("error",a),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t)}return n()}},_.prototype._processGlobStar=function(e,t,n,r,a,i,o){var s=this;this._readdir(n,i,(function(u,l){s._processGlobStar2(e,t,n,r,a,i,l,o)}))},_.prototype._processGlobStar2=function(e,t,n,r,a,i,o,s){if(!o)return s();var u=r.slice(1),l=e?[e]:[],c=l.concat(u);this._process(c,a,!1,s);var p=this.symlinks[n],d=o.length;if(p&&i)return s();for(var f=0;f<d;f++)if("."!==o[f].charAt(0)||this.dot){var m=l.concat(o[f],u);this._process(m,a,!0,s);var h=l.concat(o[f],r);this._process(h,a,!0,s)}s()},_.prototype._processSimple=function(e,t,n){var r=this;this._stat(e,(function(a,i){r._processSimple2(e,t,a,i,n)}))},_.prototype._processSimple2=function(e,t,n,r,a){if(this.matches[t]||(this.matches[t]=Object.create(null)),!r)return a();if(e&&c(e)&&!this.nomount){var i=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=u.join(this.root,e):(e=u.resolve(this.root,e),i&&(e+="/"))}"win32"===process.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),a()},_.prototype._stat=function(e,t){var n=this._makeAbs(e),a="/"===e.slice(-1);if(e.length>this.maxLength)return t();if(!this.stat&&m(this.cache,n)){var i=this.cache[n];if(Array.isArray(i)&&(i="DIR"),!a||"DIR"===i)return t(null,i);if(a&&"FILE"===i)return t()}var o=this.statCache[n];if(void 0!==o){if(!1===o)return t(null,o);var s=o.isDirectory()?"DIR":"FILE";return a&&"FILE"===s?t():t(null,s,o)}var u=this,l=h("stat\0"+n,(function(a,i){if(i&&i.isSymbolicLink())return r.stat(n,(function(r,a){r?u._stat2(e,n,null,i,t):u._stat2(e,n,r,a,t)}));u._stat2(e,n,a,i,t)}));l&&r.lstat(n,l)},_.prototype._stat2=function(e,t,n,r,a){if(n&&("ENOENT"===n.code||"ENOTDIR"===n.code))return this.statCache[t]=!1,a();var i="/"===e.slice(-1);if(this.statCache[t]=r,"/"===t.slice(-1)&&r&&!r.isDirectory())return a(null,!1,r);var o=!0;return r&&(o=r.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,i&&"FILE"===o?a():a(null,o,r)}},function(e,t,n){function r(e){return"/"===e.charAt(0)}function a(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),n=t[1]||"",r=Boolean(n&&":"!==n.charAt(1));return Boolean(t[2]||r)}e.exports="win32"===process.platform?a:r,e.exports.posix=r,e.exports.win32=a},,,function(e,t){e.exports=U.default},,function(e,t,n){var r,a,i,o,s,u;function l(){return a=p(n(7))}function c(){return o=n(6)}function p(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t="lockfile"){return function(e){return e.includes(b)&&e.includes(v)&&e.includes(y)}(e=(0,(i||(i=p(n(122)))).default)(e))?function(e,t){const n=function(e){const t=[[],[]],n=e.split(/\r?\n/g);let r=!1;for(;n.length;){const e=n.shift();if(e.startsWith(b)){for(;n.length;){const e=n.shift();if(e===v){r=!1;break}r||e.startsWith(g)?r=!0:t[0].push(e)}for(;n.length;){const e=n.shift();if(e.startsWith(y))break;t[1].push(e)}}else t[0].push(e),t[1].push(e)}return[t[0].join("\n"),t[1].join("\n")]}(e);try{return{type:"merge",object:Object.assign({},w(n[0],t),w(n[1],t))}}catch(e){if(e instanceof SyntaxError)return{type:"conflict",object:{}};throw e}}(e,t):{type:"success",object:w(e,t)}};const d=/^yarn lockfile v(\d+)$/,f={boolean:"BOOLEAN",string:"STRING",identifier:"IDENTIFIER",eof:"EOF",colon:"COLON",newline:"NEWLINE",comment:"COMMENT",indent:"INDENT",invalid:"INVALID",number:"NUMBER",comma:"COMMA"},m=[f.boolean,f.string,f.number];class h{constructor(e,t="lockfile"){this.comments=[],this.tokens=function*(e){let t=!1,n=1,r=0;function a(e,t){return{line:n,col:r,type:e,value:t}}for(;e.length;){let i=0;if("\n"===e[0]||"\r"===e[0])i++,"\n"===e[1]&&i++,n++,r=0,yield a(f.newline);else if("#"===e[0]){i++;let t="";for(;"\n"!==e[i];)t+=e[i],i++;yield a(f.comment,t)}else if(" "===e[0])if(t){let t="";for(let n=0;" "===e[n];n++)t+=e[n];if(t.length%2)throw new TypeError("Invalid number of spaces");i=t.length,yield a(f.indent,t.length/2)}else i++;else if('"'===e[0]){let t="";for(let n=0;;n++){const r=e[n];if(t+=r,n>0&&'"'===r&&("\\"!==e[n-1]||"\\"===e[n-2]))break}i=t.length;try{yield a(f.string,JSON.parse(t))}catch(e){if(!(e instanceof SyntaxError))throw e;yield a(f.invalid)}}else if(/^[0-9]/.test(e)){let t="";for(let n=0;/^[0-9]$/.test(e[n]);n++)t+=e[n];i=t.length,yield a(f.number,+t)}else if(/^true/.test(e))yield a(f.boolean,!0),i=4;else if(/^false/.test(e))yield a(f.boolean,!1),i=5;else if(":"===e[0])yield a(f.colon),i++;else if(","===e[0])yield a(f.comma),i++;else if(/^[a-zA-Z\/-]/g.test(e)){let t="";for(let n=0;n<e.length;n++){const r=e[n];if(":"===r||" "===r||"\n"===r||"\r"===r||","===r)break;t+=r}i=t.length,yield a(f.string,t)}else yield a(f.invalid);i||(yield a(f.invalid)),r+=i,t="\n"===e[0]||"\r"===e[0]&&"\n"===e[1],e=e.slice(i)}yield a(f.eof)}(e),this.fileLoc=t}onComment(e){const t=e.value;(0,(a||l()).default)("string"==typeof t,"expected token value to be a string");const r=t.trim(),i=r.match(d);if(i){const e=+i[1];if(e>(o||c()).LOCKFILE_VERSION)throw new((s||(s=n(4))).MessageError)(`Can't install from a lockfile of version ${e} as you're on an old yarn version that only supports versions up to ${(o||c()).LOCKFILE_VERSION}. Run \`$ yarn self-update\` to upgrade to the latest version.`)}this.comments.push(r)}next(){const e=this.tokens.next();(0,(a||l()).default)(e,"expected a token");const t=e.done,n=e.value;if(t||!n)throw new Error("No more tokens");return n.type===f.comment?(this.onComment(n),this.next()):this.token=n}unexpected(e="Unexpected token"){throw new SyntaxError(`${e} ${this.token.line}:${this.token.col} in ${this.fileLoc}`)}expect(e){this.token.type===e?this.next():this.unexpected()}eat(e){return this.token.type===e&&(this.next(),!0)}parse(e=0){const t=(0,(u||(u=p(n(20)))).default)();for(;;){const u=this.token;if(u.type===f.newline){const t=this.next();if(!e)continue;if(t.type!==f.indent)break;if(t.value!==e)break;this.next()}else if(u.type===f.indent){if(u.value!==e)break;this.next()}else{if(u.type===f.eof)break;if(u.type===f.string){const n=u.value;(0,(a||l()).default)(n,"Expected a key");const r=[n];for(this.next();this.token.type===f.comma;){this.next();const e=this.token;e.type!==f.string&&this.unexpected("Expected string");const t=e.value;(0,(a||l()).default)(t,"Expected a key"),r.push(t),this.next()}const p=this.token;if(p.type===f.colon){this.next();const n=this.parse(e+1);var i=r,o=Array.isArray(i),s=0;for(i=o?i:i[Symbol.iterator]();;){var c;if(o){if(s>=i.length)break;c=i[s++]}else{if((s=i.next()).done)break;c=s.value}t[c]=n}if(e&&this.token.type!==f.indent)break}else if(v=p,m.indexOf(v.type)>=0){var d=r,h=Array.isArray(d),g=0;for(d=h?d:d[Symbol.iterator]();;){var y;if(h){if(g>=d.length)break;y=d[g++]}else{if((g=d.next()).done)break;y=g.value}t[y]=p.value}this.next()}else this.unexpected("Invalid value type")}else this.unexpected(`Unknown token: ${(r||(r=p(n(2)))).default.inspect(u)}`)}}var v;return t}}const g="|||||||",y=">>>>>>>",v="=======",b="<<<<<<<";function w(e,t){const n=new h(e,t);return n.next(),n.parse()}},,,function(e,t,n){var r;function a(){return e=n(20),r=e&&e.__esModule?e:{default:e};var e}Object.defineProperty(t,"__esModule",{value:!0});const i=n(212)("yarn");t.default=class{constructor(e,t=1/0){this.concurrencyQueue=[],this.maxConcurrency=t,this.runningCount=0,this.warnedStuck=!1,this.alias=e,this.first=!0,this.running=(0,(r||a()).default)(),this.queue=(0,(r||a()).default)(),this.stuckTick=this.stuckTick.bind(this)}stillActive(){this.stuckTimer&&clearTimeout(this.stuckTimer),this.stuckTimer=setTimeout(this.stuckTick,5e3),this.stuckTimer.unref&&this.stuckTimer.unref()}stuckTick(){1===this.runningCount&&(this.warnedStuck=!0,i(`The ${JSON.stringify(this.alias)} blocking queue may be stuck. 5 seconds without any activity with 1 worker: ${Object.keys(this.running)[0]}`))}push(e,t){return this.first?this.first=!1:this.stillActive(),new Promise(((n,r)=>{(this.queue[e]=this.queue[e]||[]).push({factory:t,resolve:n,reject:r}),this.running[e]||this.shift(e)}))}shift(e){this.running[e]&&(delete this.running[e],this.runningCount--,this.stuckTimer&&(clearTimeout(this.stuckTimer),this.stuckTimer=null),this.warnedStuck&&(this.warnedStuck=!1,i(`${JSON.stringify(this.alias)} blocking queue finally resolved. Nothing to worry about.`)));const t=this.queue[e];if(!t)return;var n=t.shift();const r=n.resolve,a=n.reject,o=n.factory;t.length||delete this.queue[e];const s=()=>{this.shift(e),this.shiftConcurrencyQueue()};this.maybePushConcurrencyQueue((()=>{this.running[e]=!0,this.runningCount++,o().then((function(e){return r(e),s(),null})).catch((function(e){a(e),s()}))}))}maybePushConcurrencyQueue(e){this.runningCount<this.maxConcurrency?e():this.concurrencyQueue.push(e)}shiftConcurrencyQueue(){if(this.runningCount<this.maxConcurrency){const e=this.concurrencyQueue.shift();e&&e()}}}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},,,,,,,,,,,,,,,function(e,t,n){var r=n(47),a=n(13)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?n:i?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(11).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(69),a=n(41),i=n(197),o=n(31),s=n(35),u=n(188),l=n(71),c=n(194),p=n(13)("iterator"),d=!([].keys&&"next"in[].keys()),f="keys",m="values",h=function(){return this};e.exports=function(e,t,n,g,y,v,b){u(n,t,g);var w,_,x,k=function(e){if(!d&&e in D)return D[e];switch(e){case f:case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",E=y==m,C=!1,D=e.prototype,O=D[p]||D["@@iterator"]||y&&D[y],N=O||k(y),j=y?E?k("entries"):N:void 0,P="Array"==t&&D.entries||O;if(P&&(x=c(P.call(new e)))!==Object.prototype&&x.next&&(l(x,S,!0),r||"function"==typeof x[p]||o(x,p,h)),E&&O&&O.name!==m&&(C=!0,N=function(){return O.call(this)}),r&&!b||!d&&!C&&D[p]||o(D,p,N),s[t]=N,s[S]=h,y)if(w={values:E?N:k(m),keys:v?N:k(f),entries:j},b)for(_ in w)_ in D||i(D,_,w[_]);else a(a.P+a.F*(d||C),t,w);return w}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r=n(27),a=n(34),i=n(70);e.exports=function(e,t){if(r(e),a(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(23),a=n(11),i="__core-js_shared__",o=a[i]||(a[i]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(69)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(27),a=n(46),i=n(13)("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||null==(n=r(o)[i])?t:a(n)}},function(e,t,n){var r,a,i,o=n(48),s=n(185),u=n(102),l=n(68),c=n(11),p=c.process,d=c.setImmediate,f=c.clearImmediate,m=c.MessageChannel,h=c.Dispatch,g=0,y={},v="onreadystatechange",b=function(){var e=+this;if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},w=function(e){b.call(e.data)};d&&f||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return y[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},f=function(e){delete y[e]},"process"==n(47)(p)?r=function(e){p.nextTick(o(b,e,1))}:h&&h.now?r=function(e){h.now(o(b,e,1))}:m?(i=(a=new m).port2,a.port1.onmessage=w,r=o(i.postMessage,i,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",w,!1)):r=v in l("script")?function(e){u.appendChild(l("script"))[v]=function(){u.removeChild(this),b.call(e)}}:function(e){setTimeout(o(b,e,1),0)}),e.exports={set:d,clear:f}},function(e,t,n){var r=n(73),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){function r(e){var n;function r(){if(r.enabled){var e=r,a=+new Date,i=a-(n||a);e.diff=i,e.prev=n,e.curr=a,n=a;for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var u=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;u++;var a=t.formatters[r];if("function"==typeof a){var i=o[u];n=a.call(e,i),o.splice(u,1),u--}return n})),t.formatArgs.call(e,o),(r.log||t.log||console.log.bind(console)).apply(e,o)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=a,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function a(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(n=0;n<a;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(229),t.instances=[],t.names=[],t.skips=[],t.formatters={}},,function(e,t,n){e.exports=c,c.realpath=c,c.sync=p,c.realpathSync=p,c.monkeypatch=function(){r.realpath=c,r.realpathSync=p},c.unmonkeypatch=function(){r.realpath=a,r.realpathSync=i};var r=n(3),a=r.realpath,i=r.realpathSync,o=process.version,s=/^v[0-5]\./.test(o),u=n(217);function l(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function c(e,t,n){if(s)return a(e,t,n);"function"==typeof t&&(n=t,t=null),a(e,t,(function(r,a){l(r)?u.realpath(e,t,n):n(r,a)}))}function p(e,t){if(s)return i(e,t);try{return i(e,t)}catch(n){if(l(n))return u.realpathSync(e,t);throw n}}},function(e,t,n){function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.alphasort=l,t.alphasorti=u,t.setopts=function(e,t,n){if(n||(n={}),n.matchBase&&-1===t.indexOf("/")){if(n.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!n.silent,e.pattern=t,e.strict=!1!==n.strict,e.realpath=!!n.realpath,e.realpathCache=n.realpathCache||Object.create(null),e.follow=!!n.follow,e.dot=!!n.dot,e.mark=!!n.mark,e.nodir=!!n.nodir,e.nodir&&(e.mark=!0),e.sync=!!n.sync,e.nounique=!!n.nounique,e.nonull=!!n.nonull,e.nosort=!!n.nosort,e.nocase=!!n.nocase,e.stat=!!n.stat,e.noprocess=!!n.noprocess,e.absolute=!!n.absolute,e.maxLength=n.maxLength||1/0,e.cache=n.cache||Object.create(null),e.statCache=n.statCache||Object.create(null),e.symlinks=n.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(c))}(e,n),e.changedCwd=!1;var i=process.cwd();r(n,"cwd")?(e.cwd=a.resolve(n.cwd),e.changedCwd=e.cwd!==i):e.cwd=i,e.root=n.root||a.resolve(e.cwd,"/"),e.root=a.resolve(e.root),"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=o(e.cwd)?e.cwd:p(e,e.cwd),"win32"===process.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!n.nomount,n.nonegate=!0,n.nocomment=!0,e.minimatch=new s(t,n),e.options=e.minimatch.options},t.ownProp=r,t.makeAbs=p,t.finish=function(e){for(var t=e.nounique,n=t?[]:Object.create(null),r=0,a=e.matches.length;r<a;r++){var i=e.matches[r];if(i&&0!==Object.keys(i).length){var o=Object.keys(i);t?n.push.apply(n,o):o.forEach((function(e){n[e]=!0}))}else if(e.nonull){var s=e.minimatch.globSet[r];t?n.push(s):n[s]=!0}}if(t||(n=Object.keys(n)),e.nosort||(n=n.sort(e.nocase?u:l)),e.mark){for(r=0;r<n.length;r++)n[r]=e._mark(n[r]);e.nodir&&(n=n.filter((function(t){var n=!/\/$/.test(t),r=e.cache[t]||e.cache[p(e,t)];return n&&r&&(n="DIR"!==r&&!Array.isArray(r)),n})))}e.ignore.length&&(n=n.filter((function(t){return!d(e,t)}))),e.found=n},t.mark=function(e,t){var n=p(e,t),r=e.cache[n],a=t;if(r){var i="DIR"===r||Array.isArray(r),o="/"===t.slice(-1);if(i&&!o?a+="/":!i&&o&&(a=a.slice(0,-1)),a!==t){var s=p(e,a);e.statCache[s]=e.statCache[n],e.cache[s]=e.cache[n]}}return a},t.isIgnored=d,t.childrenIgnored=function(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return!(!e.gmatcher||!e.gmatcher.match(t))}))};var a=n(0),i=n(60),o=n(76),s=i.Minimatch;function u(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function l(e,t){return e.localeCompare(t)}function c(e){var t=null;if("/**"===e.slice(-3)){var n=e.replace(/(\/\*\*)+$/,"");t=new s(n,{dot:!0})}return{matcher:new s(e,{dot:!0}),gmatcher:t}}function p(e,t){var n=t;return n="/"===t.charAt(0)?a.join(e.root,t):o(t)||""===t?t:e.changedCwd?a.resolve(e.cwd,t):a.resolve(t),"win32"===process.platform&&(n=n.replace(/\\/g,"/")),n}function d(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))}))}},function(e,t,n){var r=n(0),a=n(3),i=parseInt("0777",8);function o(e,t,n,s){"function"==typeof t?(n=t,t={}):t&&"object"==typeof t||(t={mode:t});var u=t.mode,l=t.fs||a;void 0===u&&(u=i&~process.umask()),s||(s=null);var c=n||function(){};e=r.resolve(e),l.mkdir(e,u,(function(n){if(!n)return c(null,s=s||e);"ENOENT"===n.code?o(r.dirname(e),t,(function(n,r){n?c(n,r):o(e,t,c,r)})):l.stat(e,(function(e,t){e||!t.isDirectory()?c(n,s):c(null,s)}))}))}e.exports=o.mkdirp=o.mkdirP=o,o.sync=function e(t,n,o){n&&"object"==typeof n||(n={mode:n});var s=n.mode,u=n.fs||a;void 0===s&&(s=i&~process.umask()),o||(o=null),t=r.resolve(t);try{u.mkdirSync(t,s),o=o||t}catch(a){if("ENOENT"===a.code)o=e(r.dirname(t),n,o),e(t,n,o);else{var l;try{l=u.statSync(t)}catch(e){throw a}if(!l.isDirectory())throw a}}return o}},,,,,,function(e,t,n){e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return 65279===e.charCodeAt(0)?e.slice(1):e}},function(e,t){e.exports=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){r[e]=t[e]})),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),a=e[e.length-1];return"function"==typeof r&&r!==a&&Object.keys(a).forEach((function(e){r[e]=a[e]})),r}}},,,,,,,,function(e,t,n){var r=n(47);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(195),a=n(101);e.exports=Object.keys||function(e){return r(e,a)}},function(e,t,n){var r=n(67);e.exports=function(e){return Object(r(e))}},,,,,,,,,,,,function(e,t){e.exports={name:"yarn",installationMethod:"unknown",version:"1.10.0-0",license:"BSD-2-Clause",preferGlobal:!0,description:"📦🐈 Fast, reliable, and secure dependency management.",dependencies:{"@zkochan/cmd-shim":"^2.2.4","babel-runtime":"^6.26.0",bytes:"^3.0.0",camelcase:"^4.0.0",chalk:"^2.1.0",commander:"^2.9.0",death:"^1.0.0",debug:"^3.0.0","deep-equal":"^1.0.1","detect-indent":"^5.0.0",dnscache:"^1.0.1",glob:"^7.1.1","gunzip-maybe":"^1.4.0","hash-for-dep":"^1.2.3","imports-loader":"^0.8.0",ini:"^1.3.4",inquirer:"^3.0.1",invariant:"^2.2.0","is-builtin-module":"^2.0.0","is-ci":"^1.0.10","is-webpack-bundle":"^1.0.0",leven:"^2.0.0","loud-rejection":"^1.2.0",micromatch:"^2.3.11",mkdirp:"^0.5.1","node-emoji":"^1.6.1","normalize-url":"^2.0.0","npm-logical-tree":"^1.2.1","object-path":"^0.11.2","proper-lockfile":"^2.0.0",puka:"^1.0.0",read:"^1.0.7",request:"^2.87.0","request-capture-har":"^1.2.2",rimraf:"^2.5.0",semver:"^5.1.0",ssri:"^5.3.0","strip-ansi":"^4.0.0","strip-bom":"^3.0.0","tar-fs":"^1.16.0","tar-stream":"^1.6.1",uuid:"^3.0.1","v8-compile-cache":"^2.0.0","validate-npm-package-license":"^3.0.3",yn:"^2.0.0"},devDependencies:{"babel-core":"^6.26.0","babel-eslint":"^7.2.3","babel-loader":"^6.2.5","babel-plugin-array-includes":"^2.0.3","babel-plugin-transform-builtin-extend":"^1.1.2","babel-plugin-transform-inline-imports-commonjs":"^1.0.0","babel-plugin-transform-runtime":"^6.4.3","babel-preset-env":"^1.6.0","babel-preset-flow":"^6.23.0","babel-preset-stage-0":"^6.0.0",babylon:"^6.5.0",commitizen:"^2.9.6","cz-conventional-changelog":"^2.0.0",eslint:"^4.3.0","eslint-config-fb-strict":"^22.0.0","eslint-plugin-babel":"^5.0.0","eslint-plugin-flowtype":"^2.35.0","eslint-plugin-jasmine":"^2.6.2","eslint-plugin-jest":"^21.0.0","eslint-plugin-jsx-a11y":"^6.0.2","eslint-plugin-prefer-object-spread":"^1.2.1","eslint-plugin-prettier":"^2.1.2","eslint-plugin-react":"^7.1.0","eslint-plugin-relay":"^0.0.24","eslint-plugin-yarn-internal":"file:scripts/eslint-rules",execa:"^0.10.0","flow-bin":"^0.66.0","git-release-notes":"^3.0.0",gulp:"^3.9.0","gulp-babel":"^7.0.0","gulp-if":"^2.0.1","gulp-newer":"^1.0.0","gulp-plumber":"^1.0.1","gulp-sourcemaps":"^2.2.0","gulp-util":"^3.0.7","gulp-watch":"^5.0.0",jest:"^22.4.4",jsinspect:"^0.12.6",minimatch:"^3.0.4","mock-stdin":"^0.3.0",prettier:"^1.5.2",temp:"^0.8.3",webpack:"^2.1.0-beta.25",yargs:"^6.3.0"},resolutions:{sshpk:"^1.14.2"},engines:{node:">=4.0.0"},repository:"yarnpkg/yarn",bin:{yarn:"./bin/yarn.js",yarnpkg:"./bin/yarn.js"},scripts:{build:"gulp build","build-bundle":"node ./scripts/build-webpack.js","build-chocolatey":"powershell ./scripts/build-chocolatey.ps1","build-deb":"./scripts/build-deb.sh","build-dist":"bash ./scripts/build-dist.sh","build-win-installer":"scripts\\build-windows-installer.bat",changelog:"git-release-notes $(git describe --tags --abbrev=0 $(git describe --tags --abbrev=0)^)..$(git describe --tags --abbrev=0) scripts/changelog.md","dupe-check":"yarn jsinspect ./src",lint:"eslint . && flow check","pkg-tests":"yarn --cwd packages/pkg-tests jest yarn.test.js",prettier:"eslint src __tests__ --fix","release-branch":"./scripts/release-branch.sh",test:"yarn lint && yarn test-only","test-only":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --verbose","test-only-debug":"node --inspect-brk --max_old_space_size=4096 node_modules/jest/bin/jest.js --runInBand --verbose","test-coverage":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --coverage --verbose",watch:"gulp watch",commit:"git-cz"},jest:{collectCoverageFrom:["src/**/*.js"],testEnvironment:"node",modulePathIgnorePatterns:["__tests__/fixtures/","packages/pkg-tests/pkg-tests-fixtures","dist/"],testPathIgnorePatterns:["__tests__/(fixtures|__mocks__)/","updates/","_(temp|mock|install|init|helpers).js$","packages/pkg-tests"]},config:{commitizen:{path:"./node_modules/cz-conventional-changelog"}}}},,,,,function(e,t,n){var r,a,i;function o(){return r=n(12)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){const o=p(e,{indent:"",topLevel:!0});if(t)return o;const u=[];return u.push("# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."),u.push(`# yarn lockfile v${(a||(a=n(6))).LOCKFILE_VERSION}`),r&&(u.push(`# yarn v${(i||(i=n(145))).version}`),u.push(`# node ${s}`)),u.push("\n"),u.push(o),u.join("\n")};const s=process.version;function u(e){return"boolean"==typeof e||"number"==typeof e||function(e){return 0===e.indexOf("true")||0===e.indexOf("false")||/[:\s\n\\",\[\]]/g.test(e)||/^[0-9]/g.test(e)||!/^[a-zA-Z]/g.test(e)}(e)?JSON.stringify(e):e}const l={name:1,version:2,uid:3,resolved:4,integrity:5,registry:6,dependencies:7};function c(e,t){return l[e]||l[t]?(l[e]||100)>(l[t]||100)?1:-1:(0,(r||o()).sortAlpha)(e,t)}function p(e,t){if("object"!=typeof e)throw new TypeError;const n=t.indent,a=[],i=Object.keys(e).sort(c);let s=[];for(let l=0;l<i.length;l++){const c=i[l],d=e[c];if(null==d||s.indexOf(c)>=0)continue;const f=[c];if("object"==typeof d)for(let t=l+1;t<i.length;t++){const n=i[t];d===e[n]&&f.push(n)}const m=f.sort((r||o()).sortAlpha).map(u).join(", ");if("string"==typeof d||"boolean"==typeof d||"number"==typeof d)a.push(`${m} ${u(d)}`);else{if("object"!=typeof d)throw new TypeError;a.push(`${m}:\n${p(d,{indent:n+" "})}`+(t.topLevel?"\n":""))}s=s.concat(f)}return n+a.join(`\n${n}`)}},,,,,,,,,,,,,,function(e,t,n){var r;function a(){return r=p(n(1))}Object.defineProperty(t,"__esModule",{value:!0}),t.fileDatesEqual=t.copyFile=t.unlink=void 0;let i=(o=(0,(r||a()).default)((function*(e,t,n){const r=void 0===e;let a=e||-1;if(void 0===d){const e=yield h(t);d=S(e.mtime,n.mtime)}if(!d){if(r)try{a=yield g(t,"a",n.mode)}catch(e){try{a=yield g(t,"r",n.mode)}catch(e){return}}try{a&&(yield y(a,n.atime,n.mtime))}catch(e){}finally{r&&a&&(yield m(a))}}})),function(e,t,n){return o.apply(this,arguments)});var o,s,u;function l(){return s=p(n(3))}function c(){return u=n(40)}function p(e){return e&&e.__esModule?e:{default:e}}let d;const f=(0,(u||c()).promisify)((s||l()).default.readFile),m=(0,(u||c()).promisify)((s||l()).default.close),h=(0,(u||c()).promisify)((s||l()).default.lstat),g=(0,(u||c()).promisify)((s||l()).default.open),y=(0,(u||c()).promisify)((s||l()).default.futimes),v=(0,(u||c()).promisify)((s||l()).default.write),b=t.unlink=(0,(u||c()).promisify)(n(233));var w;t.copyFile=(w=(0,(r||a()).default)((function*(e,t){try{yield b(e.dest),yield _(e.src,e.dest,0,e)}finally{t&&t()}})),function(e,t){return w.apply(this,arguments)});const _=(e,t,n,r)=>(s||l()).default.copyFile?new Promise(((a,o)=>(s||l()).default.copyFile(e,t,n,(e=>{e?o(e):i(void 0,t,r).then((()=>a())).catch((e=>o(e)))})))):x(e,t,n,r),x=(k=(0,(r||a()).default)((function*(e,t,n,r){const a=yield g(t,"w",r.mode);try{const n=yield f(e);yield v(a,n,0,n.length),yield i(a,t,r)}finally{yield m(a)}})),function(e,t,n,r){return k.apply(this,arguments)});var k;const S=t.fileDatesEqual=(e,t)=>{const n=e.getTime(),r=t.getTime();if("win32"!==process.platform)return n===r;if(Math.abs(n-r)<=1)return!0;const a=Math.floor(n/1e3),i=Math.floor(r/1e3);return n-1e3*a==0||r-1e3*i==0?a===i:n===r}},,,,,function(e,t,n){function r(){return Boolean(process.env.FAKEROOTKEY)}function a(e){return 0===e}Object.defineProperty(t,"__esModule",{value:!0}),t.isFakeRoot=r,t.isRootUser=a,t.default=a("win32"!==process.platform&&process.getuid?process.getuid():null)&&!r()},,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getDataDir=function(){if("win32"===process.platform){const e=s();return null==e?i:r.join(e,"Data")}return process.env.XDG_DATA_HOME?r.join(process.env.XDG_DATA_HOME,"yarn"):i},t.getCacheDir=function(){return"win32"===process.platform?r.join(s()||r.join(a,"AppData","Local","Yarn"),"Cache"):process.env.XDG_CACHE_HOME?r.join(process.env.XDG_CACHE_HOME,"yarn"):"darwin"===process.platform?r.join(a,"Library","Caches","Yarn"):o},t.getConfigDir=function(){if("win32"===process.platform){const e=s();return null==e?i:r.join(e,"Config")}return process.env.XDG_CONFIG_HOME?r.join(process.env.XDG_CONFIG_HOME,"yarn"):i};const r=n(0),a=n(45).default,i=r.join(a,".config","yarn"),o=r.join(a,".cache","yarn");function s(){return process.env.LOCALAPPDATA?r.join(process.env.LOCALAPPDATA,"Yarn"):null}},,function(e,t,n){e.exports={default:n(179),__esModule:!0}},function(e,t,n){function r(e,t,n){e instanceof RegExp&&(e=a(e,n)),t instanceof RegExp&&(t=a(t,n));var r=i(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function a(e,t){var n=t.match(e);return n?n[0]:null}function i(e,t,n){var r,a,i,o,s,u=n.indexOf(e),l=n.indexOf(t,u+1),c=u;if(u>=0&&l>0){for(r=[],i=n.length;c>=0&&!s;)c==u?(r.push(c),u=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),l]:((a=r.pop())<i&&(i=a,o=l),l=n.indexOf(t,c+1)),c=u<l&&u>=0?u:l;r.length&&(s=[i,o])}return s}e.exports=r,r.range=i},function(e,t,n){var r=n(178),a=n(174);e.exports=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),y(function(e){return e.split("\\\\").join(i).split("\\{").join(o).split("\\}").join(s).split("\\,").join(u).split("\\.").join(l)}(e),!0).map(p)):[]};var i="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",s="\0CLOSE"+Math.random()+"\0",u="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function c(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function p(e){return e.split(i).join("\\").split(o).join("{").split(s).join("}").split(u).join(",").split(l).join(".")}function d(e){if(!e)return[""];var t=[],n=a("{","}",e);if(!n)return e.split(",");var r=n.pre,i=n.body,o=n.post,s=r.split(",");s[s.length-1]+="{"+i+"}";var u=d(o);return o.length&&(s[s.length-1]+=u.shift(),s.push.apply(s,u)),t.push.apply(t,s),t}function f(e){return"{"+e+"}"}function m(e){return/^-?0\d/.test(e)}function h(e,t){return e<=t}function g(e,t){return e>=t}function y(e,t){var n=[],i=a("{","}",e);if(!i||/\$$/.test(i.pre))return[e];var o,u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),p=u||l,v=i.body.indexOf(",")>=0;if(!p&&!v)return i.post.match(/,.*\}/)?y(e=i.pre+"{"+i.body+s+i.post):[e];if(p)o=i.body.split(/\.\./);else if(1===(o=d(i.body)).length&&1===(o=y(o[0],!1).map(f)).length)return(_=i.post.length?y(i.post,!1):[""]).map((function(e){return i.pre+o[0]+e}));var b,w=i.pre,_=i.post.length?y(i.post,!1):[""];if(p){var x=c(o[0]),k=c(o[1]),S=Math.max(o[0].length,o[1].length),E=3==o.length?Math.abs(c(o[2])):1,C=h;k<x&&(E*=-1,C=g);var D=o.some(m);b=[];for(var O=x;C(O,k);O+=E){var N;if(l)"\\"===(N=String.fromCharCode(O))&&(N="");else if(N=String(O),D){var j=S-N.length;if(j>0){var P=new Array(j+1).join("0");N=O<0?"-"+P+N.slice(1):P+N}}b.push(N)}}else b=r(o,(function(e){return y(e,!1)}));for(var T=0;T<b.length;T++)for(var A=0;A<_.length;A++){var R=w+b[T]+_[A];(!t||p||R)&&n.push(R)}return n}},function(e,t,n){e.exports=function(e){return 0===(e=arguments.length>1?Array.from(arguments).map((e=>e.trim())).filter((e=>e.length)).join("-"):e.trim()).length?"":1===e.length?e.toLowerCase():/^[a-z0-9]+$/.test(e)?e:(e!==e.toLowerCase()&&(e=function(e){let t=!1,n=!1,r=!1;for(let a=0;a<e.length;a++){const i=e[a];t&&/[a-zA-Z]/.test(i)&&i.toUpperCase()===i?(e=e.substr(0,a)+"-"+e.substr(a),t=!1,r=n,n=!0,a++):n&&r&&/[a-zA-Z]/.test(i)&&i.toLowerCase()===i?(e=e.substr(0,a-1)+"-"+e.substr(a-1),r=n,n=!1,t=!0):(t=i.toLowerCase()===i,r=n,n=i.toUpperCase()===i)}return e}(e)),e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,((e,t)=>t.toUpperCase())))}},,function(e,t){e.exports=function(e,t){for(var r=[],a=0;a<e.length;a++){var i=t(e[a],a);n(i)?r.push.apply(r,i):r.push(i)}return r};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){n(205),n(207),n(210),n(206),n(208),n(209),e.exports=n(23).Promise},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(74),a=n(110),i=n(200);e.exports=function(e){return function(t,n,o){var s,u=r(t),l=a(u.length),c=i(o,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(48),a=n(187),i=n(186),o=n(27),s=n(110),u=n(203),l={},c={};(t=e.exports=function(e,t,n,p,d){var f,m,h,g,y=d?function(){return e}:u(e),v=r(n,p,t?2:1),b=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(i(y)){for(f=s(e.length);f>b;b++)if((g=t?v(o(m=e[b])[0],m[1]):v(e[b]))===l||g===c)return g}else for(h=y.call(e);!(m=h.next()).done;)if((g=a(h,v,m.value,t))===l||g===c)return g}).BREAK=l,t.RETURN=c},function(e,t,n){e.exports=!n(33)&&!n(85)((function(){return 7!=Object.defineProperty(n(68)("div"),"a",{get:function(){return 7}}).a}))},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(35),a=n(13)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[a]===e)}},function(e,t,n){var r=n(27);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r=n(192),a=n(106),i=n(71),o={};n(31)(o,n(13)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(o,{next:a(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(13)("iterator"),a=!1;try{var i=[7][r]();i.return=function(){a=!0},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var i=[7],o=i[r]();o.next=function(){return{done:n=!0}},i[r]=function(){return o},e(i)}catch(e){}return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(11),a=n(109).set,i=r.MutationObserver||r.WebKitMutationObserver,o=r.process,s=r.Promise,u="process"==n(47)(o);e.exports=function(){var e,t,n,l=function(){var r,a;for(u&&(r=o.domain)&&r.exit();e;){a=e.fn,e=e.next;try{a()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(u)n=function(){o.nextTick(l)};else if(!i||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);n=function(){c.then(l)}}else n=function(){a.call(r,l)};else{var p=!0,d=document.createTextNode("");new i(l).observe(d,{characterData:!0}),n=function(){d.data=p=!p}}return function(r){var a={fn:r,next:void 0};t&&(t.next=a),e||(e=a,n()),t=a}}},function(e,t,n){var r=n(27),a=n(193),i=n(101),o=n(72)("IE_PROTO"),s=function(){},u="prototype",l=function(){var e,t=n(68)("iframe"),r=i.length;for(t.style.display="none",n(102).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l[u][i[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=r(e),n=new s,s[u]=null,n[o]=e):n=l(),void 0===t?n:a(n,t)}},function(e,t,n){var r=n(50),a=n(27),i=n(132);e.exports=n(33)?Object.defineProperties:function(e,t){a(e);for(var n,o=i(t),s=o.length,u=0;s>u;)r.f(e,n=o[u++],t[n]);return e}},function(e,t,n){var r=n(49),a=n(133),i=n(72)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=a(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,n){var r=n(49),a=n(74),i=n(182)(!1),o=n(72)("IE_PROTO");e.exports=function(e,t){var n,s=a(e),u=0,l=[];for(n in s)n!=o&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){var r=n(31);e.exports=function(e,t,n){for(var a in t)n&&e[a]?e[a]=t[a]:r(e,a,t[a]);return e}},function(e,t,n){e.exports=n(31)},function(e,t,n){var r=n(11),a=n(23),i=n(50),o=n(33),s=n(13)("species");e.exports=function(e){var t="function"==typeof a[e]?a[e]:r[e];o&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(73),a=n(67);e.exports=function(e){return function(t,n){var i,o,s=String(a(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(i=s.charCodeAt(u))<55296||i>56319||u+1===l||(o=s.charCodeAt(u+1))<56320||o>57343?e?s.charAt(u):i:e?s.slice(u,u+2):o-56320+(i-55296<<10)+65536}}},function(e,t,n){var r=n(73),a=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?a(e+t,0):i(e,t)}},function(e,t,n){var r=n(34);e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(11).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){var r=n(100),a=n(13)("iterator"),i=n(35);e.exports=n(23).getIteratorMethod=function(e){if(null!=e)return e[a]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(180),a=n(190),i=n(35),o=n(74);e.exports=n(103)(Array,"Array",(function(e,t){this._t=o(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,a(1)):a(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){},function(e,t,n){var r,a,i,o,s=n(69),u=n(11),l=n(48),c=n(100),p=n(41),d=n(34),f=n(46),m=n(181),h=n(183),g=n(108),y=n(109).set,v=n(191)(),b=n(70),w=n(104),_=n(202),x=n(105),k="Promise",S=u.TypeError,E=u.process,C=E&&E.versions,D=C&&C.v8||"",O=u[k],N="process"==c(E),j=function(){},P=a=b.f,T=!!function(){try{var e=O.resolve(1),t=(e.constructor={})[n(13)("species")]=function(e){e(j,j)};return(N||"function"==typeof PromiseRejectionEvent)&&e.then(j)instanceof t&&0!==D.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(e){}}(),A=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},R=function(e,t){if(!e._n){e._n=!0;var n=e._c;v((function(){for(var r=e._v,a=1==e._s,i=0,o=function(t){var n,i,o,s=a?t.ok:t.fail,u=t.resolve,l=t.reject,c=t.domain;try{s?(a||(2==e._h&&L(e),e._h=1),!0===s?n=r:(c&&c.enter(),n=s(r),c&&(c.exit(),o=!0)),n===t.promise?l(S("Promise-chain cycle")):(i=A(n))?i.call(n,u,l):u(n)):l(r)}catch(e){c&&!o&&c.exit(),l(e)}};n.length>i;)o(n[i++]);e._c=[],e._n=!1,t&&!e._h&&I(e)}))}},I=function(e){y.call(u,(function(){var t,n,r,a=e._v,i=M(e);if(i&&(t=w((function(){N?E.emit("unhandledRejection",a,e):(n=u.onunhandledrejection)?n({promise:e,reason:a}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",a)})),e._h=N||M(e)?2:1),e._a=void 0,i&&t.e)throw t.v}))},M=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(e){y.call(u,(function(){var t;N?E.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})}))},F=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),R(t,!0))},z=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw S("Promise can't be resolved itself");(t=A(e))?v((function(){var r={_w:n,_d:!1};try{t.call(e,l(z,r,1),l(F,r,1))}catch(e){F.call(r,e)}})):(n._v=e,n._s=1,R(n,!1))}catch(e){F.call({_w:n,_d:!1},e)}}};T||(O=function(e){m(this,O,k,"_h"),f(e),r.call(this);try{e(l(z,this,1),l(F,this,1))}catch(e){F.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(196)(O.prototype,{then:function(e,t){var n=P(g(this,O));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=N?E.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&R(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=l(z,e,1),this.reject=l(F,e,1)},b.f=P=function(e){return e===O||e===o?new i(e):a(e)}),p(p.G+p.W+p.F*!T,{Promise:O}),n(71)(O,k),n(198)(k),o=n(23)[k],p(p.S+p.F*!T,k,{reject:function(e){var t=P(this);return(0,t.reject)(e),t.promise}}),p(p.S+p.F*(s||!T),k,{resolve:function(e){return x(s&&this===o?O:this,e)}}),p(p.S+p.F*!(T&&n(189)((function(e){O.all(e).catch(j)}))),k,{all:function(e){var t=this,n=P(t),r=n.resolve,a=n.reject,i=w((function(){var n=[],i=0,o=1;h(e,!1,(function(e){var s=i++,u=!1;n.push(void 0),o++,t.resolve(e).then((function(e){u||(u=!0,n[s]=e,--o||r(n))}),a)})),--o||r(n)}));return i.e&&a(i.v),n.promise},race:function(e){var t=this,n=P(t),r=n.reject,a=w((function(){h(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return a.e&&r(a.v),n.promise}})},function(e,t,n){var r=n(199)(!0);n(103)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(41),a=n(23),i=n(11),o=n(108),s=n(105);r(r.P+r.R,"Promise",{finally:function(e){var t=o(this,a.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},function(e,t,n){var r=n(41),a=n(70),i=n(104);r(r.S,"Promise",{try:function(e){var t=a.f(this),n=i(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){n(204);for(var r=n(11),a=n(31),i=n(35),o=n(13)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var l=s[u],c=r[l],p=c&&c.prototype;p&&!p[o]&&a(p,o,l),i[l]=i.Array}},function(e,t,n){function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=n(112)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var a=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(a++,"%c"===e&&(i=a))})),e.splice(i,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},function(e,t,n){"undefined"==typeof process||"renderer"===process.type?e.exports=n(211):e.exports=n(213)},function(e,t,n){var r=n(79),a=n(2);(t=e.exports=n(112)).init=function(e){e.inspectOpts={};for(var n=Object.keys(t.inspectOpts),r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(){return process.stderr.write(a.format.apply(a,arguments)+"\n")},t.formatArgs=function(e){var n=this.namespace,r=this.useColors;if(r){var a=this.color,i="[3"+(a<8?a:"8;5;"+a),o=" "+i+";1m"+n+" [0m";e[0]=o+e[0].split("\n").join("\n"+o),e.push(i+"m+"+t.humanize(this.diff)+"[0m")}else e[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+n+" "+e[0]},t.save=function(e){null==e?delete process.env.DEBUG:process.env.DEBUG=e},t.load=o,t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)},t.colors=[6,2,3,4,5,1];try{var i=n(239);i&&i.level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}function o(){return process.env.DEBUG}t.inspectOpts=Object.keys(process.env).filter((function(e){return/^debug_/i.test(e)})).reduce((function(e,t){var n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(function(e,t){return t.toUpperCase()})),r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e}),{}),t.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split("\n").map((function(e){return e.trim()})).join(" ")},t.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)},t.enable(o())},,,,function(e,t,n){var r=n(0),a="win32"===process.platform,i=n(3),o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function s(e){return"function"==typeof e?e:function(){var e;if(o){var t=new Error;e=function(e){e&&(t.message=e.message,n(e=t))}}else e=n;return e;function n(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}()}if(r.normalize,a)var u=/(.*?)(?:[\/\\]+|$)/g;else u=/(.*?)(?:[\/]+|$)/g;if(a)var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else l=/^[\/]*/;t.realpathSync=function(e,t){if(e=r.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var n,o,s,c,p=e,d={},f={};function m(){var t=l.exec(e);n=t[0].length,o=t[0],s=t[0],c="",a&&!f[s]&&(i.lstatSync(s),f[s]=!0)}for(m();n<e.length;){u.lastIndex=n;var h=u.exec(e);if(c=o,o+=h[0],s=c+h[1],n=u.lastIndex,!(f[s]||t&&t[s]===s)){var g;if(t&&Object.prototype.hasOwnProperty.call(t,s))g=t[s];else{var y=i.lstatSync(s);if(!y.isSymbolicLink()){f[s]=!0,t&&(t[s]=s);continue}var v=null;if(!a){var b=y.dev.toString(32)+":"+y.ino.toString(32);d.hasOwnProperty(b)&&(v=d[b])}null===v&&(i.statSync(s),v=i.readlinkSync(s)),g=r.resolve(c,v),t&&(t[s]=g),a||(d[b]=v)}e=r.resolve(g,e.slice(n)),m()}}return t&&(t[p]=e),e},t.realpath=function(e,t,n){if("function"!=typeof n&&(n=s(t),t=null),e=r.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return process.nextTick(n.bind(null,null,t[e]));var o,c,p,d,f=e,m={},h={};function g(){var t=l.exec(e);o=t[0].length,c=t[0],p=t[0],d="",a&&!h[p]?i.lstat(p,(function(e){if(e)return n(e);h[p]=!0,y()})):process.nextTick(y)}function y(){if(o>=e.length)return t&&(t[f]=e),n(null,e);u.lastIndex=o;var r=u.exec(e);return d=c,c+=r[0],p=d+r[1],o=u.lastIndex,h[p]||t&&t[p]===p?process.nextTick(y):t&&Object.prototype.hasOwnProperty.call(t,p)?w(t[p]):i.lstat(p,v)}function v(e,r){if(e)return n(e);if(!r.isSymbolicLink())return h[p]=!0,t&&(t[p]=p),process.nextTick(y);if(!a){var o=r.dev.toString(32)+":"+r.ino.toString(32);if(m.hasOwnProperty(o))return b(null,m[o],p)}i.stat(p,(function(e){if(e)return n(e);i.readlink(p,(function(e,t){a||(m[o]=t),b(e,t)}))}))}function b(e,a,i){if(e)return n(e);var o=r.resolve(d,a);t&&(t[i]=o),w(o)}function w(t){e=r.resolve(t,e.slice(o)),g()}g()}},function(e,t,n){e.exports=m,m.GlobSync=h;var r=n(3),a=n(114),i=n(60);i.Minimatch,n(75).Glob,n(2);var o=n(0),s=n(22),u=n(76),l=n(115);l.alphasort,l.alphasorti;var c=l.setopts,p=l.ownProp,d=l.childrenIgnored,f=l.isIgnored;function m(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new h(e,t).found}function h(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof h))return new h(e,t);if(c(this,e,t),this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var r=0;r<n;r++)this._process(this.minimatch.set[r],r,!1);this._finish()}h.prototype._finish=function(){if(s(this instanceof h),this.realpath){var e=this;this.matches.forEach((function(t,n){var r=e.matches[n]=Object.create(null);for(var i in t)try{i=e._makeAbs(i),r[a.realpathSync(i,e.realpathCache)]=!0}catch(t){if("stat"!==t.syscall)throw t;r[e._makeAbs(i)]=!0}}))}l.finish(this)},h.prototype._process=function(e,t,n){s(this instanceof h);for(var r,a=0;"string"==typeof e[a];)a++;switch(a){case e.length:return void this._processSimple(e.join("/"),t);case 0:r=null;break;default:r=e.slice(0,a).join("/")}var o,l=e.slice(a);null===r?o=".":u(r)||u(e.join("/"))?(r&&u(r)||(r="/"+r),o=r):o=r;var c=this._makeAbs(o);d(this,o)||(l[0]===i.GLOBSTAR?this._processGlobStar(r,o,c,l,t,n):this._processReaddir(r,o,c,l,t,n))},h.prototype._processReaddir=function(e,t,n,r,a,i){var s=this._readdir(n,i);if(s){for(var u=r[0],l=!!this.minimatch.negate,c=u._glob,p=this.dot||"."===c.charAt(0),d=[],f=0;f<s.length;f++)("."!==(g=s[f]).charAt(0)||p)&&(l&&!e?!g.match(u):g.match(u))&&d.push(g);var m=d.length;if(0!==m)if(1!==r.length||this.mark||this.stat)for(r.shift(),f=0;f<m;f++){var h;g=d[f],h=e?[e,g]:[g],this._process(h.concat(r),a,i)}else{this.matches[a]||(this.matches[a]=Object.create(null));for(var f=0;f<m;f++){var g=d[f];e&&(g="/"!==e.slice(-1)?e+"/"+g:e+g),"/"!==g.charAt(0)||this.nomount||(g=o.join(this.root,g)),this._emitMatch(a,g)}}}},h.prototype._emitMatch=function(e,t){if(!f(this,t)){var n=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=n),!this.matches[e][t]){if(this.nodir){var r=this.cache[n];if("DIR"===r||Array.isArray(r))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}},h.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,n;try{n=r.lstatSync(e)}catch(e){if("ENOENT"===e.code)return null}var a=n&&n.isSymbolicLink();return this.symlinks[e]=a,a||!n||n.isDirectory()?t=this._readdir(e,!1):this.cache[e]="FILE",t},h.prototype._readdir=function(e,t){if(t&&!p(this.symlinks,e))return this._readdirInGlobStar(e);if(p(this.cache,e)){var n=this.cache[e];if(!n||"FILE"===n)return null;if(Array.isArray(n))return n}try{return this._readdirEntries(e,r.readdirSync(e))}catch(t){return this._readdirError(e,t),null}},h.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var r=t[n];r="/"===e?e+r:e+"/"+r,this.cache[r]=!0}return this.cache[e]=t,t},h.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var r=new Error(t.code+" invalid cwd "+this.cwd);throw r.path=this.cwd,r.code=t.code,r}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t)}},h.prototype._processGlobStar=function(e,t,n,r,a,i){var o=this._readdir(n,i);if(o){var s=r.slice(1),u=e?[e]:[],l=u.concat(s);this._process(l,a,!1);var c=o.length;if(!this.symlinks[n]||!i)for(var p=0;p<c;p++)if("."!==o[p].charAt(0)||this.dot){var d=u.concat(o[p],s);this._process(d,a,!0);var f=u.concat(o[p],r);this._process(f,a,!0)}}},h.prototype._processSimple=function(e,t){var n=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),n){if(e&&u(e)&&!this.nomount){var r=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=o.join(this.root,e):(e=o.resolve(this.root,e),r&&(e+="/"))}"win32"===process.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}},h.prototype._stat=function(e){var t=this._makeAbs(e),n="/"===e.slice(-1);if(e.length>this.maxLength)return!1;if(!this.stat&&p(this.cache,t)){var a=this.cache[t];if(Array.isArray(a)&&(a="DIR"),!n||"DIR"===a)return a;if(n&&"FILE"===a)return!1}var i=this.statCache[t];if(!i){var o;try{o=r.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(o&&o.isSymbolicLink())try{i=r.statSync(t)}catch(e){i=o}else i=o}return this.statCache[t]=i,a=!0,i&&(a=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||a,(!n||"FILE"!==a)&&a},h.prototype._mark=function(e){return l.mark(this,e)},h.prototype._makeAbs=function(e){return l.makeAbs(this,e)}},,,function(e,t,n){e.exports=function(e,t){var n=(t=t||process.argv).indexOf("--"),r=/^--/.test(e)?"":"--",a=t.indexOf(r+e);return-1!==a&&(-1===n||a<n)}},,function(e,t,n){var r=n(123),a=Object.create(null),i=n(61);e.exports=r((function(e,t){return a[e]?(a[e].push(t),null):(a[e]=[t],function(e){return i((function t(){var n=a[e],r=n.length,i=function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r]=e[r];return n}(arguments);try{for(var o=0;o<r;o++)n[o].apply(null,i)}finally{n.length>r?(n.splice(0,r),process.nextTick((function(){t.apply(null,i)}))):delete a[e]}}))}(e))}))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},,,function(e,t,n){e.exports=void 0!==n},,function(e,t){var n=1e3,r=60*n,a=60*r,i=24*a,o=365.25*i;function s(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,t){t=t||{};var u,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*o;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*a;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===l&&!1===isNaN(e))return t.long?s(u=e,i,"day")||s(u,a,"hour")||s(u,r,"minute")||s(u,n,"second")||u+" ms":function(e){return e>=i?Math.round(e/i)+"d":e>=a?Math.round(e/a)+"h":e>=r?Math.round(e/r)+"m":e>=n?Math.round(e/n)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},,,,function(e,t,n){e.exports=d,d.sync=y;var r=n(22),a=n(0),i=n(3),o=n(75),s=parseInt("666",8),u={nosort:!0,silent:!0},l=0,c="win32"===process.platform;function p(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach((function(t){e[t]=e[t]||i[t],e[t+="Sync"]=e[t]||i[t]})),e.maxBusyTries=e.maxBusyTries||3,e.emfileWait=e.emfileWait||1e3,!1===e.glob&&(e.disableGlob=!0),e.disableGlob=e.disableGlob||!1,e.glob=e.glob||u}function d(e,t,n){"function"==typeof t&&(n=t,t={}),r(e,"rimraf: missing path"),r.equal(typeof e,"string","rimraf: path should be a string"),r.equal(typeof n,"function","rimraf: callback function required"),r(t,"rimraf: invalid options argument provided"),r.equal(typeof t,"object","rimraf: options should be object"),p(t);var a=0,i=null,s=0;if(t.disableGlob||!o.hasMagic(e))return u(null,[e]);function u(e,r){return e?n(e):0===(s=r.length)?n():void r.forEach((function(e){f(e,t,(function r(o){if(o){if(("EBUSY"===o.code||"ENOTEMPTY"===o.code||"EPERM"===o.code)&&a<t.maxBusyTries)return a++,setTimeout((function(){f(e,t,r)}),100*a);if("EMFILE"===o.code&&l<t.emfileWait)return setTimeout((function(){f(e,t,r)}),l++);"ENOENT"===o.code&&(o=null)}l=0,function(e){i=i||e,0==--s&&n(i)}(o)}))}))}t.lstat(e,(function(n,r){if(!n)return u(null,[e]);o(e,t.glob,u)}))}function f(e,t,n){r(e),r(t),r("function"==typeof n),t.lstat(e,(function(r,a){return r&&"ENOENT"===r.code?n(null):(r&&"EPERM"===r.code&&c&&m(e,t,r,n),a&&a.isDirectory()?g(e,t,r,n):void t.unlink(e,(function(r){if(r){if("ENOENT"===r.code)return n(null);if("EPERM"===r.code)return c?m(e,t,r,n):g(e,t,r,n);if("EISDIR"===r.code)return g(e,t,r,n)}return n(r)})))}))}function m(e,t,n,a){r(e),r(t),r("function"==typeof a),n&&r(n instanceof Error),t.chmod(e,s,(function(r){r?a("ENOENT"===r.code?null:n):t.stat(e,(function(r,i){r?a("ENOENT"===r.code?null:n):i.isDirectory()?g(e,t,n,a):t.unlink(e,a)}))}))}function h(e,t,n){r(e),r(t),n&&r(n instanceof Error);try{t.chmodSync(e,s)}catch(e){if("ENOENT"===e.code)return;throw n}try{var a=t.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw n}a.isDirectory()?v(e,t,n):t.unlinkSync(e)}function g(e,t,n,i){r(e),r(t),n&&r(n instanceof Error),r("function"==typeof i),t.rmdir(e,(function(o){!o||"ENOTEMPTY"!==o.code&&"EEXIST"!==o.code&&"EPERM"!==o.code?o&&"ENOTDIR"===o.code?i(n):i(o):function(e,t,n){r(e),r(t),r("function"==typeof n),t.readdir(e,(function(r,i){if(r)return n(r);var o,s=i.length;if(0===s)return t.rmdir(e,n);i.forEach((function(r){d(a.join(e,r),t,(function(r){if(!o)return r?n(o=r):void(0==--s&&t.rmdir(e,n))}))}))}))}(e,t,i)}))}function y(e,t){var n;if(p(t=t||{}),r(e,"rimraf: missing path"),r.equal(typeof e,"string","rimraf: path should be a string"),r(t,"rimraf: missing options"),r.equal(typeof t,"object","rimraf: options should be object"),t.disableGlob||!o.hasMagic(e))n=[e];else try{t.lstatSync(e),n=[e]}catch(r){n=o.sync(e,t.glob)}if(n.length)for(var a=0;a<n.length;a++){e=n[a];try{var i=t.lstatSync(e)}catch(n){if("ENOENT"===n.code)return;"EPERM"===n.code&&c&&h(e,t,n)}try{i&&i.isDirectory()?v(e,t,null):t.unlinkSync(e)}catch(n){if("ENOENT"===n.code)return;if("EPERM"===n.code)return c?h(e,t,n):v(e,t,n);if("EISDIR"!==n.code)throw n;v(e,t,n)}}}function v(e,t,n){r(e),r(t),n&&r(n instanceof Error);try{t.rmdirSync(e)}catch(i){if("ENOENT"===i.code)return;if("ENOTDIR"===i.code)throw n;"ENOTEMPTY"!==i.code&&"EEXIST"!==i.code&&"EPERM"!==i.code||function(e,t){r(e),r(t),t.readdirSync(e).forEach((function(n){y(a.join(e,n),t)}));for(var n=c?100:1,i=0;;){var o=!0;try{var s=t.rmdirSync(e,t);return o=!1,s}finally{if(++i<n&&o)continue}}}(e,t)}}},,,,,,function(e,t,n){var r,a=n(221),i=a("no-color")||a("no-colors")||a("color=false")?0:a("color=16m")||a("color=full")||a("color=truecolor")?3:a("color=256")?2:a("color")||a("colors")||a("color=true")||a("color=always")?1:process.stdout&&!process.stdout.isTTY?0:"win32"===process.platform?1:"CI"in process.env?"TRAVIS"in process.env||"Travis"===process.env.CI?1:0:"TEAMCITY_VERSION"in process.env?null===process.env.TEAMCITY_VERSION.match(/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/)?0:1:/^(screen|xterm)-256(?:color)?/.test(process.env.TERM)?2:/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)||"COLORTERM"in process.env?1:(process.env.TERM,0);0===i&&"FORCE_COLOR"in process.env&&(i=1),e.exports=process&&0!==(r=i)&&{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}])),MR.exports}var FR={};Object.defineProperty(FR,"__esModule",{value:!0}),FR.queryLockFile=void 0;const zR=OR;FR.queryLockFile=function(e,t,n){const r=(0,zR.nameAtVersion)(e,t);return n.object[r]};var BR={};Object.defineProperty(BR,"__esModule",{value:!0}),function(e){var t=oe&&oe.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=oe&&oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=oe&&oe.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&t(r,e,a);return n(r,e),r},a=oe&&oe.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)},i=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.queryLockFile=e.nameAtVersion=e.parseLockFile=void 0;const o=i(R.default),s=i(A.default),u=OR;Object.defineProperty(e,"nameAtVersion",{enumerable:!0,get:function(){return u.nameAtVersion}});const l=uR(),c=NR,p=PR,d=xP,f=AR,m={};e.parseLockFile=async function(e){const t=(0,l.searchUp)(["yarn.lock","common/config/rush/yarn.lock"],e);if(t){if(m[t])return m[t];const e=o.default.readFileSync(t,"utf-8");let n={type:"success",object:{}};if(e.includes("__metadata")||o.default.existsSync(s.default.resolve(e.replace("yarn.lock",".yarnrc.yml")))){const e=(0,d.readYaml)(t);n=(0,f.parseBerryLock)(e)}else{n=(0,(await Promise.resolve().then((()=>r(LR())))).parse)(e)}return m[t]=n,n}let n=(0,l.searchUp)(["pnpm-lock.yaml","common/config/rush/pnpm-lock.yaml"],e);if(n){if(m[n])return m[n];const e=(0,d.readYaml)(n),t=(0,c.parsePnpmLock)(e);return m[n]=t,m[n]}let a=(0,l.searchUp)("package-lock.json",e);if(a){if(m[a])return m[a];let e;try{e=o.default.readFileSync(a,"utf-8")}catch{throw new Error("Couldn’t parse package-lock.json.")}const t=JSON.parse(e.toString());if(!(null==t?void 0:t.lockfileVersion)||t.lockfileVersion<2)throw new Error(`Your package-lock.json version is not supported: lockfileVersion is ${t.lockfileVersion}. You need npm version 7 or above and package-lock version 2 or above. Please, upgrade npm or choose a different package manager.`);return m[a]=(0,p.parseNpmLock)(t),m[a]}throw new Error("You do not have yarn.lock, pnpm-lock.yaml or package-lock.json. Please use one of these package managers.")};var h=FR;Object.defineProperty(e,"queryLockFile",{enumerable:!0,get:function(){return h.queryLockFile}}),a(BR,e)}(DR);var UR={},qR=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(UR,"__esModule",{value:!0}),UR.getScopedPackages=void 0;const $R=qR(nx);UR.getScopedPackages=function(e,t){const n=Array.isArray(t)?t:Object.keys(t),r=new Set,a=e.filter((e=>e.startsWith("@")||e.startsWith("!@")));if(a.length>0){const e=(0,$R.default)(n,a);for(const t of e)r.add(t)}const i=e.filter((e=>!e.startsWith("@")&&!e.startsWith("!@")));if(i.length>0){const e=function(e){const t={};for(const n of e){const e=n.replace(/^@[^/]+\//,"");t[e]=t[e]||[],t[e].push(n)}return t}(n);let t=(0,$R.default)(Object.keys(e),i);for(const n of t)for(const t of e[n])r.add(t)}return[...r]};var VR={};Object.defineProperty(VR,"__esModule",{value:!0});var HR={};Object.defineProperty(HR,"__esModule",{value:!0});var WR={};Object.defineProperty(WR,"__esModule",{value:!0});var GR={};Object.defineProperty(GR,"__esModule",{value:!0}),GR.findWorkspacePath=void 0,GR.findWorkspacePath=function(e,t){const n=e.find((({name:e})=>e===t));if(n)return n.path};var KR={},YR={},QR=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(YR,"__esModule",{value:!0}),YR.getPackagesByFiles=void 0;const XR=QR(nx),JR=QR(A.default),ZR=Xj;YR.getPackagesByFiles=function(e,t,n=[],r=!1){const a=(0,ZR.getWorkspaces)(e),i=new Set((0,XR.default)(t,n));t=t.filter((e=>!i.has(e)));const o=new Set;for(const n of t){const t=a.filter((t=>0===n.indexOf(JR.default.relative(e,t.path).replace(/\\/g,"/"))));if(t&&t.length>0){const e=t.reduce(((e,t)=>e.path.length>t.path.length?e:t),t[0]);o.add(e.name)}else if(r)return a.map((e=>e.name))}return[...o]},Object.defineProperty(KR,"__esModule",{value:!0}),KR.getChangedPackages=KR.getChangedPackagesBetweenRefs=void 0;const eI=sR(),tI=YR;KR.getChangedPackagesBetweenRefs=function(e,t,n="",r=[]){let a=[...new Set([...(0,eI.getUntrackedChanges)(e)||[],...(0,eI.getUnstagedChanges)(e)||[],...(0,eI.getChangesBetweenRefs)(t,n,[],"",e)||[],...(0,eI.getStagedChanges)(e)||[]])];return(0,tI.getPackagesByFiles)(e,a,r,!0)},KR.getChangedPackages=function(e,t,n=[]){const r=t||(0,eI.getDefaultRemoteBranch)({cwd:e});let a=[...new Set([...(0,eI.getUntrackedChanges)(e)||[],...(0,eI.getUnstagedChanges)(e)||[],...(0,eI.getBranchChanges)(r,e)||[],...(0,eI.getStagedChanges)(e)||[]])];return(0,tI.getPackagesByFiles)(e,a,n,!0)};var nI={};Object.defineProperty(nI,"__esModule",{value:!0}),nI.listOfWorkspacePackageNames=void 0,nI.listOfWorkspacePackageNames=function(e){return e.map((({name:e})=>e))},function(e){var t=oe&&oe.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=oe&&oe.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(qj,e),n(Kj,e),n(sR(),e),n(bR,e),n(DR,e),n(uR(),e),n(UR,e),n(VR,e),n(HR,e),n(WR,e),n(GR,e),n(Xj,e),n(yA(),e),n(UT(),e),n(lA(),e),n(hP(),e),n(KR,e),n(YR,e),n(nI,e),n(Qj,e)}(Uj);var rI={},aI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{filterInternalDependencies:()=>n,resolveInternalDependencies:()=>r});const t=Uj;function n(e,n){const r=(0,t.listOfWorkspacePackageNames)(n);return Object.keys(e).filter((e=>r.indexOf(e)>=0))}function r(e,t){return n(e,t)}}(aI);var iI={},oI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{hashStrings:()=>i,getPackageRoot:()=>o,nameAtVersion:()=>s});const t=a(A.default),n=a(q.default),r=a(St.exports);function a(e){return e&&e.__esModule?e:{default:e}}function i(e){const t=n.default.createHash("sha1"),r=[..."string"==typeof e?[e]:e];return r.sort(((e,t)=>e.localeCompare(t))),r.forEach((e=>t.update(e))),t.digest("hex")}async function o(e){const n=await(0,r.default)("package.json",{cwd:e});if(!n)throw new Error(`Could not find package.json inside ${e}.`);return t.default.dirname(n)}function s(e,t){return`${e}@${t}`}}(oI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{filterExternalDependencies:()=>r,addToQueue:()=>a,resolveExternalDependencies:()=>i});const t=Uj,n=oI;function r(e,n){const r=(0,t.listOfWorkspacePackageNames)(n),a={};return Object.entries(e).forEach((([e,t])=>{r.indexOf(e)<0&&(a[e]=t)})),a}function a(e,t,r){e&&Object.entries(e).forEach((([e,a])=>{const i=(0,n.nameAtVersion)(e,a);(function(e,t){return e.indexOf(t)>=0})(t,i)||function(e,t){return Boolean(e.find((([e,r])=>(0,n.nameAtVersion)(e,r)===t)))}(r,i)||r.push([e,a])}))}function i(e,i,o){const s=r(e,i),u=[],l=[],c=Object.entries(s);for(;c.length>0;){const e=c.shift();if(!e)continue;const[r,i]=e;l.push((0,n.nameAtVersion)(r,i));const s=(0,t.queryLockFile)(r,i,o);if(s){const{version:e,dependencies:t}=s;a(t,l,c),u.push((0,n.nameAtVersion)(r,e))}else u.push((0,n.nameAtVersion)(r,i))}return u}}(iI);var sI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"generateHashOfFiles",{enumerable:!0,get:()=>i});const t=a(A.default),n=oI;function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}return a.default=e,n&&n.set(e,a),a}async function i(e,r){const{repoHashes:a,root:i,packageHashes:o}=r,s=[],u=t.default.relative(i,e).replace(/\\/g,"/");if(o[u]){for(const e of o[u])s.push(e[0],e[1]);return(0,n.hashStrings)(s)}{const r=t.default.normalize(e)+t.sep,o=Object.keys(a).filter((e=>t.default.join(i,e).includes(r)));o.sort(((e,t)=>e.localeCompare(t)));const s=[];for(const e of o)s.push(e,a[e]);return(0,n.hashStrings)(s)}}}(sI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{generateHashOfInternalPackages:()=>l,getPackageHash:()=>p});const t=u(q.default),n=u(A.default),r=u(R.default),a=aI,i=iI,o=sI,s=oI;function u(e){return e&&e.__esModule?e:{default:e}}function l(e){e.sort(((e,t)=>e.name.localeCompare(t.name)));const n=t.default.createHash("sha1");return e.forEach((e=>{n.update(e.name),n.update(e.filesHash),n.update(e.dependenciesHash)})),n.digest("hex")}const c={};async function p(e,t){const{workspaceInfo:u,parsedLock:l}=t,p=n.default.resolve(e);if(c[p])return c[p];const{name:d,dependencies:f,devDependencies:m}=JSON.parse(r.default.readFileSync(n.default.join(e,"package.json"),"utf-8")),h={...f,...m},g=(0,a.resolveInternalDependencies)(h,u),y=(0,i.resolveExternalDependencies)(h,u,l),v=[...g,...y],b={name:d,filesHash:await(0,o.generateHashOfFiles)(e,t),dependenciesHash:(0,s.hashStrings)(v),internalDependencies:g};return c[p]=b,b}}(rI);var uI={},lI={},cI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{parseGitLsTree:()=>a,parseGitDiffIndex:()=>i,parseGitStatus:()=>o,getRepoRoot:()=>u,applyWorkingTreeState:()=>l,getRepoState:()=>c,getRepoChanges:()=>p,ensureGitMinimumVersion:()=>d,parseGitVersion:()=>f});const t=n(ID.exports);function n(e){return e&&e.__esModule?e:{default:e}}const r={major:2,minor:20,patch:0};function a(e){const t=new Map;let n=0,r=e.indexOf("\0",n);for(;r>=0;){const a=e.slice(n,r),i=a.indexOf("\t"),o=a.slice(i+1),s=a.slice(i-40,i);t.set(o,s),n=r+1,r=e.indexOf("\0",n)}return t}function i(e){const t=new Map;let n=0,r=e.indexOf("\0",n);for(;r>=0;){const a=e.slice(n,r),i=a.slice(-1);n=r+1,r=e.indexOf("\0",n);const o=e.slice(n,r),s=a.slice(8,14),u=a.slice(-83,-43),l=a.slice(-42,-2);t.set(o,{mode:s,oldhash:u,newhash:l,status:i}),n=r+1,r=e.indexOf("\0",n)}return t}function o(e){const t=new Map;let n=0,r=e.indexOf("\0",n);for(;r>=0;){const a=e.charAt(n+1),i="D"===a||" "===a&&"D"===e.charAt(n),o=e.slice(n+3,r);t.set(o,!i),n=r+1,r=e.indexOf("\0",n)}return t}const s=new Map;function u(e,n){let r=s.get(e);if(!r){const a=t.default.sync(n||"git",["--no-optional-locks","rev-parse","--show-toplevel"],{cwd:e});if(0!==a.exitCode)throw d(n),new Error(`git rev-parse exited with status ${a.exitCode}: ${a.stderr}`);s.set(e,r=a.stdout.trim())}return r}function l(e,n,r){const a=t.default.sync(r||"git",["--no-optional-locks","status","-z","-u","--no-renames","--"],{cwd:e});if(0!==a.exitCode)throw d(r),new Error(`git status exited with status ${a.exitCode}: ${a.stderr}`);const i=o(a.stdout),s=[];for(const[e,t]of i)t?s.push(e):n.delete(e);if(s.length){const a=t.default.sync(r||"git",["hash-object","--stdin-paths"],{cwd:e,input:s.join("\n")});if(0!==a.exitCode)throw d(r),new Error(`git hash-object exited with status ${a.exitCode}: ${a.stderr}`);const i=a.stdout.trim().split("\n");if(i.length!==s.length)throw new Error(`Passed ${s.length} file paths to Git to hash, but received ${i.length} hashes.`);const o=i.length;for(let e=0;e<o;e++){const t=i[e],r=s[e];n.set(r,t)}}}function c(e,n){const r=u(e,n),i=t.default.sync(n||"git",["--no-optional-locks","ls-tree","-r","-z","--full-name","HEAD","--"],{cwd:r});if(0!==i.exitCode)throw d(n),new Error(`git ls-tree exited with status ${i.exitCode}: ${i.stderr}`);const o=a(i.stdout);return l(r,o,n),o}function p(e,n="HEAD",r){const a=u(e,r),o=t.default.sync(r||"git",["--no-optional-locks","diff-index","--color=never","--no-renames","--no-commit-id","--cached","-z",n,"--"],{cwd:a});if(0!==o.exitCode)throw d(r),new Error(`git diff-index exited with status ${o.exitCode}: ${o.stderr}`);return i(o.stdout)}function d(e){const n=function(e){const n=t.default.sync(e||"git",["version"]);if(0!==n.exitCode)throw new Error(`While validating the Git installation, the "git version" command failed with status ${n.exitCode}: ${n.stderr}`);return f(n.stdout)}(e);if(n.major<r.major||n.major===r.major&&n.minor<r.minor||n.major===r.major&&n.minor===r.minor&&n.patch<r.patch)throw new Error(`The minimum Git version required is ${r.major}.${r.minor}.${r.patch}. Your version is ${n.major}.${n.minor}.${n.patch}.`)}function f(e){const t=/^git version (\d+)\.(\d+)\.(\d+)/.exec(e);if(!t)throw new Error(`While validating the Git installation, the "git version" command produced unexpected output: "${e}"`);return{major:parseInt(t[1],10),minor:parseInt(t[2],10),patch:parseInt(t[3],10)}}}(cI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{parseGitFilename:()=>s,parseGitLsTree:()=>u,parseGitStatus:()=>l,getGitHashForFiles:()=>c,gitLsTree:()=>p,gitStatus:()=>d,getPackageDeps:()=>f});const t=o(A.default),n=cI,r=a(ID.exports);function a(e){return e&&e.__esModule?e:{default:e}}function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function s(e){return e.match(/^".+"$/)?(e=(e=e.replace(/%/g,"%25")).replace(/(?:\\(\d{1,3}))/g,((e,...[t,n,r])=>{const a=r.slice(0,n).match(/\\*$/);return a&&a.length>0&&a[0].length%2==0?`%${parseInt(t,8).toString(16)}`:e})),JSON.parse(decodeURIComponent(e))):e}function u(e){const t=new Map;if(e){const n=/([0-9]{6})\s(blob|commit)\s([a-f0-9]{40})\s*(.*)/,r=e.trim().split("\n");for(const e of r)if(e){const r=e.match(n);if(!(r&&r[3]&&r[4]))throw new Error(`Cannot parse git ls-tree input: "${e}"`);{const e=r[3],n=s(r[4]);t.set(n,e)}}}return t}function l(e){const t=new Map;if(!e)return t;const n=e.trim().split("\n");for(const e of n){const n=e.match(/("(\\"|[^"])+")|(\S+\s*)/g);if(n&&n.length>1){const[e,...r]=n;let a=e.startsWith("R")?r[r.length-1]:r.join("");a=s(a),t.set(a,e.trimRight())}}return t}function c(e,a,i){const o=new Map;if(e.length){const s=r.default.sync(i||"git",["hash-object","--stdin-paths"],{input:e.map((e=>t.resolve(a,e))).join("\n")});if(0!==s.exitCode)throw(0,n.ensureGitMinimumVersion)(i),new Error(`git hash-object exited with status ${s.exitCode}: ${s.stderr}`);const u=s.stdout.trim().split("\n");if(u.length!==e.length)throw new Error(`Passed ${e.length} file paths to Git to hash, but received ${u.length} hashes.`);for(let t=0;t<u.length;t++){const n=u[t],r=e[t];o.set(r,n)}}return o}function p(e,t){const a=r.default.sync(t||"git",["ls-tree","HEAD","-r"],{cwd:e});if(0!==a.exitCode)throw(0,n.ensureGitMinimumVersion)(t),new Error(`git ls-tree exited with status ${a.exitCode}: ${a.stderr}`);return a.stdout}function d(e,t){const a=r.default.sync(t||"git",["status","-s","-u","."],{cwd:e});if(0!==a.exitCode)throw(0,n.ensureGitMinimumVersion)(t),new Error(`git status exited with status ${a.exitCode}: ${a.stderr}`);return a.stdout}function f(e=process.cwd(),t,n){const r=u(p(e,n));if(t)for(const e of t)r.delete(e);const a=l(d(e,n)),i=[],o=new Set(t);for(const[e,t]of a)"D"===t||2===t.length&&"D"===t.charAt(1)?r.delete(e):o.has(e)||i.push(e);const s=c(i,e,n);for(const[e,t]of s)r.set(e,t);return r}}(lI);var pI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createPackageHashes",{enumerable:!0,get:()=>r});const t=n(A.default);function n(e){return e&&e.__esModule?e:{default:e}}function r(e,n,r){const a={};for(const r of n){const n=t.default.relative(e,r.path).split(/[\\/]/);let i=a;for(const e of n)i[e]=i[e]||{},i=i[e]}const i={};for(const[e,t]of Object.entries(r)){const n=e.split(/[\\/]/);let r=a;const o=[];for(const e of n){if(!r[e])break;r=r[e],o.push(e)}const s=o.join("/");i[s]=i[s]||[],i[s].push([e,t])}return i}}(pI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{getRepoInfoNoCache:()=>i,getRepoInfo:()=>s});const t=Uj,n=lI,r=pI,a=[];async function i(e){const i=(0,t.getWorkspaceRoot)(e);if(!i)throw new Error("Cannot initialize Repo class without a workspace root");const o=Object.fromEntries((0,n.getPackageDeps)(i)),s=Object.keys(o).sort(((e,t)=>e.localeCompare(t))).reduce(((e,t)=>(e[t]=o[t],e)),{}),u=(0,t.getWorkspaces)(i),l={root:i,workspaceInfo:u,parsedLock:await(0,t.parseLockFile)(i),repoHashes:s,packageHashes:(0,r.createPackageHashes)(i,u,s)};return a.push(l),l}let o=Promise.resolve();async function s(e){return o=o.then((async()=>{const t=function(e){for(const t of a)if(t.workspaceInfo&&e.startsWith(t.root))return t}(e);return t||i(e)})),o}}(uI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{addToQueue:()=>s,Hasher:()=>u});const t=Uj,n=rI,r=oI,a=(i=uI,o=e,Object.keys(i).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(o,e)||Object.defineProperty(o,e,{enumerable:!0,get:function(){return i[e]}})})),i);var i,o;function s(e,n,r,a){e.forEach((e=>{const i=(0,t.findWorkspacePath)(a,e);i&&(function(e,t){return Boolean(e.find((({name:e})=>e===t)))}(r,e)||function(e,t){return e.indexOf(t)>=0}(n,i)||n.push(i))}))}class u{async createPackageHash(e){const t=await(0,r.getPackageRoot)(this.packageRoot);this.repoInfo=await(0,a.getRepoInfo)(t);const{workspaceInfo:i}=this.repoInfo,o=[t],u=[];for(;o.length>0;){const e=o.shift();if(!e)continue;const t=await(0,n.getPackageHash)(e,this.repoInfo);s(t.internalDependencies,o,u,i),u.push(t)}const l=(0,n.generateHashOfInternalPackages)(u),c=(0,r.hashStrings)(e);return(0,r.hashStrings)([l,c])}constructor(e){this.packageRoot=e}}}(Bj);var dI={},fI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"hashStrings",{enumerable:!0,get:()=>r});const t=n(q.default);function n(e){return e&&e.__esModule?e:{default:e}}function r(e){const n=t.default.createHash("sha1"),r=[..."string"==typeof e?[e]:e];return r.sort(((e,t)=>e.localeCompare(t))),r.forEach((e=>n.update(e))),n.digest("hex")}}(fI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{_testResetEnvHash:()=>i,salt:()=>o});const t=Z.default,n=fI;let r={},a=Promise.resolve();function i(){r={}}async function o(e,i,o,u=""){const l=await async function(e,n){const i=s(e);return a=a.then((()=>r[i]?r[i]:function(e,n){const a=s(e);if(0===e.length)return r[a]=[],r[a];const i=(0,t.hashGlobGit)(e,{cwd:n,gitignore:!1}),o=(u=i,Object.keys(u).sort(((e,t)=>e.localeCompare(t))).reduce(((e,t)=>(e[t]=u[t],e)),{}));var u;return r[a]=Object.values(o),r[a]}(e,n))),a}(e,o);return(0,n.hashStrings)([...l,i,u])}function s(e){return e.sort().join("|")}}(dI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"TargetHasher",{enumerable:!0,get:()=>i});const t=Bj,n=dI,r=Z.default,a=fI;class i{async hash(e){const{root:i}=this.options,o=await(0,n.salt)(e.environmentGlob??this.options.environmentGlob??["lage.config.js"],`${e.id}|${JSON.stringify(this.options.cliArgs)}`,this.options.root,this.options.cacheKey||"");if(e.cwd===i&&e.cache){if(!e.inputs)throw new Error("Root-level targets must have `inputs` defined if it has cache enabled.");const t=(0,r.hashGlobGit)(e.inputs,{cwd:i,gitignore:!1})??{},n=(s=t,Object.keys(s).sort(((e,t)=>e.localeCompare(t))).reduce(((e,t)=>(e[t]=s[t],e)),{})),u=Object.values(n);return u.push(o),(0,a.hashStrings)(u)}var s;return new t.Hasher(e.cwd).createPackageHash(o)}constructor(e){this.options=e}}}(zj),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{BackfillCacheProvider:()=>t.BackfillCacheProvider,RemoteFallbackCacheProvider:()=>n.RemoteFallbackCacheProvider,TargetHasher:()=>r.TargetHasher,getCacheDirectory:()=>a.getCacheDirectory,getLogsCacheDirectory:()=>a.getLogsCacheDirectory,getCacheDirectoryRoot:()=>a.getCacheDirectoryRoot});const t=He,n=Fj,r=zj,a=Mj}(Ve);var mI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isRunningFromCI",{enumerable:!0,get:()=>t});const t=!("test"===process.env.NODE_ENV||!process.env.CI&&!process.env.TF_BUILD)}(mI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createCache",{enumerable:!0,get:()=>r});const t=Ve,n=mI;function r(e){const{cacheOptions:r,logger:a,root:i,skipLocalCache:o,cliArgs:s}=e,u=!!r?.cacheStorageConfig||!!process.env.BACKFILL_CACHE_PROVIDER||!!process.env.BACKFILL_CACHE_PROVIDER_OPTIONS;return{cacheProvider:new t.RemoteFallbackCacheProvider({root:i,logger:a,localCacheProvider:!0===o?void 0:new t.BackfillCacheProvider({logger:a,root:i,cacheOptions:{outputGlob:r?.outputGlob,...r?.internalCacheFolder&&{internalCacheFolder:r.internalCacheFolder},...r?.incrementalCaching&&{incrementalCaching:r.incrementalCaching}}}),remoteCacheProvider:u?new t.BackfillCacheProvider({logger:a,root:i,cacheOptions:r??{}}):void 0,writeRemoteCache:!0===r?.writeRemoteCache||"true"===String(process.env.LAGE_WRITE_CACHE).toLowerCase()||n.isRunningFromCI}),hasher:new t.TargetHasher({root:i,environmentGlob:r?.environmentGlob??[],cacheKey:r?.cacheKey,cliArgs:s})}}}($e);var hI={},gI={},yI={};!function(e){function t(e){return e.sort(((e,t)=>(t.priority??0)-(e.priority??0)))}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"sortTargetsByPriority",{enumerable:!0,get:()=>t})}(yI);var vI={};!function(e){function t(e,t){return`${"string"==typeof e?e:""}#${t}`}function n(e){if(e.includes("#")){const t=e.split("#");return e.startsWith("#")||"//"===t[0]?{packageName:void 0,task:t[1]}:{packageName:t[0],task:t[1]}}return{packageName:void 0,task:e}}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{getTargetId:()=>t,getPackageAndTask:()=>n,getStartTargetId:()=>a});const r="__start";function a(){return r}}(vI);var bI={};!function(e){function t(e){const t=new Map;for(const[r]of e.entries())if(!t.has(r)){const a=n(e,t,r);if(a.length>0)return{hasCycle:!0,cycle:a}}return{hasCycle:!1}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectCycles",{enumerable:!0,get:()=>t});const n=(e,t,n)=>{const r=[{node:n,traversing:!1}];for(;r.length>0;){const n=r[r.length-1];if(n.traversing)t.set(n.node,!1),r.pop();else{if(t.has(n.node)){if(t.get(n.node)){const e=r.filter((e=>e.traversing)).map((e=>e.node));return e.slice(e.indexOf(n.node))}r.pop();continue}t.set(n.node,!0),r[r.length-1]={...n,traversing:!0};const a=e.get(n.node);if(!a)throw new Error(`Could not find node "${n.node}" in the graph`);r.push(...[...a.dependents].map((e=>({node:e,traversing:!1}))))}}return[]}}(bI);var wI={},_I={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"expandDepSpecs",{enumerable:!0,get:()=>n});const t=vI;function n(e,n){const r=[],i=(e,t)=>{r.push([e,t])},o=(e,t)=>t?s.filter((n=>{const{task:r,packageName:a}=n;return r===e&&t.some((e=>e===a))})).map((e=>e.id)):s.filter((t=>t.task===e)).map((e=>e.id)),s=[...e.values()];for(const u of s){const{depSpecs:s,packageName:l,id:c}=u;if(r.push([(0,t.getStartTargetId)(),c]),s&&0!==s.length)for(const r of s)if(r.includes("#")){const{packageName:e,task:n}=(0,t.getPackageAndTask)(r);i((0,t.getTargetId)(e,n),c)}else if(r.startsWith("^^")&&l){const e=o(r.substring(2),[...a(l,n)??[]]);for(const t of e)i(t,c)}else if(r.startsWith("^")&&l){const e=o(r.substring(1),[...n.dependencies.get(l)??[]]);for(const t of e)i(t,c)}else if(l){const n=r;e.has((0,t.getTargetId)(l,n))&&i((0,t.getTargetId)(l,n),c)}else{if(r.startsWith("^"))throw new Error(`invalid pipeline config detected: ${u.id}, packageName: ${l}, dep: ${r}`);{const e=o(r);for(const t of e)i(t,c)}}}return r}const r=new Map;function a(e,t){const n=r.get(e);if(n)return"walk-in-progress"===n?new Set:n;{r.set(e,"walk-in-progress");const n=[...t.dependencies.get(e)??[]],i=new Set(n);for(const e of n)for(const n of a(e,t))i.add(n);return r.set(e,i),i}}}(_I);var xI={},kI={};!function(e){function t(e,t){const n=[],r=new Map([...e.entries()].map((([e,t])=>[e,new Set(t.dependencies)])));const a=[...t];for(;a.length>0;){const t=a.pop();n.push(t);e.get(t).dependents.forEach((e=>{const n=r.get(e);n.delete(t),0===n.size&&a.push(e)}))}return n}function n(e){const n=new Map,r=function(e){const t=[];for(const[n,r]of e)0===r.dependencies.length&&t.push(n);return t}(e),a=t(e,r);for(const t of a){const r=e.get(t),a=r.priority||0,i=r.dependencies.map((e=>{const t=n.get(e);if(void 0===t)throw new Error(`Expected to have already computed the cumulative priority for node ${e}`);return t})),o=a+Math.max(...i,0);n.set(t,o)}for(const t of e.values()){const e=n.get(t.id);if(void 0===e)throw new Error(`Expected to have already computed the cumulative priority for node ${t.id}`);t.priority=e}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"prioritize",{enumerable:!0,get:()=>n})}(kI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"TargetGraphBuilder",{enumerable:!0,get:()=>a});const t=vI,n=kI,r=bI;class a{addTarget(e){return this.targets.set(e.id,e),this.addDependency((0,t.getStartTargetId)(),e.id),e}addDependency(e,t){if(this.targets.has(t)){const n=this.targets.get(t);n.dependencies.includes(e)||n.dependencies.push(e)}if(this.targets.has(e)){const n=this.targets.get(e);n.dependents.includes(t)||n.dependents.push(t)}}build(){const e=(0,r.detectCycles)(this.targets);if(e.hasCycle)throw new Error("Cycles detected in the target graph: "+e.cycle.concat(e.cycle[0]).join(" -> "));return(0,n.prioritize)(this.targets),{targets:this.targets}}subgraph(e){const n=new a,r=[],i=[];for(const t of e)if(this.targets.has(t)){const e=this.targets.get(t);n.addTarget({...e,dependencies:[],dependents:[]}),i.push(t)}for(;i.length>0;){const e=i.shift();if(r.includes(e))continue;r.push(e);const a=this.targets.get(e);if(!a)throw new Error("Subgraph builder failed - target not found: "+e);for(const r of a.dependencies)r!==(0,t.getStartTargetId)()&&(n.targets.has(r)||n.addTarget({...this.targets.get(r),dependencies:[],dependents:[]}),n.addDependency(r,e)),i.push(r)}return n.build()}constructor(){this.targets=new Map;const e=(0,t.getStartTargetId)();this.targets.set(e,{id:e,task:e,cwd:"",label:"Start",hidden:!0,dependencies:[],dependents:[],depSpecs:[],weight:1,priority:0})}}}(xI);var SI={},EI={};!function(e){function t(e,t,n){return"number"==typeof t?t:"function"==typeof t?t(e,n):1}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getWeight",{enumerable:!0,get:()=>t})}(EI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"TargetFactory",{enumerable:!0,get:()=>r});const t=vI,n=EI;class r{createPackageTarget(e,r,a){const{resolve:i}=this.options,{options:o,deps:s,dependsOn:u,cache:l,inputs:c,outputs:p,priority:d,maxWorkers:f,environmentGlob:m,weight:h}=a,g=i(e),y={id:(0,t.getTargetId)(e,r),label:`${e} - ${r}`,type:a.type,packageName:e,task:r,cache:!1!==l,cwd:g,depSpecs:u??s??[],dependencies:[],dependents:[],inputs:c,outputs:p,priority:d,maxWorkers:f,environmentGlob:m,weight:1,options:o};return y.weight=(0,n.getWeight)(y,h,f),y}createGlobalTarget(e,r){const{root:a}=this.options,{options:i,deps:o,dependsOn:s,cache:u,inputs:l,outputs:c,priority:p,maxWorkers:d,environmentGlob:f,weight:m}=r,{task:h}=(0,t.getPackageAndTask)(e),g={id:e,label:e,type:r.type,task:h,cache:!1!==u,cwd:a,depSpecs:s??o??[],dependencies:[],dependents:[],inputs:l,outputs:c,priority:p,maxWorkers:d,environmentGlob:f,weight:1,options:i};return g.weight=(0,n.getWeight)(g,m,d),g}constructor(e){this.options=e}}}(SI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"WorkspaceTargetGraphBuilder",{enumerable:!0,get:()=>u});const t=_R,n=vI,r=_I,a=s(A.default),i=xI,o=SI;function s(e){return e&&e.__esModule?e:{default:e}}class u{addTargetConfig(e,t={}){if(e.startsWith("//")||e.startsWith("#")){const n=this.targetFactory.createGlobalTarget(e,t);this.graphBuilder.addTarget(n)}else if(e.includes("#")){const{packageName:r,task:a}=(0,n.getPackageAndTask)(e),i=this.targetFactory.createPackageTarget(r,a,t);this.graphBuilder.addTarget(i)}else{const n=Object.keys(this.packageInfos);for(const r of n){const n=e,a=this.targetFactory.createPackageTarget(r,n,t);this.graphBuilder.addTarget(a)}}}build(e,t){const a=(0,r.expandDepSpecs)(this.graphBuilder.targets,this.dependencyMap);for(const[e,t]of a)this.graphBuilder.addDependency(e,t);const i=[];for(const r of e)if(t)for(const e of t)i.push((0,n.getTargetId)(e,r));else for(const e of Object.keys(this.packageInfos))i.push((0,n.getTargetId)(e,r));return{targets:this.graphBuilder.subgraph(i).targets}}constructor(e,n){this.packageInfos=n,this.dependencyMap=(0,t.createDependencyMap)(n,{withDevDependencies:!0,withPeerDependencies:!1}),this.graphBuilder=new i.TargetGraphBuilder,this.targetFactory=new o.TargetFactory({root:e,resolve:e=>a.default.dirname(n[e].packageJsonPath)})}}}(wI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{sortTargetsByPriority:()=>t.sortTargetsByPriority,getTargetId:()=>n.getTargetId,getStartTargetId:()=>n.getStartTargetId,detectCycles:()=>r.detectCycles,WorkspaceTargetGraphBuilder:()=>a.WorkspaceTargetGraphBuilder,TargetGraphBuilder:()=>i.TargetGraphBuilder,TargetFactory:()=>o.TargetFactory});const t=yI,n=vI,r=bI,a=wI,i=xI,o=SI}(gI);var CI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{getFilteredPackages:()=>i,filterPackages:()=>o});const t=Uj,n=a(RE);function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}return a.default=e,n&&n.set(e,a),a}function i(e){const{scope:r,since:a,sinceIgnoreGlobs:i,repoWideChanges:s,includeDependents:u,includeDependencies:l,logger:c,packageInfos:p,root:d}=e;let f,m,h;const g=void 0!==a;if(Array.isArray(r)&&r.length>0)return f=(0,t.getScopedPackages)(r,p),o({logger:c,packageInfos:p,scopedPackages:f,changedPackages:h,includeDependencies:l,includeDependents:u});if(g){try{h=(0,t.getChangedPackages)(d,a,i)}catch(e){c.warn(`An error in the git command has caused this scope run to include every package\n${e}`)}return m=o({logger:c,packageInfos:p,scopedPackages:f,changedPackages:h,includeDependencies:l,includeDependents:u}),function(e,r,a,i){try{const i=(0,t.getBranchChanges)(e,r),o=n.sync(a,{cwd:r});let s=!1;if(i)for(const e of i)if(o.includes(e)){s=!0;break}return s}catch(e){return i.warn(`An error in the git command has caused this to consider the repo has changed\n${e}`),!0}}(a,d,s,c)&&(c.verbose(`Repo-wide changes detected, running all packages. The following changed packages and their deps (if specified) will be run first: ${m.join(",")}`),m=[...new Set(m.concat(Object.keys(p)))]),m}return Object.keys(p)}function o(e){const{scopedPackages:n,changedPackages:r,packageInfos:a,includeDependents:i,includeDependencies:o,logger:s}=e;let u=[];void 0!==n&&void 0!==r?(u=r.filter((e=>n.includes(e))).concat((0,t.getTransitiveDependents)(r,a,n)),s.verbose(`filterPackages changed within scope: ${u.join(",")}`)):void 0!==r?(u=[...r],s.verbose(`filterPackages changed: ${r.join(",")}`)):void 0!==n?(u=[...n],s.verbose(`filterPackages scope: ${n.join(",")}`)):u=Object.keys(a),i&&(s.verbose("filterPackages running with dependents"),u=u.concat((0,t.getTransitiveDependents)(u,a))),o&&(s.verbose("filterPackages running with dependencies"),u=u.concat((0,t.getTransitiveDependencies)(u,a)));return[...new Set(u)]}}(CI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createTargetGraph",{enumerable:!0,get:()=>r});const t=gI,n=CI;function r(e){const{logger:r,root:a,dependencies:i,dependents:o,since:s,scope:u,repoWideChanges:l,ignore:c,pipeline:p,outputs:d,tasks:f,packageInfos:m}=e,h=new t.WorkspaceTargetGraphBuilder(a,m),g=(0,n.getFilteredPackages)({root:a,logger:r,packageInfos:m,includeDependencies:i,includeDependents:o,since:s,scope:u,repoWideChanges:l,sinceIgnoreGlobs:c});for(const[e,t]of Object.entries(p))Array.isArray(t)?h.addTargetConfig(e,{cache:!0,dependsOn:t,options:{},outputs:d}):h.addTargetConfig(e,t);return h.build(f,g)}}(hI);var DI={};!function(e){function t(e){const t=e.findIndex((e=>e.startsWith("-")));return{tasks:e.slice(0,-1===t?void 0:t),taskArgs:-1===t?[]:e.slice(t)}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"filterArgsForTasks",{enumerable:!0,get:()=>t})}(DI);var OI,NI={},jI={},PI={},TI={},AI={},RI={exports:{}};function II(){if(OI)return RI.exports;OI=1;const e=A.default,t=ee.default,n=R.default,r=(r,a,i)=>{if("string"!=typeof r)throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof r}\``);if("string"!=typeof a)throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof a}\``);try{r=n.realpathSync(r)}catch(t){if("ENOENT"!==t.code){if(i)return null;throw t}r=e.resolve(r)}const o=e.join(r,"noop.js"),s=()=>t._resolveFilename(a,{id:o,filename:o,paths:t._nodeModulePaths(r)});if(i)try{return s()}catch(e){return null}return s()};return RI.exports=(e,t)=>r(e,t),RI.exports.silent=(e,t)=>r(e,t,!0),RI.exports}var MI,LI,FI,zI,BI,UI,qI,$I,VI,HI,WI,GI={exports:{}};function KI(){if(MI)return GI.exports;MI=1;const e=()=>{const e=Error.prepareStackTrace;Error.prepareStackTrace=(e,t)=>t;const t=(new Error).stack.slice(1);return Error.prepareStackTrace=e,t};return GI.exports=e,GI.exports.default=e,GI.exports}function YI(){if(FI)return LI;FI=1;const e=KI();return LI=t=>{const n=e();if(!t)return n[2].getFileName();let r=!1;n.shift();for(const e of n){const n=e.getFileName();if("string"==typeof n)if(n!==t){if("module.js"!==n&&r&&n!==t)return n}else r=!0}}}function QI(){return qI?UI:(qI=1,UI=function(e){return!!e&&(e instanceof Array||Array.isArray(e)||e.length>=0&&e.splice instanceof Function)})}function XI(){if(WI)return HI;WI=1;class e extends SyntaxError{constructor(e,t,n,r){const a=((e,t,n)=>{if(!t)return{message:e.message+" while parsing empty string",position:0};const r=e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i),a=r?+r[2]:e.message.match(/^Unexpected end of JSON.*/i)?t.length-1:null,i=r?e.message.replace(/^Unexpected token ./,`Unexpected token ${JSON.stringify(r[1])} (${(e=>{const t=e.charCodeAt(0).toString(16).toUpperCase();return"0x"+(t.length%2?"0":"")+t})(r[1])})`):e.message;if(null!=a){const e=a<=n?0:a-n,r=a+n>=t.length?t.length:a+n,o=(0===e?"":"...")+t.slice(e,r)+(r===t.length?"":"...");return{message:i+` while parsing ${t===o?"":"near "}${JSON.stringify(o)}`,position:a}}return{message:i+` while parsing '${t.slice(0,2*n)}'`,position:0}})(e,t,n=n||20);super(a.message),Object.assign(this,a),this.code="EJSONPARSE",this.systemError=e,Error.captureStackTrace(this,r||this.constructor)}get name(){return this.constructor.name}set name(e){}get[Symbol.toStringTag](){return this.constructor.name}}const t=Symbol.for("indent"),n=Symbol.for("newline"),r=/^\s*[{\[]((?:\r?\n)+)([\s\t]*)/,a=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,i=(s,u,l)=>{const c=o(s);l=l||20;try{const[,e="\n",i=" "]=c.match(a)||c.match(r)||[,"",""],o=JSON.parse(c,u);return o&&"object"==typeof o&&(o[n]=e,o[t]=i),o}catch(t){if("string"!=typeof s&&!Buffer.isBuffer(s)){const e=Array.isArray(s)&&0===s.length;throw Object.assign(new TypeError(`Cannot parse ${e?"an empty array":String(s)}`),{code:"EJSONPARSE",systemError:t})}throw new e(t,c,l,i)}},o=e=>String(e).replace(/^\uFEFF/,"");return HI=i,i.JSONParseError=e,i.noExceptions=(e,t)=>{try{return JSON.parse(o(e),t)}catch(e){}},HI}var JI,ZI={};var eM,tM={},nM={},rM={};var aM,iM={},oM={};var sM,uM,lM={};function cM(){return uM||(uM=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return n.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return n.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return n.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return n.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return n.isStrictReservedWord}});var t=function(){if(aM)return oM;aM=1,Object.defineProperty(oM,"__esModule",{value:!0}),oM.isIdentifierChar=u,oM.isIdentifierName=function(e){let t=!0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(55296==(64512&r)&&n+1<e.length){const t=e.charCodeAt(++n);56320==(64512&t)&&(r=65536+((1023&r)<<10)+(1023&t))}if(t){if(t=!1,!s(r))return!1}else if(!u(r))return!1}return!t},oM.isIdentifierStart=s;let e="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",t="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const n=new RegExp("["+e+"]"),r=new RegExp("["+e+t+"]");e=t=null;const a=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],i=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function o(e,t){let n=65536;for(let r=0,a=t.length;r<a;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function s(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&n.test(String.fromCharCode(e)):o(e,a)))}function u(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&r.test(String.fromCharCode(e)):o(e,a)||o(e,i))))}return oM}(),n=function(){if(sM)return lM;sM=1,Object.defineProperty(lM,"__esModule",{value:!0}),lM.isKeyword=function(e){return n.has(e)},lM.isReservedWord=i,lM.isStrictBindOnlyReservedWord=s,lM.isStrictBindReservedWord=function(e,t){return o(e,t)||s(e)},lM.isStrictReservedWord=o;const e=["implements","interface","let","package","private","protected","public","static","yield"],t=["eval","arguments"],n=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),r=new Set(e),a=new Set(t);function i(e,t){return t&&"await"===e||"enum"===e}function o(e,t){return i(e,t)||r.has(e)}function s(e){return a.has(e)}return lM}()}(iM)),iM}var pM,dM,fM,mM,hM,gM,yM,vM,bM,wM,_M,xM,kM,SM,EM,CM,DM,OM,NM,jM={exports:{}},PM={exports:{}},TM={exports:{}};function AM(){if(fM)return TM.exports;fM=1;var e=dM?pM:(dM=1,pM={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);var r=TM.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in r)if(r.hasOwnProperty(a)){if(!("channels"in r[a]))throw new Error("missing channels property: "+a);if(!("labels"in r[a]))throw new Error("missing channel labels property: "+a);if(r[a].labels.length!==r[a].channels)throw new Error("channel and label counts mismatch: "+a);var i=r[a].channels,o=r[a].labels;delete r[a].channels,delete r[a].labels,Object.defineProperty(r[a],"channels",{value:i}),Object.defineProperty(r[a],"labels",{value:o})}return r.rgb.hsl=function(e){var t,n,r=e[0]/255,a=e[1]/255,i=e[2]/255,o=Math.min(r,a,i),s=Math.max(r,a,i),u=s-o;return s===o?t=0:r===s?t=(a-i)/u:a===s?t=2+(i-r)/u:i===s&&(t=4+(r-a)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(o+s)/2,[t,100*(s===o?0:n<=.5?u/(s+o):u/(2-s-o)),100*n]},r.rgb.hsv=function(e){var t,n,r,a,i,o=e[0]/255,s=e[1]/255,u=e[2]/255,l=Math.max(o,s,u),c=l-Math.min(o,s,u),p=function(e){return(l-e)/6/c+.5};return 0===c?a=i=0:(i=c/l,t=p(o),n=p(s),r=p(u),o===l?a=r-n:s===l?a=1/3+t-r:u===l&&(a=2/3+n-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*i,100*l]},r.rgb.hwb=function(e){var t=e[0],n=e[1],a=e[2];return[r.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,a))),100*(a=1-1/255*Math.max(t,Math.max(n,a)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,a=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-a)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]},r.rgb.keyword=function(n){var r=t[n];if(r)return r;var a,i,o,s=1/0;for(var u in e)if(e.hasOwnProperty(u)){var l=e[u],c=(i=n,o=l,Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)+Math.pow(i[2]-o[2],2));c<s&&(s=c,a=u)}return a},r.keyword.rgb=function(t){return e[t]},r.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],a=t[1],i=t[2];return a/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(n-a),200*(a-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},r.hsl.rgb=function(e){var t,n,r,a,i,o=e[0]/360,s=e[1]/100,u=e[2]/100;if(0===s)return[i=255*u,i,i];t=2*u-(n=u<.5?u*(1+s):u+s-u*s),a=[0,0,0];for(var l=0;l<3;l++)(r=o+1/3*-(l-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,a[l]=255*i;return a},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,a=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,a*=i<=1?i:2-i,[t,100*(0===r?2*a/(i+a):2*n/(r+n)),100*((r+n)/2)]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,a=Math.floor(t)%6,i=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*i),u=255*r*(1-n*(1-i));switch(r*=255,a){case 0:return[r,u,o];case 1:return[s,r,o];case 2:return[o,r,u];case 3:return[o,s,r];case 4:return[u,o,r];case 5:return[r,o,s]}},r.hsv.hsl=function(e){var t,n,r,a=e[0],i=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return r=(2-i)*o,n=i*s,[a,100*(n=(n/=(t=(2-i)*s)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,a,i,o,s,u=e[0]/360,l=e[1]/100,c=e[2]/100,p=l+c;switch(p>1&&(l/=p,c/=p),r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),a=l+r*((n=1-c)-l),t){default:case 6:case 0:i=n,o=a,s=l;break;case 1:i=a,o=n,s=l;break;case 2:i=l,o=n,s=a;break;case 3:i=l,o=a,s=n;break;case 4:i=a,o=l,s=n;break;case 5:i=n,o=l,s=a}return[255*i,255*o,255*s]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a))]},r.xyz.rgb=function(e){var t,n,r,a=e[0]/100,i=e[1]/100,o=e[2]/100;return n=-.9689*a+1.8758*i+.0415*o,r=.0557*a+-.204*i+1.057*o,t=(t=3.2406*a+-1.5372*i+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,a=e[0];t=e[1]/500+(n=(a+16)/116),r=n-e[2]/200;var i=Math.pow(n,3),o=Math.pow(t,3),s=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],a=e[2];return(t=360*Math.atan2(a,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+a*a),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],a=e[2],i=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,a=e[2]/255,i=Math.max(Math.max(n,r),a),o=Math.min(Math.min(n,r),a),s=i-o;return t=s<=0?0:i===n?(r-a)/s%6:i===r?2+(a-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?o/(1-s):0)]},r.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,a=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(a=(n-.5*r)/(1-r)),[e[0],100*r,100*a]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var a,i=[0,0,0],o=t%1*6,s=o%1,u=1-s;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return a=(1-n)*r,[255*(n*i[0]+a),255*(n*i[1]+a),255*(n*i[2]+a)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]},TM.exports}function RM(){if(hM)return mM;hM=1;var e=AM();function t(t){var n=function(){for(var t={},n=Object.keys(e),r=n.length,a=0;a<r;a++)t[n[a]]={distance:-1,parent:null};return t}(),r=[t];for(n[t].distance=0;r.length;)for(var a=r.pop(),i=Object.keys(e[a]),o=i.length,s=0;s<o;s++){var u=i[s],l=n[u];-1===l.distance&&(l.distance=n[a].distance+1,l.parent=a,r.unshift(u))}return n}function n(e,t){return function(n){return t(e(n))}}function r(t,r){for(var a=[r[t].parent,t],i=e[r[t].parent][t],o=r[t].parent;r[o].parent;)a.unshift(r[o].parent),i=n(e[r[o].parent][o],i),o=r[o].parent;return i.conversion=a,i}return mM=function(e){for(var n=t(e),a={},i=Object.keys(n),o=i.length,s=0;s<o;s++){var u=i[s];null!==n[u].parent&&(a[u]=r(u,n))}return a},mM}function IM(){if(yM)return gM;yM=1;var e=AM(),t=RM(),n={};return Object.keys(e).forEach((function(r){n[r]={},Object.defineProperty(n[r],"channels",{value:e[r].channels}),Object.defineProperty(n[r],"labels",{value:e[r].labels});var a=t(r);Object.keys(a).forEach((function(e){var t=a[e];n[r][e]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,a=0;a<r;a++)n[a]=Math.round(n[a]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(t),n[r][e].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(t)}))})),gM=n}function MM(){return wM?bM:(wM=1,bM=(e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),a=t.indexOf("--");return-1!==r&&(-1===a||r<a)})}function LM(){if(xM)return _M;xM=1;const e=M.default,t=MM(),n=process.env;let r;function a(a){const i=function(a){if(!1===r)return 0;if(t("color=16m")||t("color=full")||t("color=truecolor"))return 3;if(t("color=256"))return 2;if(a&&!a.isTTY&&!0!==r)return 0;const i=r?1:0;if("win32"===process.platform){const t=e.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in n)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in n))||"codeship"===n.CI_NAME?1:i;if("TEAMCITY_VERSION"in n)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(n.TEAMCITY_VERSION)?1:0;if("truecolor"===n.COLORTERM)return 3;if("TERM_PROGRAM"in n){const e=parseInt((n.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(n.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(n.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(n.TERM)||"COLORTERM"in n?1:(n.TERM,i)}(a);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(i)}return t("no-color")||t("no-colors")||t("color=false")?r=!1:(t("color")||t("colors")||t("color=true")||t("color=always"))&&(r=!0),"FORCE_COLOR"in n&&(r=0===n.FORCE_COLOR.length||0!==parseInt(n.FORCE_COLOR,10)),_M={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}}function FM(){return EM||(EM=1,function(e){const t=Ci,n=(vM||(vM=1,function(e){const t=IM(),n=(e,n)=>function(){return`[${e.apply(t,arguments)+n}m`},r=(e,n)=>function(){const r=e.apply(t,arguments);return`[${38+n};5;${r}m`},a=(e,n)=>function(){const r=e.apply(t,arguments);return`[${38+n};2;${r[0]};${r[1]};${r[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.grey=i.color.gray;for(const t of Object.keys(i)){const n=i[t];for(const t of Object.keys(n)){const r=n[t];i[t]={open:`[${r[0]}m`,close:`[${r[1]}m`},n[t]=i[t],e.set(r[0],r[1])}Object.defineProperty(i,t,{value:n,enumerable:!1}),Object.defineProperty(i,"codes",{value:e,enumerable:!1})}const o=e=>e,s=(e,t,n)=>[e,t,n];i.color.close="[39m",i.bgColor.close="[49m",i.color.ansi={ansi:n(o,0)},i.color.ansi256={ansi256:r(o,0)},i.color.ansi16m={rgb:a(s,0)},i.bgColor.ansi={ansi:n(o,10)},i.bgColor.ansi256={ansi256:r(o,10)},i.bgColor.ansi16m={rgb:a(s,10)};for(let e of Object.keys(t)){if("object"!=typeof t[e])continue;const o=t[e];"ansi16"===e&&(e="ansi"),"ansi16"in o&&(i.color.ansi[e]=n(o.ansi16,0),i.bgColor.ansi[e]=n(o.ansi16,10)),"ansi256"in o&&(i.color.ansi256[e]=r(o.ansi256,0),i.bgColor.ansi256[e]=r(o.ansi256,10)),"rgb"in o&&(i.color.ansi16m[e]=a(o.rgb,0),i.bgColor.ansi16m[e]=a(o.rgb,10))}return i}})}(PM)),PM.exports),r=LM().stdout,a=function(){if(SM)return kM;SM=1;const e=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,t=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,r=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function i(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):a.get(e)||e}function o(e,t){const a=[],o=t.trim().split(/\s*,\s*/g);let s;for(const t of o)if(isNaN(t)){if(!(s=t.match(n)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);a.push(s[2].replace(r,((e,t,n)=>t?i(t):n)))}else a.push(Number(t));return a}function s(e){t.lastIndex=0;const n=[];let r;for(;null!==(r=t.exec(e));){const e=r[1];if(r[2]){const t=o(e,r[2]);n.push([e].concat(t))}else n.push([e])}return n}function u(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const e of Object.keys(n))if(Array.isArray(n[e])){if(!(e in r))throw new Error(`Unknown Chalk style: ${e}`);r=n[e].length>0?r[e].apply(r,n[e]):r[e]}return r}return kM=(t,n)=>{const r=[],a=[];let o=[];if(n.replace(e,((e,n,l,c,p,d)=>{if(n)o.push(i(n));else if(c){const e=o.join("");o=[],a.push(0===r.length?e:u(t,r)(e)),r.push({inverse:l,styles:s(c)})}else if(p){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");a.push(u(t,r)(o.join(""))),o=[],r.pop()}else o.push(d)})),a.push(o.join("")),r.length>0){const e=`Chalk template literal is missing ${r.length} closing bracket${1===r.length?"":"s"} (\`}\`)`;throw new Error(e)}return a.join("")},kM}(),i="win32"===process.platform&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),o=["ansi","ansi","ansi256","ansi16m"],s=new Set(["gray"]),u=Object.create(null);function l(e,t){t=t||{};const n=r?r.level:0;e.level=void 0===t.level?n:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function c(e){if(!this||!(this instanceof c)||this.template){const t={};return l(t,e),t.template=function(){const e=[].slice.call(arguments);return m.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,c.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=c,t.template}l(this,e)}i&&(n.blue.open="[94m");for(const e of Object.keys(n))n[e].closeRe=new RegExp(t(n[e].close),"g"),u[e]={get(){const t=n[e];return d.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};u.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},n.color.closeRe=new RegExp(t(n.color.close),"g");for(const e of Object.keys(n.color.ansi))s.has(e)||(u[e]={get(){const t=this.level;return function(){const r={open:n.color[o[t]][e].apply(null,arguments),close:n.color.close,closeRe:n.color.closeRe};return d.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}});n.bgColor.closeRe=new RegExp(t(n.bgColor.close),"g");for(const e of Object.keys(n.bgColor.ansi)){if(s.has(e))continue;u["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const r={open:n.bgColor[o[t]][e].apply(null,arguments),close:n.bgColor.close,closeRe:n.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}}}const p=Object.defineProperties((()=>{}),u);function d(e,t,n){const r=function(){return f.apply(r,arguments)};r._styles=e,r._empty=t;const a=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>a.level,set(e){a.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>a.enabled,set(e){a.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=p,r}function f(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n<t;n++)r+=" "+e[n];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const a=n.dim.open;i&&this.hasGrey&&(n.dim.open="");for(const e of this._styles.slice().reverse())r=e.open+r.replace(e.closeRe,e.open)+e.close,r=r.replace(/\r?\n/g,`${e.close}$&${e.open}`);return n.dim.open=a,r}function m(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const n=[].slice.call(arguments,2),r=[t.raw[0]];for(let e=1;e<t.length;e++)r.push(String(n[e-1]).replace(/[{}\\]/g,"\\$&")),r.push(String(t.raw[e]));return a(e,r.join(""))}Object.defineProperties(c.prototype,u),e.exports=c(),e.exports.supportsColor=r,e.exports.default=e.exports}(jM)),jM.exports}function zM(){if(CM)return nM;CM=1,Object.defineProperty(nM,"__esModule",{value:!0}),nM.default=function(e,t={}){if(""!==e&&s(t)){const n=function(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}(u(t));return function(e,t){let n="";for(const{type:r,value:i}of o(t)){const t=e[r];n+=t?i.split(a).map((e=>t(e))).join("\n"):i}return n}(n,e)}return e},nM.getChalk=u,nM.shouldHighlight=s;var e=(eM||(eM=1,Object.defineProperty(rM,"__esModule",{value:!0}),rM.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,rM.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}),rM),t=cM(),n=FM();const r=new Set(["as","async","from","get","of","set"]);const a=/\r\n|[\n\r\u2028\u2029]/,i=/^[()[\]{}]$/;let o;{const n=/^[a-z][\w-]*$/i,a=function(e,a,o){if("name"===e.type){if((0,t.isKeyword)(e.value)||(0,t.isStrictReservedWord)(e.value,!0)||r.has(e.value))return"keyword";if(n.test(e.value)&&("<"===o[a-1]||"</"==o.slice(a-2,a)))return"jsxIdentifier";if(e.value[0]!==e.value[0].toLowerCase())return"capitalized"}return"punctuator"===e.type&&i.test(e.value)?"bracket":"invalid"!==e.type||"@"!==e.value&&"#"!==e.value?e.type:"punctuator"};o=function*(t){let n;for(;n=e.default.exec(t);){const r=e.matchToToken(n);yield{type:a(r,n.index,t),value:r.value}}}}function s(e){return!!n.supportsColor||e.forceColor}function u(e){return e.forceColor?new n.constructor({enabled:!0,level:1}):n}return nM}function BM(){if(DM)return tM;DM=1,Object.defineProperty(tM,"__esModule",{value:!0}),tM.codeFrameColumns=r,tM.default=function(e,n,a,i={}){if(!t){t=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(e,"DeprecationWarning");else{new Error(e).name="DeprecationWarning",console.warn(new Error(e))}}a=Math.max(a,0);return r(e,{start:{column:a,line:n}},i)};var e=zM();let t=!1;const n=/\r\n|[\n\r\u2028\u2029]/;function r(t,r,a={}){const i=(a.highlightCode||a.forceColor)&&(0,e.shouldHighlight)(a),o=(0,e.getChalk)(a),s=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(o),u=(e,t)=>i?e(t):t,l=t.split(n),{start:c,end:p,markerLines:d}=function(e,t,n){const r=Object.assign({column:0,line:-1},e.start),a=Object.assign({},r,e.end),{linesAbove:i=2,linesBelow:o=3}=n||{},s=r.line,u=r.column,l=a.line,c=a.column;let p=Math.max(s-(i+1),0),d=Math.min(t.length,l+o);-1===s&&(p=0),-1===l&&(d=t.length);const f=l-s,m={};if(f)for(let e=0;e<=f;e++){const n=e+s;if(u)if(0===e){const e=t[n-1].length;m[n]=[u,e-u+1]}else if(e===f)m[n]=[0,c];else{const r=t[n-e].length;m[n]=[0,r]}else m[n]=!0}else m[s]=u===c?!u||[u,0]:[u,c-u];return{start:p,end:d,markerLines:m}}(r,l,a),f=r.start&&"number"==typeof r.start.column,m=String(p).length;let h=(i?(0,e.default)(t,a):t).split(n,p).slice(c,p).map(((e,t)=>{const n=c+1+t,r=` ${` ${n}`.slice(-m)} |`,i=d[n],o=!d[n+1];if(i){let t="";if(Array.isArray(i)){const n=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),l=i[1]||1;t=["\n ",u(s.gutter,r.replace(/\d/g," "))," ",n,u(s.marker,"^").repeat(l)].join(""),o&&a.message&&(t+=" "+u(s.message,a.message))}return[u(s.marker,">"),u(s.gutter,r),e.length>0?` ${e}`:"",t].join("")}return` ${u(s.gutter,r)}${e.length>0?` ${e}`:""}`})).join("\n");return a.message&&!f&&(h=`${" ".repeat(m+1)}${a.message}\n${h}`),i?o.reset(h):h}return tM}function UM(){if(NM)return OM;NM=1;const e=function(){if(VI)return $I;VI=1;var e=L.default,t=QI(),n=function(n,r){n&&n.constructor===String||(r=n||{},n=Error.name);var a=function e(i){if(!this)return new e(i);i=i instanceof Error?i.message:i||this.message,Error.call(this,i),Error.captureStackTrace(this,a),this.name=n,Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,get:function(){var e=i.split(/\r?\n/g);for(var n in r)if(r.hasOwnProperty(n)){var a=r[n];"message"in a&&(e=a.message(this[n],e)||e,t(e)||(e=[e]))}return e.join("\n")},set:function(e){i=e}});var o=null,s=Object.getOwnPropertyDescriptor(this,"stack"),u=s.get,l=s.value;delete s.value,delete s.writable,s.set=function(e){o=e},s.get=function(){var e=(o||(u?u.call(this):l)).split(/\r?\n+/g);o||(e[0]=this.name+": "+this.message);var t=1;for(var n in r)if(r.hasOwnProperty(n)){var a=r[n];if("line"in a){var i=a.line(this[n]);i&&e.splice(t++,0," "+i)}"stack"in a&&a.stack(this[n],e)}return e.join("\n")},Object.defineProperty(this,"stack",s)};return Object.setPrototypeOf?(Object.setPrototypeOf(a.prototype,Error.prototype),Object.setPrototypeOf(a,Error)):e.inherits(a,Error),a};return n.append=function(e,t){return{message:function(n,r){return(n=n||t)&&(r[0]+=" "+e.replace("%s",n.toString())),r}}},n.line=function(e,t){return{line:function(n){return(n=n||t)?e.replace("%s",n.toString()):null}}},$I=n}(),t=XI(),{default:n}=(JI||(JI=1,function(e){e.__esModule=!0,e.LinesAndColumns=void 0;var t="\n",n="\r",r=function(){function e(e){this.string=e;for(var r=[0],a=0;a<e.length;)switch(e[a]){case t:a+=t.length,r.push(a);break;case n:e[a+=n.length]===t&&(a+=t.length),r.push(a);break;default:a++}this.offsets=r}return e.prototype.locationForIndex=function(e){if(e<0||e>this.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}();e.LinesAndColumns=r,e.default=r}(ZI)),ZI),{codeFrameColumns:r}=BM(),a=e("JSONError",{fileName:e.append("in %s"),codeFrame:e.append("\n\n%s\n")}),i=(e,i,o)=>{"string"==typeof i&&(o=i,i=null);try{try{return JSON.parse(e,i)}catch(n){throw t(e,i),n}}catch(t){t.message=t.message.replace(/\n/g,"");const i=t.message.match(/in JSON at position (\d+) while parsing/),s=new a(t);if(o&&(s.fileName=o),i&&i.length>0){const t=new n(e),a=Number(i[1]),o=t.locationForIndex(a),u=r(e,{start:{line:o.line+1,column:o.column+1}},{highlightCode:!0});s.codeFrame=u}throw s}};return i.JSONError=a,OM=i}var qM,$M,VM={},HM={},WM={};function GM(){if(qM)return WM;qM=1;const e={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},t={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"};function n(e){const t=[0];let n=e.indexOf("\n");for(;-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function r(e){let t,r;return"string"==typeof e?(t=n(e),r=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=n(e.context.src)),t=e.lineStarts,r=e.context.src)),{lineStarts:t,src:r}}function a(e,t){if("number"!=typeof e||e<0)return null;const{lineStarts:n,src:a}=r(t);if(!n||!a||e>a.length)return null;for(let t=0;t<n.length;++t){const r=n[t];if(e<r)return{line:t,col:e-n[t-1]+1};if(e===r)return{line:t+1,col:1}}const i=n.length;return{line:i,col:e-n[i-1]+1}}function i({start:e,end:t},n,a=80){let i=function(e,t){const{lineStarts:n,src:a}=r(t);if(!n||!(e>=1)||e>n.length)return null;const i=n[e-1];let o=n[e];for(;o&&o>i&&"\n"===a[o-1];)--o;return a.slice(i,o)}(e.line,n);if(!i)return null;let{col:o}=e;if(i.length>a)if(o<=a-10)i=i.substr(0,a-1)+"…";else{const e=Math.round(a/2);i.length>o+e&&(i=i.substr(0,o+e-1)+"…"),o-=i.length-a,i="…"+i.substr(1-a)}let s=1,u="";t&&(t.line===e.line&&o+(t.col-e.col)<=a+1?s=t.col-e.col:(s=Math.min(i.length+1,a)-o,u="…"));return`${i}\n${o>1?" ".repeat(o-1):""}${"^".repeat(s)}${u}`}class o{static copy(e){return new o(e.start,e.end)}constructor(e,t){this.start=e,this.end=t||e}isEmpty(){return"number"!=typeof this.start||!this.end||this.end<=this.start}setOrigRange(e,t){const{start:n,end:r}=this;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;let a=t;for(;a<e.length&&!(e[a]>n);)++a;this.origStart=n+a;const i=a;for(;a<e.length&&!(e[a]>=r);)++a;return this.origEnd=r+a,i}}class s{static addStringTerminator(e,t,n){if("\n"===n[n.length-1])return n;const r=s.endOfWhiteSpace(e,t);return r>=e.length||"\n"===e[r]?n+"\n":n}static atDocumentBoundary(t,n,r){const a=t[n];if(!a)return!0;const i=t[n-1];if(i&&"\n"!==i)return!1;if(r){if(a!==r)return!1}else if(a!==e.DIRECTIVES_END&&a!==e.DOCUMENT_END)return!1;const o=t[n+1],s=t[n+2];if(o!==a||s!==a)return!1;const u=t[n+3];return!u||"\n"===u||"\t"===u||" "===u}static endOfIdentifier(e,t){let n=e[t];const r="<"===n,a=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];for(;n&&-1===a.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}static endOfIndent(e,t){let n=e[t];for(;" "===n;)n=e[t+=1];return t}static endOfLine(e,t){let n=e[t];for(;n&&"\n"!==n;)n=e[t+=1];return t}static endOfWhiteSpace(e,t){let n=e[t];for(;"\t"===n||" "===n;)n=e[t+=1];return t}static startOfLine(e,t){let n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}static endOfBlockIndent(e,t,n){const r=s.endOfIndent(e,n);if(r>n+t)return r;{const t=s.endOfWhiteSpace(e,r),n=e[t];if(!n||"\n"===n)return t}return null}static atBlank(e,t,n){const r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}static nextNodeIsIndented(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}static normalizeOffset(e,t){const n=e[t];return n?"\n"!==n&&"\n"===e[t-1]?t-1:s.endOfWhiteSpace(e,t):t}static foldNewline(e,t,n){let r=0,a=!1,i="",o=e[t+1];for(;" "===o||"\t"===o||"\n"===o;){switch(o){case"\n":r=0,t+=1,i+="\n";break;case"\t":r<=n&&(a=!0),t=s.endOfWhiteSpace(e,t+2)-1;break;case" ":r+=1,t+=1}o=e[t+1]}return i||(i=" "),o&&r<=n&&(a=!0),{fold:i,offset:t,error:a}}constructor(e,t,n){Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=t||[],this.type=e,this.value=null}getPropValue(e,t,n){if(!this.context)return null;const{src:r}=this.context,a=this.props[e];return a&&r[a.start]===t?r.slice(a.start+(n?1:0),a.end):null}get anchor(){for(let t=0;t<this.props.length;++t){const n=this.getPropValue(t,e.ANCHOR,!0);if(null!=n)return n}return null}get comment(){const t=[];for(let n=0;n<this.props.length;++n){const r=this.getPropValue(n,e.COMMENT,!0);null!=r&&t.push(r)}return t.length>0?t.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return!1;if(!this.valueRange)return!1;const{end:n}=this.valueRange;return e!==n||s.atBlank(t,n-1)}get hasComment(){if(this.context){const{src:t}=this.context;for(let n=0;n<this.props.length;++n)if(t[this.props[n].start]===e.COMMENT)return!0}return!1}get hasProps(){if(this.context){const{src:t}=this.context;for(let n=0;n<this.props.length;++n)if(t[this.props[n].start]!==e.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return-1!==[t.FLOW_MAP,t.FLOW_SEQ,t.QUOTE_DOUBLE,t.QUOTE_SINGLE].indexOf(this.type)}get rangeAsLinePos(){if(!this.range||!this.context)return;const e=a(this.range.start,this.context.root);if(!e)return;return{start:e,end:a(this.range.end,this.context.root)}}get rawValue(){if(!this.valueRange||!this.context)return null;const{start:e,end:t}=this.valueRange;return this.context.src.slice(e,t)}get tag(){for(let t=0;t<this.props.length;++t){const n=this.getPropValue(t,e.TAG,!1);if(null!=n){if("<"===n[1])return{verbatim:n.slice(2,-1)};{const[e,t,r]=n.match(/^(.*!)([^!]*)$/);return{handle:t,suffix:r}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;const{start:e,end:t}=this.valueRange,{src:n}=this.context;for(let r=e;r<t;++r)if("\n"===n[r])return!0;return!1}parseComment(t){const{src:n}=this.context;if(n[t]===e.COMMENT){const e=s.endOfLine(n,t+1),r=new o(t,e);return this.props.push(r),e}return t}setOrigRanges(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach((n=>n.setOrigRange(e,t))),t}toString(){const{context:{src:e},range:t,value:n}=this;if(null!=n)return n;const r=e.slice(t.start,t.end);return s.addStringTerminator(e,t.end,r)}}class u extends Error{constructor(e,t,n){if(!(n&&t instanceof s))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=n,this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new o(this.offset,this.offset+1);const t=e&&a(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){const{line:t,col:n}=this.linePos.start;this.message+=` at line ${t}, column ${n}`;const r=e&&i(this.linePos,e);r&&(this.message+=`:\n\n${r}\n`)}delete this.source}}class l extends u{constructor(e,t){super("YAMLSemanticError",e,t)}}class c extends s{static endOfLine(e,t,n){let r=e[t],a=t;for(;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){const t=e[a+1];if(":"===r&&(!t||"\n"===t||"\t"===t||" "===t||n&&","===t))break;if((" "===r||"\t"===r)&&"#"===t)break;a+=1,r=t}return a}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:n}=this.context;let r=n[t-1];for(;e<t&&("\n"===r||"\t"===r||" "===r);)r=n[--t-1];let a="";for(let r=e;r<t;++r){const e=n[r];if("\n"===e){const{fold:e,offset:t}=s.foldNewline(n,r,-1);a+=e,r=t}else if(" "===e||"\t"===e){const i=r;let o=n[r+1];for(;r<t&&(" "===o||"\t"===o);)r+=1,o=n[r+1];"\n"!==o&&(a+=r>i?n.slice(i,r+1):e)}else a+=e}const i=n[e];switch(i){case"\t":return{errors:[new l(this,"Plain value cannot start with a tab character")],str:a};case"@":case"`":return{errors:[new l(this,`Plain value cannot start with reserved character ${i}`)],str:a};default:return a}}parseBlockValue(e){const{indent:t,inFlow:n,src:r}=this.context;let a=e,i=e;for(let e=r[a];"\n"===e&&!s.atDocumentBoundary(r,a+1);e=r[a]){const e=s.endOfBlockIndent(r,t,a+1);if(null===e||"#"===r[e])break;"\n"===r[e]?a=e:(i=c.endOfLine(r,e,n),a=i)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=i,i}parse(e,t){this.context=e;const{inFlow:n,src:r}=e;let a=t;const i=r[a];return i&&"#"!==i&&"\n"!==i&&(a=c.endOfLine(r,t,n)),this.valueRange=new o(t,a),a=s.endOfWhiteSpace(r,a),a=this.parseComment(a),this.hasComment&&!this.valueRange.isEmpty()||(a=this.parseBlockValue(a)),a}}return WM.Char=e,WM.Node=s,WM.PlainValue=c,WM.Range=o,WM.Type=t,WM.YAMLError=u,WM.YAMLReferenceError=class extends u{constructor(e,t){super("YAMLReferenceError",e,t)}},WM.YAMLSemanticError=l,WM.YAMLSyntaxError=class extends u{constructor(e,t){super("YAMLSyntaxError",e,t)}},WM.YAMLWarning=class extends u{constructor(e,t){super("YAMLWarning",e,t)}},WM._defineProperty=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},WM.defaultTagPrefix="tag:yaml.org,2002:",WM.defaultTags={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"},WM}function KM(){if($M)return HM;$M=1;var e=GM();class t extends e.Node{constructor(){super(e.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(t,n){return this.context=t,this.range=new e.Range(n,n+1),n+1}}class n extends e.Node{constructor(e,t){super(e,t),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(n,r){this.context=n;const{parseNode:a,src:i}=n;let{atLineStart:o,lineStart:s}=n;o||this.type!==e.Type.SEQ_ITEM||(this.error=new e.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));const u=o?r-s:n.indent;let l=e.Node.endOfWhiteSpace(i,r+1),c=i[l];const p="#"===c,d=[];let f=null;for(;"\n"===c||"#"===c;){if("#"===c){const t=e.Node.endOfLine(i,l+1);d.push(new e.Range(l,t)),l=t}else{o=!0,s=l+1;"\n"===i[e.Node.endOfWhiteSpace(i,s)]&&0===d.length&&(f=new t,s=f.parse({src:i},s)),l=e.Node.endOfIndent(i,s)}c=i[l]}if(e.Node.nextNodeIsIndented(c,l-(s+u),this.type!==e.Type.SEQ_ITEM)?this.node=a({atLineStart:o,inCollection:!1,indent:u,lineStart:s,parent:this},l):c&&s>r+1&&(l=s-1),this.node){if(f){const e=n.parent.items||n.parent.contents;e&&e.push(f)}d.length&&Array.prototype.push.apply(this.props,d),l=this.node.range.end}else if(p){const e=d[0];this.props.push(e),l=e.end}else l=e.Node.endOfLine(i,r+1);const m=this.node?this.node.valueRange.end:l;return this.valueRange=new e.Range(r,m),l}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:t},node:n,range:r,value:a}=this;if(null!=a)return a;const i=n?t.slice(r.start,n.range.start)+String(n):t.slice(r.start,r.end);return e.Node.addStringTerminator(t,r.end,i)}}class r extends e.Node{constructor(){super(e.Type.COMMENT)}parse(t,n){this.context=t;const r=this.parseComment(n);return this.range=new e.Range(n,r),r}}function a(t){let r=t;for(;r instanceof n;)r=r.node;if(!(r instanceof i))return null;const a=r.items.length;let o=-1;for(let t=a-1;t>=0;--t){const n=r.items[t];if(n.type===e.Type.COMMENT){const{indent:e,lineStart:r}=n.context;if(e>0&&n.range.start>=r+e)break;o=t}else{if(n.type!==e.Type.BLANK_LINE)break;o=t}}if(-1===o)return null;const s=r.items.splice(o,a-o),u=s[0].range.start;for(;r.range.end=u,r.valueRange&&r.valueRange.end>u&&(r.valueRange.end=u),r!==t;)r=r.context.parent;return s}class i extends e.Node{static nextContentHasIndent(t,n,r){const a=e.Node.endOfLine(t,n)+1,o=t[n=e.Node.endOfWhiteSpace(t,a)];return!!o&&(n>=a+r||("#"===o||"\n"===o)&&i.nextContentHasIndent(t,n,r))}constructor(t){super(t.type===e.Type.SEQ_ITEM?e.Type.SEQ:e.Type.MAP);for(let e=t.props.length-1;e>=0;--e)if(t.props[e].start<t.context.lineStart){this.props=t.props.slice(0,e+1),t.props=t.props.slice(e+1);const n=t.props[0]||t.valueRange;t.range.start=n.start;break}this.items=[t];const n=a(t);n&&Array.prototype.push.apply(this.items,n)}get includesTrailingLines(){return this.items.length>0}parse(n,o){this.context=n;const{parseNode:s,src:u}=n;let l=e.Node.startOfLine(u,o);const c=this.items[0];c.context.parent=this,this.valueRange=e.Range.copy(c.valueRange);const p=c.range.start-c.context.lineStart;let d=o;d=e.Node.normalizeOffset(u,d);let f=u[d],m=e.Node.endOfWhiteSpace(u,l)===d,h=!1;for(;f;){for(;"\n"===f||"#"===f;){if(m&&"\n"===f&&!h){const e=new t;if(d=e.parse({src:u},d),this.valueRange.end=d,d>=u.length){f=null;break}this.items.push(e),d-=1}else if("#"===f){if(d<l+p&&!i.nextContentHasIndent(u,d,p))return d;const e=new r;if(d=e.parse({indent:p,lineStart:l,src:u},d),this.items.push(e),this.valueRange.end=d,d>=u.length){f=null;break}}if(l=d+1,d=e.Node.endOfIndent(u,l),e.Node.atBlank(u,d)){const t=e.Node.endOfWhiteSpace(u,d),n=u[t];n&&"\n"!==n&&"#"!==n||(d=t)}f=u[d],m=!0}if(!f)break;if(d!==l+p&&(m||":"!==f)){if(d<l+p){l>o&&(d=l);break}if(!this.error){const t="All collection items must start at the same column";this.error=new e.YAMLSyntaxError(this,t)}}if(c.type===e.Type.SEQ_ITEM){if("-"!==f){l>o&&(d=l);break}}else if("-"===f&&!this.error){const t=u[d+1];if(!t||"\n"===t||"\t"===t||" "===t){const t="A collection cannot be both a mapping and a sequence";this.error=new e.YAMLSyntaxError(this,t)}}const n=s({atLineStart:m,inCollection:!0,indent:p,lineStart:l,parent:this},d);if(!n)return d;if(this.items.push(n),this.valueRange.end=n.valueRange.end,d=e.Node.normalizeOffset(u,n.range.end),f=u[d],m=!1,h=n.includesTrailingLines,f){let e=d-1,t=u[e];for(;" "===t||"\t"===t;)t=u[--e];"\n"===t&&(l=e+1,m=!0)}const g=a(n);g&&Array.prototype.push.apply(this.items,g)}return d}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach((n=>{t=n.setOrigRanges(e,t)})),t}toString(){const{context:{src:t},items:n,range:r,value:a}=this;if(null!=a)return a;let i=t.slice(r.start,n[0].range.start)+String(n[0]);for(let e=1;e<n.length;++e){const t=n[e],{atLineStart:r,indent:a}=t.context;if(r)for(let e=0;e<a;++e)i+=" ";i+=String(t)}return e.Node.addStringTerminator(t,r.end,i)}}class o extends e.Node{constructor(){super(e.Type.DIRECTIVE),this.name=null}get parameters(){const e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}parseName(e){const{src:t}=this.context;let n=e,r=t[n];for(;r&&"\n"!==r&&"\t"!==r&&" "!==r;)r=t[n+=1];return this.name=t.slice(e,n),n}parseParameters(t){const{src:n}=this.context;let r=t,a=n[r];for(;a&&"\n"!==a&&"#"!==a;)a=n[r+=1];return this.valueRange=new e.Range(t,r),r}parse(t,n){this.context=t;let r=this.parseName(n+1);return r=this.parseParameters(r),r=this.parseComment(r),this.range=new e.Range(n,r),r}}class s extends e.Node{static startCommentOrEndBlankLine(t,n){const r=e.Node.endOfWhiteSpace(t,n),a=t[r];return"#"===a||"\n"===a?r:n}constructor(){super(e.Type.DOCUMENT),this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(n){const{src:a}=this.context;this.directives=[];let i=!0,u=!1,l=n;for(;!e.Node.atDocumentBoundary(a,l,e.Char.DIRECTIVES_END);)switch(l=s.startCommentOrEndBlankLine(a,l),a[l]){case"\n":if(i){const e=new t;l=e.parse({src:a},l),l<a.length&&this.directives.push(e)}else l+=1,i=!0;break;case"#":{const e=new r;l=e.parse({src:a},l),this.directives.push(e),i=!1}break;case"%":{const e=new o;l=e.parse({parent:this,src:a},l),this.directives.push(e),u=!0,i=!1}break;default:return u?this.error=new e.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l}return a[l]?(this.directivesEndMarker=new e.Range(l,l+3),l+3):(u?this.error=new e.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l)}parseContents(n){const{parseNode:i,src:o}=this.context;this.contents||(this.contents=[]);let u=n;for(;"-"===o[u-1];)u-=1;let l=e.Node.endOfWhiteSpace(o,n),c=u===n;for(this.valueRange=new e.Range(l);!e.Node.atDocumentBoundary(o,l,e.Char.DOCUMENT_END);){switch(o[l]){case"\n":if(c){const e=new t;l=e.parse({src:o},l),l<o.length&&this.contents.push(e)}else l+=1,c=!0;u=l;break;case"#":{const e=new r;l=e.parse({src:o},l),this.contents.push(e),c=!1}break;default:{const t=e.Node.endOfIndent(o,l),n=i({atLineStart:c,indent:-1,inFlow:!1,inCollection:!1,lineStart:u,parent:this},t);if(!n)return this.valueRange.end=t;this.contents.push(n),l=n.range.end,c=!1;const r=a(n);r&&Array.prototype.push.apply(this.contents,r)}}l=s.startCommentOrEndBlankLine(o,l)}if(this.valueRange.end=l,o[l]&&(this.documentEndMarker=new e.Range(l,l+3),l+=3,o[l])){if(l=e.Node.endOfWhiteSpace(o,l),"#"===o[l]){const e=new r;l=e.parse({src:o},l),this.contents.push(e)}switch(o[l]){case"\n":l+=1;break;case void 0:break;default:this.error=new e.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return l}parse(e,t){e.root=this,this.context=e;const{src:n}=e;let r=65279===n.charCodeAt(t)?t+1:t;return r=this.parseDirectives(r),r=this.parseContents(r),r}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.directives.forEach((n=>{t=n.setOrigRanges(e,t)})),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach((n=>{t=n.setOrigRanges(e,t)})),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}toString(){const{contents:t,directives:n,value:r}=this;if(null!=r)return r;let a=n.join("");return t.length>0&&((n.length>0||t[0].type===e.Type.COMMENT)&&(a+="---\n"),a+=t.join("")),"\n"!==a[a.length-1]&&(a+="\n"),a}}class u extends e.Node{parse(t,n){this.context=t;const{src:r}=t;let a=e.Node.endOfIdentifier(r,n+1);return this.valueRange=new e.Range(n+1,a),a=e.Node.endOfWhiteSpace(r,a),a=this.parseComment(a),a}}const l="CLIP",c="KEEP",p="STRIP";class d extends e.Node{constructor(e,t){super(e,t),this.blockIndent=null,this.chomping=l,this.header=null}get includesTrailingLines(){return this.chomping===c}get strValue(){if(!this.valueRange||!this.context)return null;let{start:t,end:n}=this.valueRange;const{indent:r,src:a}=this.context;if(this.valueRange.isEmpty())return"";let i=null,o=a[n-1];for(;"\n"===o||"\t"===o||" "===o;){if(n-=1,n<=t){if(this.chomping===c)break;return""}"\n"===o&&(i=n),o=a[n-1]}let s=n+1;i&&(this.chomping===c?(s=i,n=this.valueRange.end):n=i);const u=r+this.blockIndent,l=this.type===e.Type.BLOCK_FOLDED;let d=!0,f="",m="",h=!1;for(let r=t;r<n;++r){for(let e=0;e<u&&" "===a[r];++e)r+=1;const t=a[r];if("\n"===t)"\n"===m?f+="\n":m="\n";else{const i=e.Node.endOfLine(a,r),o=a.slice(r,i);r=i,l&&(" "===t||"\t"===t)&&r<s?(" "===m?m="\n":h||d||"\n"!==m||(m="\n\n"),f+=m+o,m=i<n&&a[i]||"",h=!0):(f+=m+o,m=l&&r<s?" ":"\n",h=!1),d&&""!==o&&(d=!1)}}return this.chomping===p?f:f+"\n"}parseBlockHeader(t){const{src:n}=this.context;let r=t+1,a="";for(;;){const i=n[r];switch(i){case"-":this.chomping=p;break;case"+":this.chomping=c;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":a+=i;break;default:return this.blockIndent=Number(a)||null,this.header=new e.Range(t,r),r}r+=1}}parseBlockValue(t){const{indent:n,src:r}=this.context,a=!!this.blockIndent;let i=t,o=t,s=1;for(let t=r[i];"\n"===t&&(i+=1,!e.Node.atDocumentBoundary(r,i));t=r[i]){const t=e.Node.endOfBlockIndent(r,n,i);if(null===t)break;const u=r[t],l=t-(i+n);if(this.blockIndent){if(u&&"\n"!==u&&l<this.blockIndent){if("#"===r[t])break;if(!this.error){const t=`Block scalars must not be less indented than their ${a?"explicit indentation indicator":"first line"}`;this.error=new e.YAMLSemanticError(this,t)}}}else if("\n"!==r[t]){if(l<s){const t="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new e.YAMLSemanticError(this,t)}this.blockIndent=l}else l>s&&(s=l);i="\n"===r[t]?t:o=e.Node.endOfLine(r,t)}return this.chomping!==c&&(i=r[o]?o+1:o),this.valueRange=new e.Range(t+1,i),i}parse(t,n){this.context=t;const{src:r}=t;let a=this.parseBlockHeader(n);return a=e.Node.endOfWhiteSpace(r,a),a=this.parseComment(a),a=this.parseBlockValue(a),a}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.header?this.header.setOrigRange(e,t):t}}class f extends e.Node{constructor(e,t){super(e,t),this.items=null}prevNodeIsJsonLike(t=this.items.length){const n=this.items[t-1];return!!n&&(n.jsonLike||n.type===e.Type.COMMENT&&this.prevNodeIsJsonLike(t-1))}parse(n,a){this.context=n;const{parseNode:i,src:o}=n;let{indent:s,lineStart:u}=n,l=o[a];this.items=[{char:l,offset:a}];let c=e.Node.endOfWhiteSpace(o,a+1);for(l=o[c];l&&"]"!==l&&"}"!==l;){switch(l){case"\n":u=c+1;if("\n"===o[e.Node.endOfWhiteSpace(o,u)]){const e=new t;u=e.parse({src:o},u),this.items.push(e)}if(c=e.Node.endOfIndent(o,u),c<=u+s&&(l=o[c],c<u+s||"]"!==l&&"}"!==l)){const t="Insufficient indentation in flow collection";this.error=new e.YAMLSemanticError(this,t)}break;case",":this.items.push({char:l,offset:c}),c+=1;break;case"#":{const e=new r;c=e.parse({src:o},c),this.items.push(e)}break;case"?":case":":{const e=o[c+1];if("\n"===e||"\t"===e||" "===e||","===e||":"===l&&this.prevNodeIsJsonLike()){this.items.push({char:l,offset:c}),c+=1;break}}default:{const t=i({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:u,parent:this},c);if(!t)return this.valueRange=new e.Range(a,c),c;this.items.push(t),c=e.Node.normalizeOffset(o,t.range.end)}}c=e.Node.endOfWhiteSpace(o,c),l=o[c]}return this.valueRange=new e.Range(a,c+1),l&&(this.items.push({char:l,offset:c}),c=e.Node.endOfWhiteSpace(o,c+1),c=this.parseComment(c)),c}setOrigRanges(t,n){return n=super.setOrigRanges(t,n),this.items.forEach((r=>{if(r instanceof e.Node)n=r.setOrigRanges(t,n);else if(0===t.length)r.origOffset=r.offset;else{let e=n;for(;e<t.length&&!(t[e]>r.offset);)++e;r.origOffset=r.offset+e,n=e}})),n}toString(){const{context:{src:t},items:n,range:r,value:a}=this;if(null!=a)return a;const i=n.filter((t=>t instanceof e.Node));let o="",s=r.start;return i.forEach((e=>{const n=t.slice(s,e.range.start);s=e.range.end,o+=n+String(e),"\n"===o[o.length-1]&&"\n"!==t[s-1]&&"\n"===t[s]&&(s+=1)})),o+=t.slice(s,r.end),e.Node.addStringTerminator(t,r.end,o)}}class m extends e.Node{static endOfQuote(e,t){let n=e[t];for(;n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const t=[],{start:n,end:r}=this.valueRange,{indent:a,src:i}=this.context;'"'!==i[r-1]&&t.push(new e.YAMLSyntaxError(this,'Missing closing "quote'));let o="";for(let s=n+1;s<r-1;++s){const n=i[s];if("\n"===n){e.Node.atDocumentBoundary(i,s+1)&&t.push(new e.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));const{fold:n,offset:r,error:u}=e.Node.foldNewline(i,s,a);o+=n,s=r,u&&t.push(new e.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===n)switch(s+=1,i[s]){case"0":o+="\0";break;case"a":o+="";break;case"b":o+="\b";break;case"e":o+="";break;case"f":o+="\f";break;case"n":o+="\n";break;case"r":o+="\r";break;case"t":case"\t":o+="\t";break;case"v":o+="\v";break;case"N":o+="
";break;case"_":o+=" ";break;case"L":o+="\u2028";break;case"P":o+="\u2029";break;case" ":o+=" ";break;case'"':o+='"';break;case"/":o+="/";break;case"\\":o+="\\";break;case"x":o+=this.parseCharCode(s+1,2,t),s+=2;break;case"u":o+=this.parseCharCode(s+1,4,t),s+=4;break;case"U":o+=this.parseCharCode(s+1,8,t),s+=8;break;case"\n":for(;" "===i[s+1]||"\t"===i[s+1];)s+=1;break;default:t.push(new e.YAMLSyntaxError(this,`Invalid escape sequence ${i.substr(s-1,2)}`)),o+="\\"+i[s]}else if(" "===n||"\t"===n){const e=s;let t=i[s+1];for(;" "===t||"\t"===t;)s+=1,t=i[s+1];"\n"!==t&&(o+=s>e?i.slice(e,s+1):n)}else o+=n}return t.length>0?{errors:t,str:o}:o}parseCharCode(t,n,r){const{src:a}=this.context,i=a.substr(t,n),o=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;return isNaN(o)?(r.push(new e.YAMLSyntaxError(this,`Invalid escape sequence ${a.substr(t-2,n+2)}`)),a.substr(t-2,n+2)):String.fromCodePoint(o)}parse(t,n){this.context=t;const{src:r}=t;let a=m.endOfQuote(r,n+1);return this.valueRange=new e.Range(n,a),a=e.Node.endOfWhiteSpace(r,a),a=this.parseComment(a),a}}class h extends e.Node{static endOfQuote(e,t){let n=e[t];for(;n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const t=[],{start:n,end:r}=this.valueRange,{indent:a,src:i}=this.context;"'"!==i[r-1]&&t.push(new e.YAMLSyntaxError(this,"Missing closing 'quote"));let o="";for(let s=n+1;s<r-1;++s){const n=i[s];if("\n"===n){e.Node.atDocumentBoundary(i,s+1)&&t.push(new e.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));const{fold:n,offset:r,error:u}=e.Node.foldNewline(i,s,a);o+=n,s=r,u&&t.push(new e.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===n)o+=n,s+=1,"'"!==i[s]&&t.push(new e.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(" "===n||"\t"===n){const e=s;let t=i[s+1];for(;" "===t||"\t"===t;)s+=1,t=i[s+1];"\n"!==t&&(o+=s>e?i.slice(e,s+1):n)}else o+=n}return t.length>0?{errors:t,str:o}:o}parse(t,n){this.context=t;const{src:r}=t;let a=h.endOfQuote(r,n+1);return this.valueRange=new e.Range(n,a),a=e.Node.endOfWhiteSpace(r,a),a=this.parseComment(a),a}}class g{static parseType(t,n,r){switch(t[n]){case"*":return e.Type.ALIAS;case">":return e.Type.BLOCK_FOLDED;case"|":return e.Type.BLOCK_LITERAL;case"{":return e.Type.FLOW_MAP;case"[":return e.Type.FLOW_SEQ;case"?":return!r&&e.Node.atBlank(t,n+1,!0)?e.Type.MAP_KEY:e.Type.PLAIN;case":":return!r&&e.Node.atBlank(t,n+1,!0)?e.Type.MAP_VALUE:e.Type.PLAIN;case"-":return!r&&e.Node.atBlank(t,n+1,!0)?e.Type.SEQ_ITEM:e.Type.PLAIN;case'"':return e.Type.QUOTE_DOUBLE;case"'":return e.Type.QUOTE_SINGLE;default:return e.Type.PLAIN}}constructor(t={},{atLineStart:r,inCollection:a,inFlow:o,indent:s,lineStart:l,parent:c}={}){e._defineProperty(this,"parseNode",((t,r)=>{if(e.Node.atDocumentBoundary(this.src,r))return null;const a=new g(this,t),{props:o,type:s,valueStart:l}=a.parseProps(r),c=function(t,r){switch(t){case e.Type.ALIAS:return new u(t,r);case e.Type.BLOCK_FOLDED:case e.Type.BLOCK_LITERAL:return new d(t,r);case e.Type.FLOW_MAP:case e.Type.FLOW_SEQ:return new f(t,r);case e.Type.MAP_KEY:case e.Type.MAP_VALUE:case e.Type.SEQ_ITEM:return new n(t,r);case e.Type.COMMENT:case e.Type.PLAIN:return new e.PlainValue(t,r);case e.Type.QUOTE_DOUBLE:return new m(t,r);case e.Type.QUOTE_SINGLE:return new h(t,r);default:return null}}(s,o);let p=c.parse(a,l);if(c.range=new e.Range(r,p),p<=r&&(c.error=new Error("Node#parse consumed no characters"),c.error.parseEnd=p,c.error.source=c,c.range.end=r+1),a.nodeStartsCollection(c)){c.error||a.atLineStart||a.parent.type!==e.Type.DOCUMENT||(c.error=new e.YAMLSyntaxError(c,"Block collection must not have preceding content here (e.g. directives-end indicator)"));const t=new i(c);return p=t.parse(new g(a),p),t.range=new e.Range(r,p),t}return c})),this.atLineStart=null!=r?r:t.atLineStart||!1,this.inCollection=null!=a?a:t.inCollection||!1,this.inFlow=null!=o?o:t.inFlow||!1,this.indent=null!=s?s:t.indent,this.lineStart=null!=l?l:t.lineStart,this.parent=null!=c?c:t.parent||{},this.root=t.root,this.src=t.src}nodeStartsCollection(t){const{inCollection:r,inFlow:a,src:i}=this;if(r||a)return!1;if(t instanceof n)return!0;let o=t.range.end;return"\n"!==i[o]&&"\n"!==i[o-1]&&(o=e.Node.endOfWhiteSpace(i,o),":"===i[o])}parseProps(t){const{inFlow:n,parent:r,src:a}=this,i=[];let o=!1,s=a[t=this.atLineStart?e.Node.endOfIndent(a,t):e.Node.endOfWhiteSpace(a,t)];for(;s===e.Char.ANCHOR||s===e.Char.COMMENT||s===e.Char.TAG||"\n"===s;){if("\n"===s){let n,i=t;do{n=i+1,i=e.Node.endOfIndent(a,n)}while("\n"===a[i]);const s=i-(n+this.indent),u=r.type===e.Type.SEQ_ITEM&&r.context.atLineStart;if("#"!==a[i]&&!e.Node.nextNodeIsIndented(a[i],s,!u))break;this.atLineStart=!0,this.lineStart=n,o=!1,t=i}else if(s===e.Char.COMMENT){const n=e.Node.endOfLine(a,t+1);i.push(new e.Range(t,n)),t=n}else{let n=e.Node.endOfIdentifier(a,t+1);s===e.Char.TAG&&","===a[n]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(a.slice(t+1,n+13))&&(n=e.Node.endOfIdentifier(a,n+5)),i.push(new e.Range(t,n)),o=!0,t=e.Node.endOfWhiteSpace(a,n)}s=a[t]}o&&":"===s&&e.Node.atBlank(a,t+1,!0)&&(t-=1);return{props:i,type:g.parseType(a,t,n),valueStart:t}}}return HM.parse=function(e){const t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,((e,n)=>(e.length>1&&t.push(n),"\n"))));const n=[];let r=0;do{const t=new s,a=new g({src:e});r=t.parse(a,r),n.push(t)}while(r<e.length);return n.setOrigRanges=()=>{if(0===t.length)return!1;for(let e=1;e<t.length;++e)t[e]-=e;let e=0;for(let r=0;r<n.length;++r)e=n[r].setOrigRanges(t,e);return t.splice(0,t.length),!0},n.toString=()=>n.join("...\n"),n},HM}var YM,QM={},XM={};function JM(){if(YM)return XM;YM=1;var e=GM();function t(e,t,n){return n?-1===n.indexOf("\n")?`${e} #${n}`:`${e}\n`+n.replace(/^/gm,`${t||""}#`):e}class n{}function r(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>r(e,String(t),n)));if(e&&"function"==typeof e.toJSON){const r=n&&n.anchors&&n.anchors.get(e);r&&(n.onCreate=e=>{r.res=e,delete n.onCreate});const a=e.toJSON(t,n);return r&&n.onCreate&&n.onCreate(a),a}return n&&n.keep||"bigint"!=typeof e?e:Number(e)}class a extends n{constructor(e){super(),this.value=e}toJSON(e,t){return t&&t.keep?this.value:r(this.value,e,t)}toString(){return String(this.value)}}function i(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if(Number.isInteger(n)&&n>=0){const e=[];e[n]=r,r=e}else{const e={};Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=e}}return e.createNode(r,!1)}const o=e=>null==e||"object"==typeof e&&e[Symbol.iterator]().next().done;class s extends n{constructor(t){super(),e._defineProperty(this,"items",[]),this.schema=t}addIn(e,t){if(o(e))this.add(t);else{const[n,...r]=e,a=this.get(n,!0);if(a instanceof s)a.addIn(r,t);else{if(void 0!==a||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,i(this.schema,r,t))}}}deleteIn([e,...t]){if(0===t.length)return this.delete(e);const n=this.get(e,!0);if(n instanceof s)return n.deleteIn(t);throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}getIn([e,...t],n){const r=this.get(e,!0);return 0===t.length?!n&&r instanceof a?r.value:r:r instanceof s?r.getIn(t,n):void 0}hasAllNullValues(){return this.items.every((e=>{if(!e||"PAIR"!==e.type)return!1;const t=e.value;return null==t||t instanceof a&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}hasIn([e,...t]){if(0===t.length)return this.has(e);const n=this.get(e,!0);return n instanceof s&&n.hasIn(t)}setIn([e,...t],n){if(0===t.length)this.set(e,n);else{const r=this.get(e,!0);if(r instanceof s)r.setIn(t,n);else{if(void 0!==r||!this.schema)throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`);this.set(e,i(this.schema,t,n))}}}toJSON(){return null}toString(n,{blockItem:r,flowChars:a,isMap:i,itemIndent:o},u,l){const{indent:c,indentStep:p,stringify:d}=n,f=this.type===e.Type.FLOW_MAP||this.type===e.Type.FLOW_SEQ||n.inFlow;f&&(o+=p);const m=i&&this.hasAllNullValues();n=Object.assign({},n,{allNullValues:m,indent:o,inFlow:f,type:null});let h=!1,g=!1;const y=this.items.reduce(((e,r,a)=>{let i;r&&(!h&&r.spaceBefore&&e.push({type:"comment",str:""}),r.commentBefore&&r.commentBefore.match(/^.*$/gm).forEach((t=>{e.push({type:"comment",str:`#${t}`})})),r.comment&&(i=r.comment),f&&(!h&&r.spaceBefore||r.commentBefore||r.comment||r.key&&(r.key.commentBefore||r.key.comment)||r.value&&(r.value.commentBefore||r.value.comment))&&(g=!0)),h=!1;let s=d(r,n,(()=>i=null),(()=>h=!0));return f&&!g&&s.includes("\n")&&(g=!0),f&&a<this.items.length-1&&(s+=","),s=t(s,o,i),h&&(i||f)&&(h=!1),e.push({type:"item",str:s}),e}),[]);let v;if(0===y.length)v=a.start+a.end;else if(f){const{start:e,end:t}=a,n=y.map((e=>e.str));if(g||n.reduce(((e,t)=>e+t.length+2),2)>s.maxFlowStringSingleLineLength){v=e;for(const e of n)v+=e?`\n${p}${c}${e}`:"\n";v+=`\n${c}${t}`}else v=`${e} ${n.join(" ")} ${t}`}else{const e=y.map(r);v=e.shift();for(const t of e)v+=t?`\n${c}${t}`:"\n"}return this.comment?(v+="\n"+this.comment.replace(/^/gm,`${c}#`),u&&u()):h&&l&&l(),v}}function u(e){let t=e instanceof a?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}e._defineProperty(s,"maxFlowStringSingleLineLength",60);class l extends s{add(e){this.items.push(e)}delete(e){const t=u(e);if("number"!=typeof t)return!1;return this.items.splice(t,1).length>0}get(e,t){const n=u(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&r instanceof a?r.value:r}has(e){const t=u(e);return"number"==typeof t&&t<this.items.length}set(e,t){const n=u(e);if("number"!=typeof n)throw new Error(`Expected a valid index, not ${e}.`);this.items[n]=t}toJSON(e,t){const n=[];t&&t.onCreate&&t.onCreate(n);let a=0;for(const e of this.items)n.push(r(e,String(a++),t));return n}toString(e,t,n){return e?super.toString(e,{blockItem:e=>"comment"===e.type?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},t,n):JSON.stringify(this)}}class c extends n{constructor(e,t=null){super(),this.key=e,this.value=t,this.type=c.Type.PAIR}get commentBefore(){return this.key instanceof n?this.key.commentBefore:void 0}set commentBefore(e){if(null==this.key&&(this.key=new a(null)),!(this.key instanceof n)){throw new Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.")}this.key.commentBefore=e}addToJSMap(e,t){const a=r(this.key,"",e);if(t instanceof Map){const n=r(this.value,a,e);t.set(a,n)}else if(t instanceof Set)t.add(a);else{const i=((e,t,r)=>null===t?"":"object"!=typeof t?String(t):e instanceof n&&r&&r.doc?e.toString({anchors:Object.create(null),doc:r.doc,indent:"",indentStep:r.indentStep,inFlow:!0,inStringifyKey:!0,stringify:r.stringify}):JSON.stringify(t))(this.key,a,e),o=r(this.value,i,e);i in t?Object.defineProperty(t,i,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[i]=o}return t}toJSON(e,t){const n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(r,i,o){if(!r||!r.doc)return JSON.stringify(this);const{indent:u,indentSeq:c,simpleKeys:p}=r.doc.options;let{key:d,value:f}=this,m=d instanceof n&&d.comment;if(p){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(d instanceof s){throw new Error("With simple keys, collection cannot be used as a key value")}}let h=!p&&(!d||m||(d instanceof n?d instanceof s||d.type===e.Type.BLOCK_FOLDED||d.type===e.Type.BLOCK_LITERAL:"object"==typeof d));const{doc:g,indent:y,indentStep:v,stringify:b}=r;r=Object.assign({},r,{implicitKey:!h,indent:y+v});let w=!1,_=b(d,r,(()=>m=null),(()=>w=!0));if(_=t(_,r.indent,m),!h&&_.length>1024){if(p)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");h=!0}if(r.allNullValues&&!p)return this.comment?(_=t(_,r.indent,this.comment),i&&i()):w&&!m&&o&&o(),r.inFlow&&!h?_:`? ${_}`;_=h?`? ${_}\n${y}:`:`${_}:`,this.comment&&(_=t(_,r.indent,this.comment),i&&i());let x="",k=null;if(f instanceof n){if(f.spaceBefore&&(x="\n"),f.commentBefore){x+=`\n${f.commentBefore.replace(/^/gm,`${r.indent}#`)}`}k=f.comment}else f&&"object"==typeof f&&(f=g.schema.createNode(f,!0));r.implicitKey=!1,!h&&!this.comment&&f instanceof a&&(r.indentAtStart=_.length+1),w=!1,!c&&u>=2&&!r.inFlow&&!h&&f instanceof l&&f.type!==e.Type.FLOW_SEQ&&!f.tag&&!g.anchors.getName(f)&&(r.indent=r.indent.substr(2));const S=b(f,r,(()=>k=null),(()=>w=!0));let E=" ";if(x||this.comment)E=`${x}\n${r.indent}`;else if(!h&&f instanceof s){("["===S[0]||"{"===S[0])&&!S.includes("\n")||(E=`\n${r.indent}`)}else"\n"===S[0]&&(E="");return w&&!k&&o&&o(),t(_+E+S,r.indent,k)}}e._defineProperty(c,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});const p=(e,t)=>{if(e instanceof d){const n=t.get(e.source);return n.count*n.aliasCount}if(e instanceof s){let n=0;for(const r of e.items){const e=p(r,t);e>n&&(n=e)}return n}if(e instanceof c){const n=p(e.key,t),r=p(e.value,t);return Math.max(n,r)}return 1};class d extends n{static stringify({range:e,source:t},{anchors:n,doc:r,implicitKey:a,inStringifyKey:i}){let o=Object.keys(n).find((e=>n[e]===t));if(!o&&i&&(o=r.anchors.getName(t)||r.anchors.newName()),o)return`*${o}${a?" ":""}`;const s=r.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${s} [${e}]`)}constructor(t){super(),this.source=t,this.type=e.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(t,n){if(!n)return r(this.source,t,n);const{anchors:a,maxAliasCount:i}=n,o=a.get(this.source);if(!o||void 0===o.res){const t="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new e.YAMLReferenceError(this.cstNode,t):new ReferenceError(t)}if(i>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=p(this.source,a)),o.count*o.aliasCount>i)){const t="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new e.YAMLReferenceError(this.cstNode,t):new ReferenceError(t)}return o.res}toString(e){return d.stringify(this,e)}}function f(e,t){const n=t instanceof a?t.value:t;for(const r of e)if(r instanceof c){if(r.key===t||r.key===n)return r;if(r.key&&r.key.value===n)return r}}e._defineProperty(d,"default",!0);class m extends s{add(e,t){e?e instanceof c||(e=new c(e.key||e,e.value)):e=new c(e);const n=f(this.items,e.key),r=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error(`Key ${e.key} already set`);n.value=e.value}else if(r){const t=this.items.findIndex((t=>r(e,t)<0));-1===t?this.items.push(e):this.items.splice(t,0,e)}else this.items.push(e)}delete(e){const t=f(this.items,e);if(!t)return!1;return this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=f(this.items,e),r=n&&n.value;return!t&&r instanceof a?r.value:r}has(e){return!!f(this.items,e)}set(e,t){this.add(new c(e,t),!0)}toJSON(e,t,n){const r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);for(const e of this.items)e.addToJSMap(t,r);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!(e instanceof c))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,n)}}const h="<<";class g extends c{constructor(e){if(e instanceof c){let t=e.value;t instanceof l||(t=new l,t.items.push(e.value),t.range=e.value.range),super(e.key,t),this.range=e.range}else super(new a(h),new l);this.type=c.Type.MERGE_PAIR}addToJSMap(e,t){for(const{source:n}of this.value.items){if(!(n instanceof m))throw new Error("Merge sources must be maps");const r=n.toJSON(null,e,Map);for(const[e,n]of r)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}return t}toString(e,t){const n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];const r=super.toString(e,t);return this.value=n,r}}const y={defaultType:e.Type.BLOCK_LITERAL,lineWidth:76},v={defaultType:e.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function b(e,t,n){for(const{format:n,test:r,resolve:i}of t)if(r){const t=e.match(r);if(t){let e=i.apply(null,t);return e instanceof a||(e=new a(e)),n&&(e.format=n),e}}return n&&(e=n(e)),new a(e)}const w="flow",_="block",x="quoted",k=(e,t)=>{let n=e[t+1];for(;" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t};function S(e,t,n,{indentAtStart:r,lineWidth:a=80,minContentWidth:i=20,onFold:o,onOverflow:s}){if(!a||a<0)return e;const u=Math.max(1+i,1+a-t.length);if(e.length<=u)return e;const l=[],c={};let p,d,f=a-t.length;"number"==typeof r&&(r>a-Math.max(2,i)?l.push(0):f=a-r);let m=!1,h=-1,g=-1,y=-1;n===_&&(h=k(e,h),-1!==h&&(f=h+u));for(let t;t=e[h+=1];){if(n===x&&"\\"===t){switch(g=h,e[h+1]){case"x":h+=3;break;case"u":h+=5;break;case"U":h+=9;break;default:h+=1}y=h}if("\n"===t)n===_&&(h=k(e,h)),f=h+u,p=void 0;else{if(" "===t&&d&&" "!==d&&"\n"!==d&&"\t"!==d){const t=e[h+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(p=h)}if(h>=f)if(p)l.push(p),f=p+u,p=void 0;else if(n===x){for(;" "===d||"\t"===d;)d=t,t=e[h+=1],m=!0;const n=h>y+1?h-2:g-1;if(c[n])return e;l.push(n),c[n]=!0,f=n+u,p=void 0}else m=!0}d=t}if(m&&s&&s(),0===l.length)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r<l.length;++r){const a=l[r],i=l[r+1]||e.length;0===a?v=`\n${t}${e.slice(0,i)}`:(n===x&&c[a]&&(v+=`${e[a]}\\`),v+=`\n${t}${e.slice(a+1,i)}`)}return v}const E=({indentAtStart:e})=>e?Object.assign({indentAtStart:e},v.fold):v.fold,C=e=>/^(%|---|\.\.\.)/m.test(e);function D(e,t){const{implicitKey:n}=t,{jsonEncoding:r,minMultiLineLength:a}=v.doubleQuoted,i=JSON.stringify(e);if(r)return i;const o=t.indent||(C(e)?" ":"");let s="",u=0;for(let e=0,t=i[e];t;t=i[++e])if(" "===t&&"\\"===i[e+1]&&"n"===i[e+2]&&(s+=i.slice(u,e)+"\\ ",e+=1,u=e,t="\\"),"\\"===t)switch(i[e+1]){case"u":{s+=i.slice(u,e);const t=i.substr(e+2,4);switch(t){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:"00"===t.substr(0,2)?s+="\\x"+t.substr(2):s+=i.substr(e,6)}e+=5,u=e+1}break;case"n":if(n||'"'===i[e+2]||i.length<a)e+=1;else{for(s+=i.slice(u,e)+"\n\n";"\\"===i[e+2]&&"n"===i[e+3]&&'"'!==i[e+4];)s+="\n",e+=2;s+=o," "===i[e+2]&&(s+="\\"),e+=1,u=e+1}break;default:e+=1}return s=u?s+i.slice(u):i,n?s:S(s,o,x,E(t))}function O(e,t){if(t.implicitKey){if(/\n/.test(e))return D(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return D(e,t);const n=t.indent||(C(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${n}`)+"'";return t.implicitKey?r:S(r,n,w,E(t))}function N({comment:t,type:n,value:r},a,i,o){if(/\n[\t ]+$/.test(r)||/^\s*$/.test(r))return D(r,a);const s=a.indent||(a.forceBlockIndent||C(r)?" ":""),u=s?"2":"1",l=n!==e.Type.BLOCK_FOLDED&&(n===e.Type.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;const r=t-n,a=e.length;if(a<=r)return!1;for(let t=0,n=0;t<a;++t)if("\n"===e[t]){if(t-n>r)return!0;if(n=t+1,a-n<=r)return!1}return!0}(r,v.fold.lineWidth,s.length));let c=l?"|":">";if(!r)return c+"\n";let p="",d="";if(r=r.replace(/[\n\t ]*$/,(e=>{const t=e.indexOf("\n");return-1===t?c+="-":r!==e&&t===e.length-1||(c+="+",o&&o()),d=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(e=>{-1!==e.indexOf(" ")&&(c+=u);const t=e.match(/ +$/);return t?(p=e.slice(0,-t[0].length),t[0]):(p=e,"")})),d&&(d=d.replace(/\n+(?!\n|$)/g,`$&${s}`)),p&&(p=p.replace(/\n+/g,`$&${s}`)),t&&(c+=" #"+t.replace(/ ?[\r\n]+/g," "),i&&i()),!r)return`${c}${u}\n${s}${d}`;if(l)return r=r.replace(/\n+/g,`$&${s}`),`${c}\n${s}${p}${r}${d}`;r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${s}`);const f=S(`${p}${r}${d}`,s,_,v.fold);return`${c}\n${s}${f}`}function j(t,n){let r,a,i;switch(n.type){case e.Type.FLOW_MAP:r="}",a="flow map";break;case e.Type.FLOW_SEQ:r="]",a="flow sequence";break;default:return void t.push(new e.YAMLSemanticError(n,"Not a flow collection!?"))}for(let t=n.items.length-1;t>=0;--t){const r=n.items[t];if(!r||r.type!==e.Type.COMMENT){i=r;break}}if(i&&i.char!==r){const o=`Expected ${a} to end with ${r}`;let s;"number"==typeof i.offset?(s=new e.YAMLSemanticError(n,o),s.offset=i.offset+1):(s=new e.YAMLSemanticError(i,o),i.range&&i.range.end&&(s.offset=i.range.end-i.range.start)),t.push(s)}}function P(t,n){const r=n.context.src[n.range.start-1];if("\n"!==r&&"\t"!==r&&" "!==r){const r="Comments must be separated from other tokens by white space characters";t.push(new e.YAMLSemanticError(n,r))}}function T(t,n){const r=String(n),a=r.substr(0,8)+"..."+r.substr(-8);return new e.YAMLSemanticError(t,`The "${a}" key is too long`)}function A(e,t){for(const{afterKey:n,before:r,comment:a}of t){let t=e.items[r];t?(n&&t.value&&(t=t.value),void 0===a?!n&&t.commentBefore||(t.spaceBefore=!0):t.commentBefore?t.commentBefore+="\n"+a:t.commentBefore=a):void 0!==a&&(e.comment?e.comment+="\n"+a:e.comment=a)}}function R(e,t){const n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach((n=>{n.source||(n.source=t),e.errors.push(n)})),n.str):""}function I(t,n){const{tag:r,type:a}=n;let i=!1;if(r){const{handle:a,suffix:o,verbatim:s}=r;if(s){if("!"!==s&&"!!"!==s)return s;const r=`Verbatim tags aren't resolved, so ${s} is invalid.`;t.errors.push(new e.YAMLSemanticError(n,r))}else if("!"!==a||o)try{return function(t,n){const{handle:r,suffix:a}=n.tag;let i=t.tagPrefixes.find((e=>e.handle===r));if(!i){const a=t.getDefaults().tagPrefixes;if(a&&(i=a.find((e=>e.handle===r))),!i)throw new e.YAMLSemanticError(n,`The ${r} tag handle is non-default and was not declared.`)}if(!a)throw new e.YAMLSemanticError(n,`The ${r} tag has no suffix.`);if("!"===r&&"1.0"===(t.version||t.options.version)){if("^"===a[0])return t.warnings.push(new e.YAMLWarning(n,"YAML 1.0 ^ tag expansion is not supported")),a;if(/[:/]/.test(a)){const e=a.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${a}`}}return i.prefix+decodeURIComponent(a)}(t,n)}catch(e){t.errors.push(e)}else i=!0}switch(a){case e.Type.BLOCK_FOLDED:case e.Type.BLOCK_LITERAL:case e.Type.QUOTE_DOUBLE:case e.Type.QUOTE_SINGLE:return e.defaultTags.STR;case e.Type.FLOW_MAP:case e.Type.MAP:return e.defaultTags.MAP;case e.Type.FLOW_SEQ:case e.Type.SEQ:return e.defaultTags.SEQ;case e.Type.PLAIN:return i?e.defaultTags.STR:null;default:return null}}function M(e,t,n){const{tags:r}=e.schema,i=[];for(const o of r)if(o.tag===n){if(!o.test){const n=o.resolve(e,t);return n instanceof s?n:new a(n)}i.push(o)}const o=R(e,t);return"string"==typeof o&&i.length>0?b(o,i,r.scalarFallback):null}function L(t,n,r){try{const e=M(t,n,r);if(e)return r&&n.tag&&(e.tag=r),e}catch(e){return e.source||(e.source=n),t.errors.push(e),null}try{const a=function({type:t}){switch(t){case e.Type.FLOW_MAP:case e.Type.MAP:return e.defaultTags.MAP;case e.Type.FLOW_SEQ:case e.Type.SEQ:return e.defaultTags.SEQ;default:return e.defaultTags.STR}}(n);if(!a)throw new Error(`The tag ${r} is unavailable`);const i=`The tag ${r} is unavailable, falling back to ${a}`;t.warnings.push(new e.YAMLWarning(n,i));const o=M(t,n,a);return o.tag=r,o}catch(r){const a=new e.YAMLReferenceError(n,r.message);return a.stack=r.stack,t.errors.push(a),null}}const F=t=>{if(!t)return!1;const{type:n}=t;return n===e.Type.MAP_KEY||n===e.Type.MAP_VALUE||n===e.Type.SEQ_ITEM};function z(t,n){if(!n)return null;n.error&&t.errors.push(n.error);const{comments:r,hasAnchor:a,hasTag:i}=function(t,n){const r={before:[],after:[]};let a=!1,i=!1;const o=F(n.context.parent)?n.context.parent.props.concat(n.props):n.props;for(const{start:s,end:u}of o)switch(n.context.src[s]){case e.Char.COMMENT:{if(!n.commentHasRequiredWhitespace(s)){const r="Comments must be separated from other tokens by white space characters";t.push(new e.YAMLSemanticError(n,r))}const{header:a,valueRange:i}=n;(i&&(s>i.start||a&&s>a.start)?r.after:r.before).push(n.context.src.slice(s+1,u));break}case e.Char.ANCHOR:if(a){const r="A node can have at most one anchor";t.push(new e.YAMLSemanticError(n,r))}a=!0;break;case e.Char.TAG:if(i){const r="A node can have at most one tag";t.push(new e.YAMLSemanticError(n,r))}i=!0}return{comments:r,hasAnchor:a,hasTag:i}}(t.errors,n);if(a){const{anchors:e}=t,r=n.anchor,a=e.getNode(r);a&&(e.map[e.newName(r)]=a),e.map[r]=n}if(n.type===e.Type.ALIAS&&(a||i)){const r="An alias node must not specify any properties";t.errors.push(new e.YAMLSemanticError(n,r))}const o=function(t,n){const{anchors:r,errors:a,schema:i}=t;if(n.type===e.Type.ALIAS){const t=n.rawValue,i=r.getNode(t);if(!i){const r=`Aliased anchor not found: ${t}`;return a.push(new e.YAMLReferenceError(n,r)),null}const o=new d(i);return r._cstAliases.push(o),o}const o=I(t,n);if(o)return L(t,n,o);if(n.type!==e.Type.PLAIN){const t=`Failed to resolve ${n.type} node here`;return a.push(new e.YAMLSyntaxError(n,t)),null}try{return b(R(t,n),i.tags,i.tags.scalarFallback)}catch(e){return e.source||(e.source=n),a.push(e),null}}(t,n);if(o){o.range=[n.range.start,n.range.end],t.options.keepCstNodes&&(o.cstNode=n),t.options.keepNodeTypes&&(o.type=n.type);const e=r.before.join("\n");e&&(o.commentBefore=o.commentBefore?`${o.commentBefore}\n${e}`:e);const a=r.after.join("\n");a&&(o.comment=o.comment?`${o.comment}\n${a}`:a)}return n.resolved=o}const B=({context:{lineStart:t,node:n,src:r},props:a})=>{if(0===a.length)return!1;const{start:i}=a[0];if(n&&i>n.valueRange.start)return!1;if(r[i]!==e.Char.COMMENT)return!1;for(let e=t;e<i;++e)if("\n"===r[e])return!1;return!0};function U(t,n){if(!B(t))return;const r=t.getPropValue(0,e.Char.COMMENT,!0);let a=!1;const i=n.value.commentBefore;if(i&&i.startsWith(r))n.value.commentBefore=i.substr(r.length+1),a=!0;else{const e=n.value.comment;!t.node&&e&&e.startsWith(r)&&(n.value.comment=e.substr(r.length+1),a=!0)}a&&(n.comment=r)}return XM.Alias=d,XM.Collection=s,XM.Merge=g,XM.Node=n,XM.Pair=c,XM.Scalar=a,XM.YAMLMap=m,XM.YAMLSeq=l,XM.addComment=t,XM.binaryOptions=y,XM.boolOptions={trueStr:"true",falseStr:"false"},XM.findPair=f,XM.intOptions={asBigInt:!1},XM.isEmptyPath=o,XM.nullOptions={nullStr:"null"},XM.resolveMap=function(t,n){if(n.type!==e.Type.MAP&&n.type!==e.Type.FLOW_MAP){const r=`A ${n.type} node cannot be resolved as a mapping`;return t.errors.push(new e.YAMLSyntaxError(n,r)),null}const{comments:r,items:a}=n.type===e.Type.FLOW_MAP?function(t,n){const r=[],a=[];let i,o=!1,s="{";for(let u=0;u<n.items.length;++u){const l=n.items[u];if("string"==typeof l.char){const{char:r,offset:p}=l;if("?"===r&&void 0===i&&!o){o=!0,s=":";continue}if(":"===r){if(void 0===i&&(i=null),":"===s){s=",";continue}}else if(o&&(void 0===i&&","!==r&&(i=null),o=!1),void 0!==i&&(a.push(new c(i)),i=void 0,","===r)){s=":";continue}if("}"===r){if(u===n.items.length-1)continue}else if(r===s){s=":";continue}const d=`Flow map contains an unexpected ${r}`,f=new e.YAMLSyntaxError(n,d);f.offset=p,t.errors.push(f)}else l.type===e.Type.BLANK_LINE?r.push({afterKey:!!i,before:a.length}):l.type===e.Type.COMMENT?(P(t.errors,l),r.push({afterKey:!!i,before:a.length,comment:l.comment})):void 0===i?(","===s&&t.errors.push(new e.YAMLSemanticError(l,"Separator , missing in flow map")),i=z(t,l)):(","!==s&&t.errors.push(new e.YAMLSemanticError(l,"Indicator : missing in flow map entry")),a.push(new c(i,z(t,l))),i=void 0,o=!1)}j(t.errors,n),void 0!==i&&a.push(new c(i));return{comments:r,items:a}}(t,n):function(t,n){const r=[],a=[];let i,o=null;for(let s=0;s<n.items.length;++s){const u=n.items[s];switch(u.type){case e.Type.BLANK_LINE:r.push({afterKey:!!i,before:a.length});break;case e.Type.COMMENT:r.push({afterKey:!!i,before:a.length,comment:u.comment});break;case e.Type.MAP_KEY:void 0!==i&&a.push(new c(i)),u.error&&t.errors.push(u.error),i=z(t,u.node),o=null;break;case e.Type.MAP_VALUE:{if(void 0===i&&(i=null),u.error&&t.errors.push(u.error),!u.context.atLineStart&&u.node&&u.node.type===e.Type.MAP&&!u.node.context.atLineStart){const n="Nested mappings are not allowed in compact mappings";t.errors.push(new e.YAMLSemanticError(u.node,n))}let r=u.node;if(!r&&u.props.length>0){r=new e.PlainValue(e.Type.PLAIN,[]),r.context={parent:u,src:u.context.src};const t=u.range.start+1;if(r.range={start:t,end:t},r.valueRange={start:t,end:t},"number"==typeof u.range.origStart){const e=u.range.origStart+1;r.range.origStart=r.range.origEnd=e,r.valueRange.origStart=r.valueRange.origEnd=e}}const s=new c(i,z(t,r));U(u,s),a.push(s),i&&"number"==typeof o&&u.range.start>o+1024&&t.errors.push(T(n,i)),i=void 0,o=null}break;default:void 0!==i&&a.push(new c(i)),i=z(t,u),o=u.range.start,u.error&&t.errors.push(u.error);e:for(let r=s+1;;++r){const a=n.items[r];switch(a&&a.type){case e.Type.BLANK_LINE:case e.Type.COMMENT:continue e;case e.Type.MAP_VALUE:break e;default:{const n="Implicit map keys need to be followed by map values";t.errors.push(new e.YAMLSemanticError(u,n));break e}}}if(u.valueRangeContainsNewline){const n="Implicit map keys need to be on a single line";t.errors.push(new e.YAMLSemanticError(u,n))}}}void 0!==i&&a.push(new c(i));return{comments:r,items:a}}(t,n),i=new m;i.items=a,A(i,r);let o=!1;for(let r=0;r<a.length;++r){const{key:i}=a[r];if(i instanceof s&&(o=!0),t.schema.merge&&i&&i.value===h){a[r]=new g(a[r]);const i=a[r].value.items;let o=null;i.some((t=>{if(t instanceof d){const{type:n}=t.source;return n!==e.Type.MAP&&n!==e.Type.FLOW_MAP&&(o="Merge nodes aliases can only point to maps")}return o="Merge nodes can only have Alias nodes as values"})),o&&t.errors.push(new e.YAMLSemanticError(n,o))}else for(let o=r+1;o<a.length;++o){const{key:r}=a[o];if(i===r||i&&r&&Object.prototype.hasOwnProperty.call(i,"value")&&i.value===r.value){const r=`Map keys must be unique; "${i}" is repeated`;t.errors.push(new e.YAMLSemanticError(n,r));break}}}if(o&&!t.options.mapAsMap){const r="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";t.warnings.push(new e.YAMLWarning(n,r))}return n.resolved=i,i},XM.resolveNode=z,XM.resolveSeq=function(t,n){if(n.type!==e.Type.SEQ&&n.type!==e.Type.FLOW_SEQ){const r=`A ${n.type} node cannot be resolved as a sequence`;return t.errors.push(new e.YAMLSyntaxError(n,r)),null}const{comments:r,items:a}=n.type===e.Type.FLOW_SEQ?function(t,n){const r=[],a=[];let i,o=!1,s=null,u="[",l=null;for(let p=0;p<n.items.length;++p){const d=n.items[p];if("string"==typeof d.char){const{char:r,offset:f}=d;if(":"===r||!o&&void 0===i||(o&&void 0===i&&(i=u?a.pop():null),a.push(new c(i)),o=!1,i=void 0,s=null),r===u)u=null;else if(u||"?"!==r){if("["!==u&&":"===r&&void 0===i){if(","===u){if(i=a.pop(),i instanceof c){const r="Chaining flow sequence pairs is invalid",a=new e.YAMLSemanticError(n,r);a.offset=f,t.errors.push(a)}if(!o&&"number"==typeof s){const r=d.range?d.range.start:d.offset;r>s+1024&&t.errors.push(T(n,i));const{src:a}=l.context;for(let n=s;n<r;++n)if("\n"===a[n]){const n="Implicit keys of flow sequence pairs need to be on a single line";t.errors.push(new e.YAMLSemanticError(l,n));break}}}else i=null;s=null,o=!1,u=null}else if("["===u||"]"!==r||p<n.items.length-1){const a=`Flow sequence contains an unexpected ${r}`,i=new e.YAMLSyntaxError(n,a);i.offset=f,t.errors.push(i)}}else o=!0}else if(d.type===e.Type.BLANK_LINE)r.push({before:a.length});else if(d.type===e.Type.COMMENT)P(t.errors,d),r.push({comment:d.comment,before:a.length});else{if(u){const n=`Expected a ${u} in flow sequence`;t.errors.push(new e.YAMLSemanticError(d,n))}const n=z(t,d);void 0===i?(a.push(n),l=d):(a.push(new c(i,n)),i=void 0),s=d.range.start,u=","}}j(t.errors,n),void 0!==i&&a.push(new c(i));return{comments:r,items:a}}(t,n):function(t,n){const r=[],a=[];for(let i=0;i<n.items.length;++i){const o=n.items[i];switch(o.type){case e.Type.BLANK_LINE:r.push({before:a.length});break;case e.Type.COMMENT:r.push({comment:o.comment,before:a.length});break;case e.Type.SEQ_ITEM:if(o.error&&t.errors.push(o.error),a.push(z(t,o.node)),o.hasProps){const n="Sequence items cannot have tags or anchors before the - indicator";t.errors.push(new e.YAMLSemanticError(o,n))}break;default:o.error&&t.errors.push(o.error),t.errors.push(new e.YAMLSyntaxError(o,`Unexpected ${o.type} node in sequence`))}}return{comments:r,items:a}}(t,n),i=new l;if(i.items=a,A(i,r),!t.options.mapAsMap&&a.some((e=>e instanceof c&&e.key instanceof s))){const r="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";t.warnings.push(new e.YAMLWarning(n,r))}return n.resolved=i,i},XM.resolveString=R,XM.strOptions=v,XM.stringifyNumber=function({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let a=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(a)){let e=a.indexOf(".");e<0&&(e=a.length,a+=".");let n=t-(a.length-e-1);for(;n-- >0;)a+="0"}return a},XM.stringifyString=function(t,n,r,a){const{defaultType:i}=v,{implicitKey:o,inFlow:s}=n;let{type:u,value:l}=t;"string"!=typeof l&&(l=String(l),t=Object.assign({},t,{value:l}));const c=i=>{switch(i){case e.Type.BLOCK_FOLDED:case e.Type.BLOCK_LITERAL:return N(t,n,r,a);case e.Type.QUOTE_DOUBLE:return D(l,n);case e.Type.QUOTE_SINGLE:return O(l,n);case e.Type.PLAIN:return function(t,n,r,a){const{comment:i,type:o,value:s}=t,{actualString:u,implicitKey:l,indent:c,inFlow:p}=n;if(l&&/[\n[\]{},]/.test(s)||p&&/[[\]{},]/.test(s))return D(s,n);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return l||p||-1===s.indexOf("\n")?-1!==s.indexOf('"')&&-1===s.indexOf("'")?O(s,n):D(s,n):N(t,n,r,a);if(!l&&!p&&o!==e.Type.PLAIN&&-1!==s.indexOf("\n"))return N(t,n,r,a);if(""===c&&C(s))return n.forceBlockIndent=!0,N(t,n,r,a);const d=s.replace(/\n+/g,`$&\n${c}`);if(u){const{tags:e}=n.doc.schema;if("string"!=typeof b(d,e,e.scalarFallback).value)return D(s,n)}const f=l?d:S(d,c,w,E(n));return!i||p||-1===f.indexOf("\n")&&-1===i.indexOf("\n")?f:(r&&r(),function(e,t,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${t}#`)}\n${t}${e}`:e}(f,c,i))}(t,n,r,a);default:return null}};u!==e.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(l)?u=e.Type.QUOTE_DOUBLE:!o&&!s||u!==e.Type.BLOCK_FOLDED&&u!==e.Type.BLOCK_LITERAL||(u=e.Type.QUOTE_DOUBLE);let p=c(u);if(null===p&&(p=c(i),null===p))throw new Error(`Unsupported default string type ${i}`);return p},XM.toJSON=r,XM}var ZM,eL,tL,nL,rL,aL,iL={},oL={};function sL(){if(ZM)return oL;ZM=1;var e=GM(),t=JM();const n={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(n,r)=>{const a=t.resolveString(n,r);if("function"==typeof Buffer)return Buffer.from(a,"base64");if("function"==typeof atob){const e=atob(a.replace(/[\n\r]/g,"")),t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}{const t="This environment does not support reading binary tags; either Buffer or atob is required";return n.errors.push(new e.YAMLReferenceError(r,t)),null}},options:t.binaryOptions,stringify:({comment:n,type:r,value:a},i,o,s)=>{let u;if("function"==typeof Buffer)u=a instanceof Buffer?a.toString("base64"):Buffer.from(a.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<a.length;++t)e+=String.fromCharCode(a[t]);u=btoa(e)}}if(r||(r=t.binaryOptions.defaultType),r===e.Type.QUOTE_DOUBLE)a=u;else{const{lineWidth:n}=t.binaryOptions,i=Math.ceil(u.length/n),o=new Array(i);for(let e=0,t=0;e<i;++e,t+=n)o[e]=u.substr(t,n);a=o.join(r===e.Type.BLOCK_LITERAL?"\n":" ")}return t.stringifyString({comment:n,type:r,value:a},i,o,s)}};function r(n,r){const a=t.resolveSeq(n,r);for(let n=0;n<a.items.length;++n){let i=a.items[n];if(!(i instanceof t.Pair)){if(i instanceof t.YAMLMap){if(i.items.length>1){const t="Each pair must have its own sequence indicator";throw new e.YAMLSemanticError(r,t)}const n=i.items[0]||new t.Pair;i.commentBefore&&(n.commentBefore=n.commentBefore?`${i.commentBefore}\n${n.commentBefore}`:i.commentBefore),i.comment&&(n.comment=n.comment?`${i.comment}\n${n.comment}`:i.comment),i=n}a.items[n]=i instanceof t.Pair?i:new t.Pair(i)}}return a}function a(e,n,r){const a=new t.YAMLSeq(e);a.tag="tag:yaml.org,2002:pairs";for(const t of n){let n,i;if(Array.isArray(t)){if(2!==t.length)throw new TypeError(`Expected [key, value] tuple: ${t}`);n=t[0],i=t[1]}else if(t&&t instanceof Object){const e=Object.keys(t);if(1!==e.length)throw new TypeError(`Expected { key: value } tuple: ${t}`);n=e[0],i=t[n]}else n=t;const o=e.createPair(n,i,r);a.items.push(o)}return a}const i={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:r,createNode:a};class o extends t.YAMLSeq{constructor(){super(),e._defineProperty(this,"add",t.YAMLMap.prototype.add.bind(this)),e._defineProperty(this,"delete",t.YAMLMap.prototype.delete.bind(this)),e._defineProperty(this,"get",t.YAMLMap.prototype.get.bind(this)),e._defineProperty(this,"has",t.YAMLMap.prototype.has.bind(this)),e._defineProperty(this,"set",t.YAMLMap.prototype.set.bind(this)),this.tag=o.tag}toJSON(e,n){const r=new Map;n&&n.onCreate&&n.onCreate(r);for(const e of this.items){let a,i;if(e instanceof t.Pair?(a=t.toJSON(e.key,"",n),i=t.toJSON(e.value,a,n)):a=t.toJSON(e,"",n),r.has(a))throw new Error("Ordered maps must not include duplicate keys");r.set(a,i)}return r}}e._defineProperty(o,"tag","tag:yaml.org,2002:omap");const s={identify:e=>e instanceof Map,nodeClass:o,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(n,a){const i=r(n,a),s=[];for(const{key:n}of i.items)if(n instanceof t.Scalar){if(s.includes(n.value)){const t="Ordered maps must not include duplicate keys";throw new e.YAMLSemanticError(a,t)}s.push(n.value)}return Object.assign(new o,i)},createNode:function(e,t,n){const r=a(e,t,n),i=new o;return i.items=r.items,i}};class u extends t.YAMLMap{constructor(){super(),this.tag=u.tag}add(e){const n=e instanceof t.Pair?e:new t.Pair(e);t.findPair(this.items,n.key)||this.items.push(n)}get(e,n){const r=t.findPair(this.items,e);return!n&&r instanceof t.Pair?r.key instanceof t.Scalar?r.key.value:r.key:r}set(e,n){if("boolean"!=typeof n)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof n);const r=t.findPair(this.items,e);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new t.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,n);throw new Error("Set items must all have null values")}}e._defineProperty(u,"tag","tag:yaml.org,2002:set");const l={identify:e=>e instanceof Set,nodeClass:u,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(n,r){const a=t.resolveMap(n,r);if(!a.hasAllNullValues())throw new e.YAMLSemanticError(r,"Set items must all have null values");return Object.assign(new u,a)},createNode:function(e,t,n){const r=new u;for(const a of t)r.items.push(e.createPair(a,null,n));return r}},c=(e,t)=>{const n=t.split(":").reduce(((e,t)=>60*e+Number(t)),0);return"-"===e?-n:n},p=({value:e})=>{if(isNaN(e)||!isFinite(e))return t.stringifyNumber(e);let n="";e<0&&(n="-",e=Math.abs(e));const r=[e%60];return e<60?r.unshift(0):(e=Math.round((e-r[0])/60),r.unshift(e%60),e>=60&&(e=Math.round((e-r[0])/60),r.unshift(e))),n+r.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")},d={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,n)=>c(t,n.replace(/_/g,"")),stringify:p},f={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,n)=>c(t,n.replace(/_/g,"")),stringify:p},m={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(e,t,n,r,a,i,o,s,u)=>{s&&(s=(s+"00").substr(1,3));let l=Date.UTC(t,n-1,r,a||0,i||0,o||0,s||0);if(u&&"Z"!==u){let e=c(u[0],u.slice(1));Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function h(e){const t="undefined"!=typeof process&&process.env||{};return e?"undefined"!=typeof YAML_SILENCE_DEPRECATION_WARNINGS?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:"undefined"!=typeof YAML_SILENCE_WARNINGS?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function g(e,t){if(h(!1)){const n="undefined"!=typeof process&&process.emitWarning;n?n(e,t):console.warn(t?`${t}: ${e}`:e)}}const y={};return oL.binary=n,oL.floatTime=f,oL.intTime=d,oL.omap=s,oL.pairs=i,oL.set=l,oL.timestamp=m,oL.warn=g,oL.warnFileDeprecation=function(e){if(h(!0)){g(`The endpoint 'yaml/${e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/")}' will be removed in a future release.`,"DeprecationWarning")}},oL.warnOptionDeprecation=function(e,t){if(!y[e]&&h(!0)){y[e]=!0;let n=`The option '${e}' will be removed in a future release`;n+=t?`, use '${t}' instead.`:".",g(n,"DeprecationWarning")}},oL}function uL(){if(eL)return iL;eL=1;var e=GM(),t=JM(),n=sL();const r={createNode:function(e,n,r){const a=new t.YAMLMap(e);if(n instanceof Map)for(const[t,i]of n)a.items.push(e.createPair(t,i,r));else if(n&&"object"==typeof n)for(const t of Object.keys(n))a.items.push(e.createPair(t,n[t],r));return"function"==typeof e.sortMapEntries&&a.items.sort(e.sortMapEntries),a},default:!0,nodeClass:t.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:t.resolveMap};const a={createNode:function(e,n,r){const a=new t.YAMLSeq(e);if(n&&n[Symbol.iterator])for(const t of n){const n=e.createNode(t,r.wrapScalars,null,r);a.items.push(n)}return a},default:!0,nodeClass:t.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:t.resolveSeq},i={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:t.resolveString,stringify:(e,n,r,a)=>(n=Object.assign({actualString:!0},n),t.stringifyString(e,n,r,a)),options:t.strOptions},o=[r,a,i],s=e=>"bigint"==typeof e||Number.isInteger(e),u=(e,n,r)=>t.intOptions.asBigInt?BigInt(e):parseInt(n,r);function l(e,n,r){const{value:a}=e;return s(a)&&a>=0?r+a.toString(n):t.stringifyNumber(e)}const c={identify:e=>null==e,createNode:(e,n,r)=>r.wrapScalars?new t.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:t.nullOptions,stringify:()=>t.nullOptions.nullStr},p={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>"t"===e[0]||"T"===e[0],options:t.boolOptions,stringify:({value:e})=>e?t.boolOptions.trueStr:t.boolOptions.falseStr},d={identify:e=>s(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>u(e,t,8),options:t.intOptions,stringify:e=>l(e,8,"0o")},f={identify:s,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>u(e,e,10),options:t.intOptions,stringify:t.stringifyNumber},m={identify:e=>s(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>u(e,t,16),options:t.intOptions,stringify:e=>l(e,16,"0x")},h={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:t.stringifyNumber},g={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()},y={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,n,r){const a=n||r,i=new t.Scalar(parseFloat(e));return a&&"0"===a[a.length-1]&&(i.minFractionDigits=a.length),i},stringify:t.stringifyNumber},v=o.concat([c,p,d,f,m,h,g,y]),b=e=>"bigint"==typeof e||Number.isInteger(e),w=({value:e})=>JSON.stringify(e),_=[r,a,{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:t.resolveString,stringify:w},{identify:e=>null==e,createNode:(e,n,r)=>r.wrapScalars?new t.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:w},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:w},{identify:b,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>t.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>b(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:w}];_.scalarFallback=e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)};const x=({value:e})=>e?t.boolOptions.trueStr:t.boolOptions.falseStr,k=e=>"bigint"==typeof e||Number.isInteger(e);function S(e,n,r){let a=n.replace(/_/g,"");if(t.intOptions.asBigInt){switch(r){case 2:a=`0b${a}`;break;case 8:a=`0o${a}`;break;case 16:a=`0x${a}`}const t=BigInt(a);return"-"===e?BigInt(-1)*t:t}const i=parseInt(a,r);return"-"===e?-1*i:i}function E(e,n,r){const{value:a}=e;if(k(a)){const e=a.toString(n);return a<0?"-"+r+e.substr(1):r+e}return t.stringifyNumber(e)}const C=o.concat([{identify:e=>null==e,createNode:(e,n,r)=>r.wrapScalars?new t.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:t.nullOptions,stringify:()=>t.nullOptions.nullStr},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:t.boolOptions,stringify:x},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:t.boolOptions,stringify:x},{identify:k,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,n)=>S(t,n,2),stringify:e=>E(e,2,"0b")},{identify:k,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,n)=>S(t,n,8),stringify:e=>E(e,8,"0")},{identify:k,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,n)=>S(t,n,10),stringify:t.stringifyNumber},{identify:k,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,n)=>S(t,n,16),stringify:e=>E(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:t.stringifyNumber},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,n){const r=new t.Scalar(parseFloat(e.replace(/_/g,"")));if(n){const e=n.replace(/_/g,"");"0"===e[e.length-1]&&(r.minFractionDigits=e.length)}return r},stringify:t.stringifyNumber}],n.binary,n.omap,n.pairs,n.set,n.intTime,n.floatTime,n.timestamp),D={core:v,failsafe:o,json:_,yaml11:C},O={binary:n.binary,bool:p,float:y,floatExp:g,floatNaN:h,floatTime:n.floatTime,int:f,intHex:m,intOct:d,intTime:n.intTime,map:r,null:c,omap:n.omap,pairs:n.pairs,seq:a,set:n.set,timestamp:n.timestamp};function N(e,n,i){if(e instanceof t.Node)return e;const{defaultPrefix:o,onTagObj:s,prevObjects:u,schema:l,wrapScalars:c}=i;n&&n.startsWith("!!")&&(n=o+n.slice(2));let p=function(e,t,n){if(t){const e=n.filter((e=>e.tag===t)),r=e.find((e=>!e.format))||e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find((t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format))}(e,n,l.tags);if(!p){if("function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e)return c?new t.Scalar(e):e;p=e instanceof Map?r:e[Symbol.iterator]?a:r}s&&(s(p),delete i.onTagObj);const d={value:void 0,node:void 0};if(e&&"object"==typeof e&&u){const n=u.get(e);if(n){const e=new t.Alias(n);return i.aliasNodes.push(e),e}d.value=e,u.set(e,d)}return d.node=p.createNode?p.createNode(i.schema,e,i):c?new t.Scalar(e):e,n&&d.node instanceof t.Node&&(d.node.tag=n),d.node}const j=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class P{constructor({customTags:e,merge:t,schema:r,sortMapEntries:a,tags:i}){this.merge=!!t,this.name=r,this.sortMapEntries=!0===a?j:a||null,!e&&i&&n.warnOptionDeprecation("tags","customTags"),this.tags=function(e,t,n,r){let a=e[r.replace(/\W/g,"")];if(!a){const t=Object.keys(e).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${t}`)}if(Array.isArray(n))for(const e of n)a=a.concat(e);else"function"==typeof n&&(a=n(a.slice()));for(let e=0;e<a.length;++e){const n=a[e];if("string"==typeof n){const r=t[n];if(!r){const e=Object.keys(t).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${e}`)}a[e]=r}}return a}(D,O,e||i,r)}createNode(e,t,n,r){const a={defaultPrefix:P.defaultPrefix,schema:this,wrapScalars:t};return N(e,n,r?Object.assign(r,a):a)}createPair(e,n,r){r||(r={wrapScalars:!0});const a=this.createNode(e,r.wrapScalars,null,r),i=this.createNode(n,r.wrapScalars,null,r);return new t.Pair(a,i)}}return e._defineProperty(P,"defaultPrefix",e.defaultTagPrefix),e._defineProperty(P,"defaultTags",e.defaultTags),iL.Schema=P,iL}function lL(){if(tL)return QM;tL=1;var e=GM(),t=JM(),n=uL();const r={get binary(){return t.binaryOptions},set binary(e){Object.assign(t.binaryOptions,e)},get bool(){return t.boolOptions},set bool(e){Object.assign(t.boolOptions,e)},get int(){return t.intOptions},set int(e){Object.assign(t.intOptions,e)},get null(){return t.nullOptions},set null(e){Object.assign(t.nullOptions,e)},get str(){return t.strOptions},set str(e){Object.assign(t.strOptions,e)}},a={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:e.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:e.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:e.defaultTagPrefix}]}};function i(e,t){if("1.0"===(e.version||e.options.version)){const e=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return"!"+e[1];const n=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?`!${n[1]}/${n[2]}`:`!${t.replace(/^tag:/,"")}`}let n=e.tagPrefixes.find((e=>0===t.indexOf(e.prefix)));if(!n){const r=e.getDefaults().tagPrefixes;n=r&&r.find((e=>0===t.indexOf(e.prefix)))}if(!n)return"!"===t[0]?t:`!<${t}>`;const r=t.substr(n.prefix.length).replace(/[!,[\]{}]/g,(e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e])));return n.handle+r}function o(e,n,r,a){const{anchors:o,schema:s}=n.doc;let u;if(!(e instanceof t.Node)){const t={aliasNodes:[],onTagObj:e=>u=e,prevObjects:new Map};e=s.createNode(e,!0,null,t);for(const e of t.aliasNodes){e.source=e.source.node;let t=o.getName(e.source);t||(t=o.newName(),o.map[t]=e.source)}}if(e instanceof t.Pair)return e.toString(n,r,a);u||(u=function(e,n){if(n instanceof t.Alias)return t.Alias;if(n.tag){const t=e.filter((e=>e.tag===n.tag));if(t.length>0)return t.find((e=>e.format===n.format))||t[0]}let r,a;if(n instanceof t.Scalar){a=n.value;const t=e.filter((e=>e.identify&&e.identify(a)||e.class&&a instanceof e.class));r=t.find((e=>e.format===n.format))||t.find((e=>!e.format))}else a=n,r=e.find((e=>e.nodeClass&&a instanceof e.nodeClass));if(!r){const e=a&&a.constructor?a.constructor.name:typeof a;throw new Error(`Tag not resolved for ${e} value`)}return r}(s.tags,e));const l=function(e,t,{anchors:n,doc:r}){const a=[],o=r.anchors.getName(e);return o&&(n[o]=e,a.push(`&${o}`)),e.tag?a.push(i(r,e.tag)):t.default||a.push(i(r,t.tag)),a.join(" ")}(e,u,n);l.length>0&&(n.indentAtStart=(n.indentAtStart||0)+l.length+1);const c="function"==typeof u.stringify?u.stringify(e,n,r,a):e instanceof t.Scalar?t.stringifyString(e,n,r,a):e.toString(n,r,a);return l?e instanceof t.Scalar||"{"===c[0]||"["===c[0]?`${l} ${c}`:`${l}\n${n.indent}${c}`:c}class s{static validAnchorNode(e){return e instanceof t.Scalar||e instanceof t.YAMLSeq||e instanceof t.YAMLMap}constructor(t){e._defineProperty(this,"map",Object.create(null)),this.prefix=t}createAlias(e,n){return this.setAnchor(e,n),new t.Alias(e)}createMergePair(...e){const n=new t.Merge;return n.value.items=e.map((e=>{if(e instanceof t.Alias){if(e.source instanceof t.YAMLMap)return e}else if(e instanceof t.YAMLMap)return this.createAlias(e);throw new Error("Merge sources must be Map nodes or their Aliases")})),n}getName(e){const{map:t}=this;return Object.keys(t).find((n=>t[n]===e))}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);const t=Object.keys(this.map);for(let n=1;;++n){const r=`${e}${n}`;if(!t.includes(r))return r}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach((t=>{e[t]=e[t].resolved})),t.forEach((e=>{e.source=e.source.resolved})),delete this._cstAliases}setAnchor(e,t){if(null!=e&&!s.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(t&&/[\x00-\x19\s,[\]{}]/.test(t))throw new Error("Anchor names must not contain whitespace or control characters");const{map:n}=this,r=e&&Object.keys(n).find((t=>n[t]===e));if(r){if(!t)return r;r!==t&&(delete n[r],n[t]=e)}else{if(!t){if(!e)return null;t=this.newName()}n[t]=e}return t}}const u=(e,n)=>{if(e&&"object"==typeof e){const{tag:r}=e;e instanceof t.Collection?(r&&(n[r]=!0),e.items.forEach((e=>u(e,n)))):e instanceof t.Pair?(u(e.key,n),u(e.value,n)):e instanceof t.Scalar&&r&&(n[r]=!0)}return n};function l({tagPrefixes:t},n){const[r,a]=n.parameters;if(!r||!a){const t="Insufficient parameters given for %TAG directive";throw new e.YAMLSemanticError(n,t)}if(t.some((e=>e.handle===r))){const t="The %TAG directive must only be given at most once per handle in the same document.";throw new e.YAMLSemanticError(n,t)}return{handle:r,prefix:a}}function c(t,n){let[r]=n.parameters;if("YAML:1.0"===n.name&&(r="1.0"),!r){const t="Insufficient parameters given for %YAML directive";throw new e.YAMLSemanticError(n,t)}if(!a[r]){const a=`Document will be parsed as YAML ${t.version||t.options.version} rather than YAML ${r}`;t.warnings.push(new e.YAMLWarning(n,a))}return r}function p(e){if(e instanceof t.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}class d{constructor(e){this.anchors=new s(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return p(this.contents),this.contents.add(e)}addIn(e,t){p(this.contents),this.contents.addIn(e,t)}delete(e){return p(this.contents),this.contents.delete(e)}deleteIn(e){return t.isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):(p(this.contents),this.contents.deleteIn(e))}getDefaults(){return d.defaults[this.version]||d.defaults[this.options.version]||{}}get(e,n){return this.contents instanceof t.Collection?this.contents.get(e,n):void 0}getIn(e,n){return t.isEmptyPath(e)?!n&&this.contents instanceof t.Scalar?this.contents.value:this.contents:this.contents instanceof t.Collection?this.contents.getIn(e,n):void 0}has(e){return this.contents instanceof t.Collection&&this.contents.has(e)}hasIn(e){return t.isEmptyPath(e)?void 0!==this.contents:this.contents instanceof t.Collection&&this.contents.hasIn(e)}set(e,t){p(this.contents),this.contents.set(e,t)}setIn(e,n){t.isEmptyPath(e)?this.contents=n:(p(this.contents),this.contents.setIn(e,n))}setSchema(e,t){if(!e&&!t&&this.schema)return;"number"==typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"==typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);const r=Object.assign({},this.getDefaults(),this.options);this.schema=new n.Schema(r)}parse(n,r){this.options.keepCstNodes&&(this.cstNode=n),this.options.keepNodeTypes&&(this.type="DOCUMENT");const{directives:a=[],contents:i=[],directivesEndMarker:o,error:s,valueRange:u}=n;if(s&&(s.source||(s.source=this),this.errors.push(s)),function(t,n,r){const a=[];let i=!1;for(const r of n){const{comment:n,name:o}=r;switch(o){case"TAG":try{t.tagPrefixes.push(l(t,r))}catch(e){t.errors.push(e)}i=!0;break;case"YAML":case"YAML:1.0":if(t.version){const n="The %YAML directive must only be given at most once per document.";t.errors.push(new e.YAMLSemanticError(r,n))}try{t.version=c(t,r)}catch(e){t.errors.push(e)}i=!0;break;default:if(o){const n=`YAML only supports %TAG and %YAML directives, and not %${o}`;t.warnings.push(new e.YAMLWarning(r,n))}}n&&a.push(n)}if(r&&!i&&"1.1"===(t.version||r.version||t.options.version)){const e=({handle:e,prefix:t})=>({handle:e,prefix:t});t.tagPrefixes=r.tagPrefixes.map(e),t.version=r.version}t.commentBefore=a.join("\n")||null}(this,a,r),o&&(this.directivesEndMarker=!0),this.range=u?[u.start,u.end]:null,this.setSchema(),this.anchors._cstAliases=[],function(n,r){const a={before:[],after:[]};let i,o=!1;for(const s of r)if(s.valueRange){if(void 0!==i){const t="Document contains trailing content not separated by a ... or --- line";n.errors.push(new e.YAMLSyntaxError(s,t));break}const r=t.resolveNode(n,s);o&&(r.spaceBefore=!0,o=!1),i=r}else null!==s.comment?(void 0===i?a.before:a.after).push(s.comment):s.type===e.Type.BLANK_LINE&&(o=!0,void 0===i&&a.before.length>0&&!n.commentBefore&&(n.commentBefore=a.before.join("\n"),a.before=[]));if(n.contents=i||null,i){const e=a.before.join("\n");if(e){const n=i instanceof t.Collection&&i.items[0]?i.items[0]:i;n.commentBefore=n.commentBefore?`${e}\n${n.commentBefore}`:e}n.comment=a.after.join("\n")||null}else n.comment=a.before.concat(a.after).join("\n")||null}(this,i),this.anchors.resolveNodes(),this.options.prettyErrors){for(const t of this.errors)t instanceof e.YAMLError&&t.makePretty();for(const t of this.warnings)t instanceof e.YAMLError&&t.makePretty()}return this}listNonDefaultTags(){return(e=>Object.keys(u(e,{})))(this.contents).filter((e=>0!==e.indexOf(n.Schema.defaultPrefix)))}setTagPrefix(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){const n=this.tagPrefixes.find((t=>t.handle===e));n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter((t=>t.handle!==e))}toJSON(e,n){const{keepBlobsInJSON:r,mapAsMap:a,maxAliasCount:i}=this.options,s=r&&("string"!=typeof e||!(this.contents instanceof t.Scalar)),u={doc:this,indentStep:" ",keep:s,mapAsMap:s&&!!a,maxAliasCount:i,stringify:o},l=Object.keys(this.anchors.map);l.length>0&&(u.anchors=new Map(l.map((e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}]))));const c=t.toJSON(this.contents,e,u);if("function"==typeof n&&u.anchors)for(const{count:e,res:t}of u.anchors.values())n(t,e);return c}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");const e=this.options.indent;if(!Number.isInteger(e)||e<=0){const t=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${t}`)}this.setSchema();const n=[];let r=!1;if(this.version){let e="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?e="%YAML:1.0":"1.1"===this.version&&(e="%YAML 1.1")),n.push(e),r=!0}const a=this.listNonDefaultTags();this.tagPrefixes.forEach((({handle:e,prefix:t})=>{a.some((e=>0===e.indexOf(t)))&&(n.push(`%TAG ${e} ${t}`),r=!0)})),(r||this.directivesEndMarker)&&n.push("---"),this.commentBefore&&(!r&&this.directivesEndMarker||n.unshift(""),n.unshift(this.commentBefore.replace(/^/gm,"#")));const i={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:o};let s=!1,u=null;if(this.contents){this.contents instanceof t.Node&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&n.push(""),this.contents.commentBefore&&n.push(this.contents.commentBefore.replace(/^/gm,"#")),i.forceBlockIndent=!!this.comment,u=this.contents.comment);const e=u?null:()=>s=!0,a=o(this.contents,i,(()=>u=null),e);n.push(t.addComment(a,"",u))}else void 0!==this.contents&&n.push(o(this.contents,i));return this.comment&&(s&&!u||""===n[n.length-1]||n.push(""),n.push(this.comment.replace(/^/gm,"#"))),n.join("\n")+"\n"}}return e._defineProperty(d,"defaults",a),QM.Document=d,QM.defaultOptions={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},QM.scalarOptions=r,QM}function cL(){return aL||(aL=1,rL=function(){if(nL)return VM;nL=1;var e=KM(),t=lL(),n=uL(),r=GM(),a=sL();JM();class i extends t.Document{constructor(e){super(Object.assign({},t.defaultOptions,e))}}function o(t,n){const a=e.parse(t),o=new i(n).parse(a[0]);if(a.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";o.errors.unshift(new r.YAMLSemanticError(a[1],e))}return o}const s={createNode:function(e,r=!0,a){void 0===a&&"string"==typeof r&&(a=r,r=!0);const i=Object.assign({},t.Document.defaults[t.defaultOptions.version],t.defaultOptions);return new n.Schema(i).createNode(e,r,a)},defaultOptions:t.defaultOptions,Document:i,parse:function(e,t){const n=o(e,t);if(n.warnings.forEach((e=>a.warn(e))),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(t,n){const r=[];let a;for(const o of e.parse(t)){const e=new i(n);e.parse(o,a),r.push(e),a=e}return r},parseCST:e.parse,parseDocument:o,scalarOptions:t.scalarOptions,stringify:function(e,t){const n=new i(t);return n.contents=e,String(n)}};return VM.YAML=s,VM}().YAML),rL}let pL;Object.defineProperty(AI,"__esModule",{value:!0}),AI.loaders=void 0;let dL;let fL;const mL={loadJs:function(e){void 0===pL&&(pL=function(){if(BI)return zI;BI=1;const e=A.default,t=II(),n=YI();return zI=r=>{if("string"!=typeof r)throw new TypeError("Expected a string");const a=n(__filename),i=a?e.dirname(a):__dirname,o=t(i,r),s=require.cache[o];if(s&&s.parent){let e=s.parent.children.length;for(;e--;)s.parent.children[e].id===o&&s.parent.children.splice(e,1)}delete require.cache[o];const u=require.cache[a];return void 0===u?require(o):u.require(o)},zI}());return pL(e)},loadJson:function(e,t){void 0===dL&&(dL=UM());try{return dL(t)}catch(t){throw t.message=`JSON Error in ${e}:\n${t.message}`,t}},loadYaml:function(e,t){void 0===fL&&(fL=cL());try{return fL.parse(t,{prettyErrors:!0})}catch(t){throw t.message=`YAML Error in ${e}:\n${t.message}`,t}}};AI.loaders=mL;var hL={};Object.defineProperty(hL,"__esModule",{value:!0}),hL.getPropertyByPath=function(e,t){if("string"==typeof t&&Object.prototype.hasOwnProperty.call(e,t))return e[t];const n="string"==typeof t?t.split("."):t;return n.reduce(((e,t)=>void 0===e?e:e[t]),e)},Object.defineProperty(TI,"__esModule",{value:!0}),TI.ExplorerBase=void 0,TI.getExtensionDescription=wL;var gL,yL=(gL=A.default)&&gL.__esModule?gL:{default:gL},vL=AI,bL=hL;function wL(e){const t=yL.default.extname(e);return t?`extension "${t}"`:"files without extensions"}TI.ExplorerBase=class{constructor(e){!0===e.cache&&(this.loadCache=new Map,this.searchCache=new Map),this.config=e,this.validateConfig()}clearLoadCache(){this.loadCache&&this.loadCache.clear()}clearSearchCache(){this.searchCache&&this.searchCache.clear()}clearCaches(){this.clearLoadCache(),this.clearSearchCache()}validateConfig(){const e=this.config;e.searchPlaces.forEach((t=>{const n=yL.default.extname(t)||"noExt",r=e.loaders[n];if(!r)throw new Error(`No loader specified for ${wL(t)}, so searchPlaces item "${t}" is invalid`);if("function"!=typeof r)throw new Error(`loader for ${wL(t)} is not a function (type provided: "${typeof r}"), so searchPlaces item "${t}" is invalid`)}))}shouldSearchStopWithResult(e){return null!==e&&(!e.isEmpty||!this.config.ignoreEmptySearchPlaces)}nextDirectoryToSearch(e,t){if(this.shouldSearchStopWithResult(t))return null;const n=(r=e,yL.default.dirname(r));var r;return n===e||e===this.config.stopDir?null:n}loadPackageProp(e,t){const n=vL.loaders.loadJson(e,t);return(0,bL.getPropertyByPath)(n,this.config.packageProp)||null}getLoaderEntryForFile(e){if("package.json"===yL.default.basename(e)){return this.loadPackageProp.bind(this)}const t=yL.default.extname(e)||"noExt",n=this.config.loaders[t];if(!n)throw new Error(`No loader specified for ${wL(e)}`);return n}loadedContentToCosmiconfigResult(e,t){return null===t?null:void 0===t?{filepath:e,config:void 0,isEmpty:!0}:{config:t,filepath:e}}validateFilePath(e){if(!e)throw new Error("load must pass a non-empty string")}};var _L={};Object.defineProperty(_L,"__esModule",{value:!0}),_L.readFile=async function(e,t={}){const n=!0===t.throwNotFound;try{const t=await async function(e,t){return new Promise(((n,r)=>{xL.default.readFile(e,t,((e,t)=>{e?r(e):n(t)}))}))}(e,"utf8");return t}catch(e){if(!1===n&&("ENOENT"===e.code||"EISDIR"===e.code))return null;throw e}},_L.readFileSync=function(e,t={}){const n=!0===t.throwNotFound;try{return xL.default.readFileSync(e,"utf8")}catch(e){if(!1===n&&("ENOENT"===e.code||"EISDIR"===e.code))return null;throw e}};var xL=function(e){return e&&e.__esModule?e:{default:e}}(R.default);var kL={};Object.defineProperty(kL,"__esModule",{value:!0}),kL.cacheWrapper=async function(e,t,n){const r=e.get(t);if(void 0!==r)return r;const a=await n();return e.set(t,a),a},kL.cacheWrapperSync=function(e,t,n){const r=e.get(t);if(void 0!==r)return r;const a=n();return e.set(t,a),a};var SL={};Object.defineProperty(SL,"__esModule",{value:!0}),SL.getDirectory=async function(e){if(!0===await(0,CL.isDirectory)(e))return e;return EL.default.dirname(e)},SL.getDirectorySync=function(e){if(!0===(0,CL.isDirectorySync)(e))return e;return EL.default.dirname(e)};var EL=function(e){return e&&e.__esModule?e:{default:e}}(A.default),CL=ME;Object.defineProperty(PI,"__esModule",{value:!0}),PI.Explorer=void 0;var DL=function(e){return e&&e.__esModule?e:{default:e}}(A.default),OL=TI,NL=_L,jL=kL,PL=SL;class TL extends OL.ExplorerBase{constructor(e){super(e)}async search(e=process.cwd()){const t=await(0,PL.getDirectory)(e);return await this.searchFromDirectory(t)}async searchFromDirectory(e){const t=DL.default.resolve(process.cwd(),e),n=async()=>{const e=await this.searchDirectory(t),n=this.nextDirectoryToSearch(t,e);if(n)return this.searchFromDirectory(n);return await this.config.transform(e)};return this.searchCache?(0,jL.cacheWrapper)(this.searchCache,t,n):n()}async searchDirectory(e){for await(const t of this.config.searchPlaces){const n=await this.loadSearchPlace(e,t);if(!0===this.shouldSearchStopWithResult(n))return n}return null}async loadSearchPlace(e,t){const n=DL.default.join(e,t),r=await(0,NL.readFile)(n);return await this.createCosmiconfigResult(n,r)}async loadFileContent(e,t){if(null===t)return null;if(""===t.trim())return;const n=this.getLoaderEntryForFile(e);return await n(e,t)}async createCosmiconfigResult(e,t){const n=await this.loadFileContent(e,t);return this.loadedContentToCosmiconfigResult(e,n)}async load(e){this.validateFilePath(e);const t=DL.default.resolve(process.cwd(),e),n=async()=>{const e=await(0,NL.readFile)(t,{throwNotFound:!0}),n=await this.createCosmiconfigResult(t,e);return await this.config.transform(n)};return this.loadCache?(0,jL.cacheWrapper)(this.loadCache,t,n):n()}}PI.Explorer=TL;var AL={};Object.defineProperty(AL,"__esModule",{value:!0}),AL.ExplorerSync=void 0;var RL=function(e){return e&&e.__esModule?e:{default:e}}(A.default),IL=TI,ML=_L,LL=kL,FL=SL;class zL extends IL.ExplorerBase{constructor(e){super(e)}searchSync(e=process.cwd()){const t=(0,FL.getDirectorySync)(e);return this.searchFromDirectorySync(t)}searchFromDirectorySync(e){const t=RL.default.resolve(process.cwd(),e),n=()=>{const e=this.searchDirectorySync(t),n=this.nextDirectoryToSearch(t,e);if(n)return this.searchFromDirectorySync(n);return this.config.transform(e)};return this.searchCache?(0,LL.cacheWrapperSync)(this.searchCache,t,n):n()}searchDirectorySync(e){for(const t of this.config.searchPlaces){const n=this.loadSearchPlaceSync(e,t);if(!0===this.shouldSearchStopWithResult(n))return n}return null}loadSearchPlaceSync(e,t){const n=RL.default.join(e,t),r=(0,ML.readFileSync)(n);return this.createCosmiconfigResultSync(n,r)}loadFileContentSync(e,t){if(null===t)return null;if(""===t.trim())return;return this.getLoaderEntryForFile(e)(e,t)}createCosmiconfigResultSync(e,t){const n=this.loadFileContentSync(e,t);return this.loadedContentToCosmiconfigResult(e,n)}loadSync(e){this.validateFilePath(e);const t=RL.default.resolve(process.cwd(),e),n=()=>{const e=(0,ML.readFileSync)(t,{throwNotFound:!0}),n=this.createCosmiconfigResultSync(t,e);return this.config.transform(n)};return this.loadCache?(0,LL.cacheWrapperSync)(this.loadCache,t,n):n()}}AL.ExplorerSync=zL,Object.defineProperty(jI,"__esModule",{value:!0}),jI.cosmiconfig=function(e,t={}){const n=WL(e,t),r=new UL.Explorer(n);return{search:r.search.bind(r),load:r.load.bind(r),clearLoadCache:r.clearLoadCache.bind(r),clearSearchCache:r.clearSearchCache.bind(r),clearCaches:r.clearCaches.bind(r)}},jI.cosmiconfigSync=function(e,t={}){const n=WL(e,t),r=new qL.ExplorerSync(n);return{search:r.searchSync.bind(r),load:r.loadSync.bind(r),clearLoadCache:r.clearLoadCache.bind(r),clearSearchCache:r.clearSearchCache.bind(r),clearCaches:r.clearCaches.bind(r)}},jI.defaultLoaders=void 0;var BL=function(e){return e&&e.__esModule?e:{default:e}}(M.default),UL=PI,qL=AL,$L=AI;const VL=Object.freeze({".cjs":$L.loaders.loadJs,".js":$L.loaders.loadJs,".json":$L.loaders.loadJson,".yaml":$L.loaders.loadYaml,".yml":$L.loaders.loadYaml,noExt:$L.loaders.loadYaml});jI.defaultLoaders=VL;const HL=function(e){return e};function WL(e,t){const n={packageProp:e,searchPlaces:["package.json",`.${e}rc`,`.${e}rc.json`,`.${e}rc.yaml`,`.${e}rc.yml`,`.${e}rc.js`,`.${e}rc.cjs`,`.config/${e}rc`,`.config/${e}rc.json`,`.config/${e}rc.yaml`,`.config/${e}rc.yml`,`.config/${e}rc.js`,`.config/${e}rc.cjs`,`${e}.config.js`,`${e}.config.cjs`],ignoreEmptySearchPlaces:!0,stopDir:BL.default.homedir(),cache:!0,transform:HL,loaders:VL};return{...n,...t,loaders:{...n.loaders,...t.loaders}}}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getConfig",{enumerable:!0,get:()=>i});const t=a(M.default),n=jI,r=Uj;function a(e){return e&&e.__esModule?e:{default:e}}async function i(e){const a=(0,r.getWorkspaceRoot)(e);if(!a)throw new Error("This must be called inside a codebase that is part of a JavaScript workspace.");const i=await(0,n.cosmiconfig)("lage"),o=await i.search(a??e),s=o?.config;return{cacheOptions:s?.cacheOptions??{},ignore:s?.ignore??[],npmClient:s?.npmClient??"npm",pipeline:s?.pipeline??{},priorities:s?.priorities??[],repoWideChanges:s?.repoWideChanges??["lage.config.js","package-lock.json","yarn.lock","pnpm-lock.yaml","lerna.json","rush.json"],loggerOptions:s?.loggerOptions??{},runners:s?.runners??{},workerIdleMemoryLimit:s?.workerIdleMemoryLimit??t.default.totalmem(),concurrency:s?.concurrency??t.default.cpus().length-1,allowNoTargetRuns:s?.allowNoTargetRuns??!1}}}(NI);var GL={},KL={},YL={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LogLevel",{enumerable:!0,get:()=>t});const t={error:10,warn:20,info:30,verbose:40,silly:50}}(YL),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Logger",{enumerable:!0,get:()=>r});const t=YL,n=te.default;class r{log(e,t,n){const r={timestamp:Date.now(),level:e,msg:t,data:n};for(const e of this.reporters)e.log(r)}info(e,n){this.log(t.LogLevel.info,e,n)}warn(e,n){this.log(t.LogLevel.warn,e,n)}error(e,n){this.log(t.LogLevel.error,e,n)}verbose(e,n){this.log(t.LogLevel.verbose,e,n)}silly(e,n){this.log(t.LogLevel.silly,e,n)}stream(e,t,r){const a=(0,n.createInterface)({input:t,crlfDelay:1/0,terminal:!1}),i=t=>{this.log(e,t,r)};return a.on("line",i),()=>{a.off("line",i),a.close()}}addReporter(e){this.reporters.push(e)}constructor(){this.reporters=[]}}}(KL),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{default:()=>r,Logger:()=>t.Logger,LogLevel:()=>n.LogLevel});const t=KL,n=YL;function r(){return new t.Logger}}(GL),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"infoAction",{enumerable:!0,get:()=>l});const t=$e,n=hI,r=DI,a=NI,i=Uj,o=u(GL),s=gI;function u(e){return e&&e.__esModule?e:{default:e}}async function l(e,u){const l=process.cwd(),c=await(0,a.getConfig)(l),p=(0,o.default)(),d=(0,i.getWorkspaceRoot)(process.cwd()),f=(0,i.getPackageInfos)(d),{tasks:m,taskArgs:h}=(0,r.filterArgsForTasks)(u.args),g=(0,n.createTargetGraph)({logger:p,root:d,dependencies:e.dependencies,dependents:e.dependents&&!e.to,ignore:e.ignore.concat(c.ignore),pipeline:c.pipeline,repoWideChanges:c.repoWideChanges,scope:(e.scope??[]).concat(e.to??[]),since:e.since,outputs:c.cacheOptions.outputGlob,tasks:m,packageInfos:f});c.cacheOptions.writeRemoteCache=!1;const{hasher:y}=(0,t.createCache)({root:d,logger:p,cacheOptions:c.cacheOptions,skipLocalCache:!1,cliArgs:h}),{targets:v}=g;for(const e of v.values()){if(e.id===(0,s.getStartTargetId)())continue;const t=e.dependencies.indexOf((0,s.getStartTargetId)());e.dependencies.splice(t,1),process.stdout.write(`${JSON.stringify({...e,hash:await y.hash(e)})}\n`)}}}(qe);var QL={},XL={};!function(e){function t(e,t){const n=new Set;for(const t of e)n.add(t.task);const r={};for(const[e,a]of Object.entries(t??{}))n.has(e)&&(r[e]=a);return r}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"filterPipelineDefinitions",{enumerable:!0,get:()=>t})}(XL);var JL={},ZL={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"findNpmClient",{enumerable:!0,get:()=>a});const t=r(A.default),n=r(R.default);function r(e){return e&&e.__esModule?e:{default:e}}function a(e){const r=function(e){const r=Object.keys(process.env).find((e=>"path"===e.toLowerCase()))??"PATH",a=Object.keys(process.env).find((e=>"pathext"===e.toLowerCase()))??"PATHEXT",i=process.env[r]??"",o=process.env[a]??"";for(const r of i.split(t.default.delimiter)){const a=o.split(t.default.delimiter).map((n=>t.default.join(r,`${e}${n}`))).find((e=>n.default.existsSync(e)));if(a)return a}}(e);if(!r)throw new Error(`npm client not found: ${e}`);return r}}(ZL),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"findNpmClient",{enumerable:!0,get:()=>t.findNpmClient});const t=ZL}(JL);var eF={};!function(e){function t(e,t){const n=new Map;let r=0,a=0,i=0,o=0;for(const[t,a]of Object.entries(e))if(!Array.isArray(a)&&!t.includes("#")){const e=a.maxWorkers??a.options?.maxWorkers;if(void 0===e){r++;continue}let s=0;if("number"!=typeof e)throw new Error(`Invalid maxWorkers value: ${e}`);s=e,n.set(t,s),i++,o+=s}if(i>0&&r>0){const e=o/i;a=Math.max(1,Math.floor(e*r))}const s=o+a;if(s>t){let e=0;for(const[r,a]of n.entries()){const i=Math.max(1,Math.floor(a/s*t));e+=i,n.set(r,i)}if(e>t)throw new Error("Could not adjust maxWorkers per task to fit the concurrency, try reducing the maxWorkers, or increasing the --concurrency CLI argument, or separate the tasks to be run")}return n}function n(e){return new Map([...e.map((e=>{const[t,n]=e.split(/[=:]/);return[t,parseInt(n,10)]}))])}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{getMaxWorkersPerTask:()=>t,getMaxWorkersPerTaskFromOptions:()=>n})}(eF);var tF={},nF={},rF={},aF={},iF={},oF={};!function(e){function t(e){const t=parseFloat(e);if(t>60){const e=Math.floor(t/60);return`${e}m ${(t-60*e).toFixed(2)}s`}return`${t.toFixed(2)}s`}function n(e){return(e[0]+e[1]/1e9).toFixed(2)}function r(e=[0,0],t=[0,0]){const n=t[0]-e[0],r=t[1]-e[1];return r<0?[n-1,1e9+r]:[n,r]}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{formatDuration:()=>t,hrToSeconds:()=>n,hrtimeDiff:()=>r})}(oF),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{formatDuration:()=>t.formatDuration,hrToSeconds:()=>t.hrToSeconds,hrtimeDiff:()=>t.hrtimeDiff});const t=oF}(iF);var sF={};!function(e){function t(e){return void 0!==e&&e.target&&void 0!==e.status}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isTargetStatusLogEntry",{enumerable:!0,get:()=>t})}(sF);var uF={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"slowestTargetRuns",{enumerable:!0,get:()=>n});const t=iF;function n(e){return e.sort(((e,n)=>parseFloat((0,t.hrToSeconds)((0,t.hrtimeDiff)(e.duration,n.duration))))).filter((e=>"skipped"!==e.status&&!e.target.hidden))}}(uF),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AdoReporter",{enumerable:!0,get:()=>d});const t=iF,n=sF,r=GL,a=o(jo),i=uF;function o(e){return e&&e.__esModule?e:{default:e}}const s={[r.LogLevel.info]:a.default.white,[r.LogLevel.verbose]:a.default.gray,[r.LogLevel.warn]:a.default.white,[r.LogLevel.error]:a.default.white,[r.LogLevel.silly]:a.default.green,task:a.default.cyan,pkg:a.default.magenta,ok:a.default.green,error:a.default.red,warn:a.default.yellow},u={[r.LogLevel.info]:"INFO",[r.LogLevel.warn]:"WARN",[r.LogLevel.error]:"ERR!",[r.LogLevel.silly]:"SILLY",[r.LogLevel.verbose]:"VERB"};function l(e,t){return`${s.pkg(e)} ${s.task(t)}`}function c(e,t){if("string"==typeof t){return{prefix:e,message:t}}return{prefix:"",message:e}}function p(e,t,n){return`${u[e]}: ${t} ${n}\n`}class d{log(e){if(!(e.data&&e.data.target&&e.data.target.hidden))return e.data&&e.data.target&&(this.logEntries.has(e.data.target.id)||this.logEntries.set(e.data.target.id,[]),this.logEntries.get(e.data.target.id).push(e)),this.options.logLevel>=e.level?this.options.grouped&&e.data?.target?this.logTargetEntryByGroup(e):this.logTargetEntry(e):void 0}logTargetEntry(e){const r=s[e.level],i=e.data;if((0,n.isTargetStatusLogEntry)(i)){const{target:n,hash:o,duration:u}=i,{packageName:d,task:f}=n,m=this.options.grouped?c(e.msg):c(l(d??"<root>",f),e.msg),h=this.options.grouped?`${a.default.magenta(d)} ${a.default.cyan(f)}`:"";switch(i.status){case"running":return this.logStream.write(p(e.level,m.prefix,r(`${s.ok("➔")} start ${h}`)));case"success":return this.logStream.write(p(e.level,m.prefix,r(`${s.ok("✓")} done ${h} - ${(0,t.formatDuration)((0,t.hrToSeconds)(u))}`)));case"failed":return this.logStream.write(p(e.level,m.prefix,r(`${s.error("✖")} fail ${h}`)));case"skipped":return this.logStream.write(p(e.level,m.prefix,r(`${s.ok("»")} skip ${h} - ${o}`)));case"aborted":return this.logStream.write(p(e.level,m.prefix,r(`${s.warn("-")} aborted ${h}`)));case"queued":return this.logStream.write(p(e.level,m.prefix,r(`${s.warn("…")} aborted ${h}`)))}}else{if(e?.data?.target){const{target:t}=i,{packageName:n,task:a}=t,o=this.options.grouped?c(e.msg):c(l(n??"<root>",a),e.msg);return this.logStream.write(p(e.level,o.prefix,r("| "+o.message)))}if(""!==e?.msg.trim())return this.logStream.write(p(e.level,"",e.msg))}}logTargetEntryByGroup(e){const r=e.data,a=r.target,{id:i}=a;if(this.groupedEntries.set(i,this.groupedEntries.get(i)||[]),this.groupedEntries.get(i)?.push(e),(0,n.isTargetStatusLogEntry)(r)&&("success"===r.status||"failed"===r.status||"skipped"===r.status||"aborted"===r.status)){const{status:e,duration:n}=r;this.logStream.write(`##[group] ${s.pkg(r.target.packageName??"<root>")} ${s.task(r.target.task)} ${e}${n?`, took ${(0,t.formatDuration)((0,t.hrToSeconds)(n))}`:""}\n`);const a=this.groupedEntries.get(i);for(const e of a)this.logTargetEntry(e);this.logStream.write("##[endgroup]\n")}}summarize(e){const{targetRuns:n,targetRunByStatus:o,duration:s}=e,{failed:u,aborted:c,skipped:d,success:f,pending:m}=o,h={success:a.default.greenBright,failed:a.default.redBright,skipped:a.default.gray,running:a.default.yellow,pending:a.default.gray,aborted:a.default.red,queued:a.default.magenta};if(this.logStream.write(a.default.cyanBright("##[section]Summary\n")),n.size>0){const e=(0,i.slowestTargetRuns)([...n.values()]);for(const n of e){const e=h[n.status],a=n.target;this.logStream.write(p(r.LogLevel.info,l(a.packageName||"[GLOBAL]",a.task),e(`${n.status}${n.duration?`, took ${(0,t.formatDuration)((0,t.hrToSeconds)(n.duration))}`:""}`)))}this.logStream.write(`[Tasks Count] success: ${f.length}, skipped: ${d.length}, pending: ${m.length}, aborted: ${c.length}\n`)}else this.logStream.write("Nothing has been run.\n");if(u&&u.length>0){let e="##vso[task.logissue type=error]Your build failed on the following packages => ";for(const t of u){const r=n.get(t)?.target;if(r){const{packageName:n,task:i}=r,o=this.logEntries.get(t);if(e+=`[${n} ${i}], `,this.logStream.write(`##[error] [${a.default.magenta(n)} ${a.default.cyan(i)}] ${a.default.redBright("ERROR DETECTED")}\n`),o)for(const e of o)this.logStream.write(`##[error] ${e.msg}\n`)}}e+="find the error logs above with the prefix '##[error]!'\n",this.logStream.write(e)}this.logStream.write(p(r.LogLevel.info,"",`Took a total of ${(0,t.formatDuration)((0,t.hrToSeconds)(s))} to complete`))}constructor(e){this.options=e,this.logStream=process.stdout,this.logEntries=new Map,this.groupedEntries=new Map,e.logLevel=e.logLevel||r.LogLevel.info}}}(aF);var lF={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"JsonReporter",{enumerable:!0,get:()=>n});const t=iF;class n{log(e){e.data&&e.data.target&&e.data.target.hidden||this.options.logLevel>=e.level&&console.log(JSON.stringify(e))}summarize(e){const{duration:n,targetRuns:r,targetRunByStatus:a}=e,i={},o=[];for(const e of r.values())o.push({package:e.target.packageName,task:e.target.task,duration:(0,t.hrToSeconds)(e.duration),status:e.status});for(const e of Object.keys(a))a[e]&&a[e].length.length>0&&(i[`${e}Targets`]=a[e].length);i.duration=(0,t.hrToSeconds)(n),i.taskStats=o,console.log(JSON.stringify({summary:i}))}constructor(e){this.options=e}}}(lF);var cF={},pF=({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")},dF={exports:{}},fF={exports:{}};fF.exports=function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t=/^\s+/,n=/\s+$/;function r(e,t){if(t=t||{},(e=e||"")instanceof r)return e;if(!(this instanceof r))return new r(e,t);var n=a(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function a(t){var n={r:0,g:0,b:0},r=1,a=null,o=null,u=null,c=!1,p=!1;return"string"==typeof t&&(t=$(t)),"object"==e(t)&&(q(t.r)&&q(t.g)&&q(t.b)?(n=i(t.r,t.g,t.b),c=!0,p="%"===String(t.r).substr(-1)?"prgb":"rgb"):q(t.h)&&q(t.s)&&q(t.v)?(a=I(t.s),o=I(t.v),n=l(t.h,a,o),c=!0,p="hsv"):q(t.h)&&q(t.s)&&q(t.l)&&(a=I(t.s),u=I(t.l),n=s(t.h,a,u),c=!0,p="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=O(r),{ok:c,format:t.format||p,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}function i(e,t,n){return{r:255*N(e,255),g:255*N(t,255),b:255*N(n,255)}}function o(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,a,i=Math.max(e,t,n),o=Math.min(e,t,n),s=(i+o)/2;if(i==o)r=a=0;else{var u=i-o;switch(a=s>.5?u/(2-i-o):u/(i+o),i){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:a,l:s}}function s(e,t,n){var r,a,i;function o(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)r=a=i=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=o(u,s,e+1/3),a=o(u,s,e),i=o(u,s,e-1/3)}return{r:255*r,g:255*a,b:255*i}}function u(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,a,i=Math.max(e,t,n),o=Math.min(e,t,n),s=i,u=i-o;if(a=0===i?0:u/i,i==o)r=0;else{switch(i){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:a,v:s}}function l(e,t,n){e=6*N(e,360),t=N(t,100),n=N(n,100);var r=Math.floor(e),a=e-r,i=n*(1-t),o=n*(1-a*t),s=n*(1-(1-a)*t),u=r%6;return{r:255*[n,o,i,i,s,n][u],g:255*[s,n,n,o,i,i][u],b:255*[i,i,s,n,n,o][u]}}function c(e,t,n,r){var a=[R(Math.round(e).toString(16)),R(Math.round(t).toString(16)),R(Math.round(n).toString(16))];return r&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function p(e,t,n,r,a){var i=[R(Math.round(e).toString(16)),R(Math.round(t).toString(16)),R(Math.round(n).toString(16)),R(M(r))];return a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function d(e,t,n,r){return[R(M(r)),R(Math.round(e).toString(16)),R(Math.round(t).toString(16)),R(Math.round(n).toString(16))].join("")}function f(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s-=t/100,n.s=j(n.s),r(n)}function m(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s+=t/100,n.s=j(n.s),r(n)}function h(e){return r(e).desaturate(100)}function g(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l+=t/100,n.l=j(n.l),r(n)}function y(e,t){t=0===t?0:t||10;var n=r(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),r(n)}function v(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l-=t/100,n.l=j(n.l),r(n)}function b(e,t){var n=r(e).toHsl(),a=(n.h+t)%360;return n.h=a<0?360+a:a,r(n)}function w(e){var t=r(e).toHsl();return t.h=(t.h+180)%360,r(t)}function _(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=r(e).toHsl(),a=[r(e)],i=360/t,o=1;o<t;o++)a.push(r({h:(n.h+o*i)%360,s:n.s,l:n.l}));return a}function x(e){var t=r(e).toHsl(),n=t.h;return[r(e),r({h:(n+72)%360,s:t.s,l:t.l}),r({h:(n+216)%360,s:t.s,l:t.l})]}function k(e,t,n){t=t||6,n=n||30;var a=r(e).toHsl(),i=360/n,o=[r(e)];for(a.h=(a.h-(i*t>>1)+720)%360;--t;)a.h=(a.h+i)%360,o.push(r(a));return o}function S(e,t){t=t||6;for(var n=r(e).toHsv(),a=n.h,i=n.s,o=n.v,s=[],u=1/t;t--;)s.push(r({h:a,s:i,v:o})),o=(o+u)%1;return s}r.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=O(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=u(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=u(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=o(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=o(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return c(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return p(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*N(this._r,255))+"%",g:Math.round(100*N(this._g,255))+"%",b:Math.round(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*N(this._r,255))+"%, "+Math.round(100*N(this._g,255))+"%, "+Math.round(100*N(this._b,255))+"%)":"rgba("+Math.round(100*N(this._r,255))+"%, "+Math.round(100*N(this._g,255))+"%, "+Math.round(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(C[c(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+d(this._r,this._g,this._b,this._a),n=t,a=this._gradientType?"GradientType = 1, ":"";if(e){var i=r(e);n="#"+d(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return r(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(g,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(v,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(_,[3])},tetrad:function(){return this._applyCombination(_,[4])}},r.fromRatio=function(t,n){if("object"==e(t)){var a={};for(var i in t)t.hasOwnProperty(i)&&(a[i]="a"===i?t[i]:I(t[i]));t=a}return r(t,n)},r.equals=function(e,t){return!(!e||!t)&&r(e).toRgbString()==r(t).toRgbString()},r.random=function(){return r.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},r.mix=function(e,t,n){n=0===n?0:n||50;var a=r(e).toRgb(),i=r(t).toRgb(),o=n/100;return r({r:(i.r-a.r)*o+a.r,g:(i.g-a.g)*o+a.g,b:(i.b-a.b)*o+a.b,a:(i.a-a.a)*o+a.a})},r.readability=function(e,t){var n=r(e),a=r(t);return(Math.max(n.getLuminance(),a.getLuminance())+.05)/(Math.min(n.getLuminance(),a.getLuminance())+.05)},r.isReadable=function(e,t,n){var a,i,o=r.readability(e,t);switch(i=!1,(a=V(n)).level+a.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},r.mostReadable=function(e,t,n){var a,i,o,s,u=null,l=0;i=(n=n||{}).includeFallbackColors,o=n.level,s=n.size;for(var c=0;c<t.length;c++)(a=r.readability(e,t[c]))>l&&(l=a,u=r(t[c]));return r.isReadable(e,u,{level:o,size:s})||!i?u:(n.includeFallbackColors=!1,r.mostReadable(e,["#fff","#000"],n))};var E=r.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},C=r.hexNames=D(E);function D(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function O(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){T(e)&&(e="100%");var n=A(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function j(e){return Math.min(1,Math.max(0,e))}function P(e){return parseInt(e,16)}function T(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)}function A(e){return"string"==typeof e&&-1!=e.indexOf("%")}function R(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function M(e){return Math.round(255*parseFloat(e)).toString(16)}function L(e){return P(e)/255}var F,z,B,U=(z="[\\s|\\(]+("+(F="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",B="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",{CSS_UNIT:new RegExp(F),rgb:new RegExp("rgb"+z),rgba:new RegExp("rgba"+B),hsl:new RegExp("hsl"+z),hsla:new RegExp("hsla"+B),hsv:new RegExp("hsv"+z),hsva:new RegExp("hsva"+B),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function q(e){return!!U.CSS_UNIT.exec(e)}function $(e){e=e.replace(t,"").replace(n,"").toLowerCase();var r,a=!1;if(E[e])e=E[e],a=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(r=U.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=U.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=U.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=U.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=U.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=U.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=U.hex8.exec(e))?{r:P(r[1]),g:P(r[2]),b:P(r[3]),a:L(r[4]),format:a?"name":"hex8"}:(r=U.hex6.exec(e))?{r:P(r[1]),g:P(r[2]),b:P(r[3]),format:a?"name":"hex"}:(r=U.hex4.exec(e))?{r:P(r[1]+""+r[1]),g:P(r[2]+""+r[2]),b:P(r[3]+""+r[3]),a:L(r[4]+""+r[4]),format:a?"name":"hex8"}:!!(r=U.hex3.exec(e))&&{r:P(r[1]+""+r[1]),g:P(r[2]+""+r[2]),b:P(r[3]+""+r[3]),format:a?"name":"hex"}}function V(e){var t,n;return"AA"!==(t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==t&&(t="AA"),"small"!==(n=(e.size||"small").toLowerCase())&&"large"!==n&&(n="small"),{level:t,size:n}}return r}();const mF=fF.exports,hF={r:256,g:256,b:256,a:1},gF={h:360,s:1,v:1,a:1};function yF(e,t,n){let r={};for(let a in e)e.hasOwnProperty(a)&&(r[a]=0===n?0:(t[a]-e[a])/n);return r}function vF(e,t,n,r){let a={};for(let i in t)t.hasOwnProperty(i)&&(a[i]=e[i]*n+t[i],a[i]=a[i]<0?a[i]+r[i]:1!==r[i]?a[i]%r[i]:a[i]);return a}function bF(e,t,n){const r=e.color.toRgb(),a=yF(r,t.color.toRgb(),n);let i=[e.color];for(let e=1;e<n;e++){const t=vF(a,r,e,hF);i.push(mF(t))}return i}function wF(e,t,n,r){const a=e.color.toHsv(),i=t.color.toHsv();if(0===a.s||0===i.s)return bF(e,t,n);let o;if("boolean"==typeof r)o=r;else{const e=a.h<i.h&&i.h-a.h<180||a.h>i.h&&a.h-i.h>180;o="long"===r&&e||"short"===r&&!e}const s=yF(a,i,n);let u,l=[e.color];u=a.h<=i.h&&!o||a.h>=i.h&&o?i.h-a.h:o?360-i.h+a.h:360-a.h+i.h,s.h=Math.pow(-1,o?1:0)*Math.abs(u)/n;for(let e=1;e<n;e++){const t=vF(s,a,e,gF);l.push(mF(t))}return l}function _F(e,t){const n=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<n)throw new Error("Number of steps cannot be inferior to number of stops");let r=[];for(let a=1;a<n;a++){const n=(t-1)*(e[a].pos-e[a-1].pos);r.push(Math.max(1,Math.round(n)))}let a=1;for(let e=n-1;e--;)a+=r[e];for(;a!==t;)if(a<t){const e=Math.min.apply(null,r);r[r.indexOf(e)]++,a++}else{const e=Math.max.apply(null,r);r[r.indexOf(e)]--,a--}return r}function xF(e,t,n,r){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let a,i;for(let n=0,r=e.length;n<r-1;n++)if(t>=e[n].pos&&t<e[n+1].pos){a=e[n],i=e[n+1];break}a||(a=i=e[e.length-1]);const o=vF(yF(a.color[n](),i.color[n](),100*(i.pos-a.pos)),a.color[n](),100*(t-a.pos),r);return mF(o)}class kF{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");const t=void 0!==e[0].pos;let n=e.length,r=-1,a=!1;this.stops=e.map(((e,i)=>{const o=void 0!==e.pos;if(t^o)throw new Error("Cannot mix positionned and not posionned color stops");if(o){const t=void 0!==e.color;if(!t&&(a||0===i||i===n-1))throw new Error("Cannot define two consecutive position-only stops");if(a=!t,(e={color:t?mF(e.color):null,colorLess:!t,pos:e.pos}).pos<0||e.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(e.pos<r)throw new Error("Color stops positions are not ordered");r=e.pos}else e={color:mF(void 0!==e.color?e.color:e),pos:i/(n-1)};return e})),0!==this.stops[0].pos&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),1!==this.stops[n-1].pos&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach((function(t){e.push({color:t.color,pos:1-t.pos})})),new kF(e.reverse())}loop(){let e=[],t=[];return this.stops.forEach((t=>{e.push({color:t.color,pos:t.pos/2})})),this.stops.slice(0,-1).forEach((e=>{t.push({color:e.color,pos:1-e.pos/2})})),new kF(e.concat(t.reverse()))}rgb(e){const t=_F(this.stops,e);let n=[];this.stops.forEach(((e,t)=>{e.colorLess&&(e.color=bF(this.stops[t-1],this.stops[t+1],2)[1])}));for(let e=0,r=this.stops.length;e<r-1;e++){const r=bF(this.stops[e],this.stops[e+1],t[e]);n.splice(n.length,0,...r)}return n.push(this.stops[this.stops.length-1].color),n}hsv(e,t){const n=_F(this.stops,e);let r=[];this.stops.forEach(((e,n)=>{e.colorLess&&(e.color=wF(this.stops[n-1],this.stops[n+1],2,t)[1])}));for(let e=0,a=this.stops.length;e<a-1;e++){const a=wF(this.stops[e],this.stops[e+1],n[e],t);r.splice(r.length,0,...a)}return r.push(this.stops[this.stops.length-1].color),r}css(e,t){let n=(e=e||"linear")+"-gradient("+(t=t||("linear"===e?"to right":"ellipse at center"));return this.stops.forEach((function(e){n+=", "+(e.colorLess?"":e.color.toRgbString()+" ")+100*e.pos+"%"})),n+=")",n}rgbAt(e){return xF(this.stops,e,"toRgb",hF)}hsvAt(e){return xF(this.stops,e,"toHsv",gF)}}var SF=function(e){if(1===arguments.length){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new kF(e)};!function(e){const t=jo,n=SF,r=/\s/g;function a(...e){const a=n.apply(this,e),s=(e,n)=>function(e,n,a){const s=o(a),u=Math.max(e.replace(r,"").length,n.stops.length),l=i(n,s,u);let c="";for(const n of e)c+=n.match(r)?n:t.hex(l.shift().toHex())(n);return c}(e?e.toString():"",a,n);return s.multiline=(e,n)=>function(e,n,r){const a=o(r),s=e.split("\n"),u=Math.max.apply(null,s.map((e=>e.length)).concat([n.stops.length])),l=i(n,a,u),c=[];for(const e of s){const n=l.slice(0);let r="";for(const a of e)r+=t.hex(n.shift().toHex())(a);c.push(r)}return c.join("\n")}(e?e.toString():"",a,n),s}const i=(e,t,n)=>"hsv"===t.interpolation.toLowerCase()?e.hsv(n,t.hsvSpin.toLowerCase()):e.rgb(n);function o(e){const t={interpolation:"rgb",hsvSpin:"short",...e};if(void 0!==e&&"object"!=typeof e)throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof e}\``);if("string"!=typeof t.interpolation)throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof t.interpolation}\``);if("hsv"===t.interpolation.toLowerCase()&&"string"!=typeof t.hsvSpin)throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof t.hsvSpin}\``);return t}const s={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};e.exports=a;for(const t in s)e.exports[t]=e=>new a(s[t].colors)(e,s[t].options),e.exports[t].multiline=e=>new a(s[t].colors).multiline(e,s[t].options)}(dF);var EF={};!function(e){function t(e){return`${(e/1024/1024).toFixed(2)} MB`}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"formatBytes",{enumerable:!0,get:()=>t})}(EF),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LogReporter",{enumerable:!0,get:()=>y});const t=iF,n=sF,r=GL,a=c(pF),i=c(jo),o=c(dF.exports),s=c(q.default),u=EF,l=uF;function c(e){return e&&e.__esModule?e:{default:e}}const p={[r.LogLevel.info]:i.default.white,[r.LogLevel.verbose]:i.default.gray,[r.LogLevel.warn]:i.default.white,[r.LogLevel.error]:i.default.hex("#FF1010"),[r.LogLevel.silly]:i.default.green,task:i.default.hex("#00DDDD"),pkg:i.default.hex("#FFD66B"),ok:i.default.green,error:i.default.red,warn:i.default.yellow},d=[i.default.hex("#e5b567"),i.default.hex("#b4d273"),i.default.hex("#e87d3e"),i.default.hex("#9e86c8"),i.default.hex("#b05279"),i.default.hex("#6c99bb")];const f=new Map;function m(e){if(!f.has(e)){const t=function(e){const t=s.default.createHash("md5");t.update(e);const n=t.digest("hex").substring(0,6);return parseInt(n,16)}(e)%d.length;f.set(e,t)}return d[f.get(e)]}const h=(0,a.default)();function g(e,t){return`${m(e)(e)} ${p.task(t)}`}class y{log(e){if(!(e?.data?.target?.hidden||(e.data?.target?.id&&(this.logEntries.has(e.data.target.id)||this.logEntries.set(e.data.target.id,[]),this.logEntries.get(e.data.target.id).push(e)),this.options.logLevel<e.level)))return this.options.grouped&&e.data?.target?this.logTargetEntryByGroup(e):e.data&&e.data.target?this.logTargetEntry(e):e.msg?this.print(e.msg):void 0}printEntry(e,t){let n="",r=t;if(e?.data?.target){const{packageName:t,task:a}=e.data.target,i=function(e,t){if("string"==typeof t)return{prefix:e,message:t};return{prefix:"",message:e}}(g(t??"<root>",a),r);n=i.prefix,r=i.message}this.print(`${n?n+" ":""}${r}`)}print(e){this.logStream.write(e+"\n")}logTargetEntry(e){const r=p[e.level],a=e.data;if(!(0,n.isTargetStatusLogEntry)(a))return this.printEntry(e,r(": "+e.msg.replace(h,"")));{const{hash:n,duration:i}=a;switch(a.status){case"running":return this.printEntry(e,r(`${p.ok("➔")} start`));case"success":return this.printEntry(e,r(`${p.ok("✓")} done - ${(0,t.formatDuration)((0,t.hrToSeconds)(i))}`));case"failed":return this.printEntry(e,r(`${p.error("✖")} fail`));case"skipped":return this.printEntry(e,r(`${p.ok("»")} skip - ${n}`));case"aborted":return this.printEntry(e,r(`${p.warn("-")} aborted`));case"queued":return this.printEntry(e,r(`${p.warn("…")} queued`))}}}logTargetEntryByGroup(e){const t=e.data,r=t.target,{id:a}=r;if((0,n.isTargetStatusLogEntry)(t)&&("success"===t.status||"failed"===t.status||"skipped"===t.status||"aborted"===t.status)){const e=this.logEntries.get(a);for(const t of e)this.logTargetEntry(t);e.length>2&&this.hr()}}hr(){this.print("┈".repeat(80))}summarize(e){const{targetRuns:n,targetRunByStatus:a,duration:s}=e,{failed:c,aborted:d,skipped:f,success:m,pending:h}=a,y={success:i.default.greenBright,failed:i.default.redBright,skipped:i.default.gray,running:i.default.yellow,pending:i.default.gray,aborted:i.default.red,queued:i.default.magenta};if(n.size>0){this.print(i.default.cyanBright("\nSummary")),this.hr();const r=(0,l.slowestTargetRuns)([...n.values()]);for(const e of r){if(e.target.hidden)continue;const n=y[e.status]??i.default.white,r=e.target,a=!!e.duration&&!!e.queueTime,o=a?(0,t.hrtimeDiff)(e.queueTime,e.startTime):[0,0];this.print(`${g(r.packageName||"<root>",r.task)} ${n(`${"running"===e.status?"running - incomplete":e.status}${a?`, took ${(0,t.formatDuration)((0,t.hrToSeconds)(e.duration))}, queued for ${(0,t.formatDuration)((0,t.hrToSeconds)(o))}`:""}`)}`)}this.print(`success: ${m.length}, skipped: ${f.length}, pending: ${h.length}, aborted: ${d.length}, failed: ${c.length}`),this.print(`worker restarts: ${e.workerRestarts}, max worker memory usage: ${(0,u.formatBytes)(e.maxWorkerMemoryUsage)}`)}else this.print("Nothing has been run.");if(this.hr(),c&&c.length>0)for(const e of c){const t=n.get(e)?.target;if(t){const{packageName:n,task:a}=t,i=this.logEntries.get(e);if(this.print(`[${p.pkg(n??"<root>")} ${p.task(a)}] ${p[r.LogLevel.error]("ERROR DETECTED")}`),i)for(const e of i)this.print(e.msg);this.hr()}}const v=[...n.values()].filter((e=>!e.target.hidden)).length===f.length,b=v?(0,o.default)({r:237,g:178,b:77},"cyan")("All targets skipped!"):"";this.print(`Took a total of ${(0,t.formatDuration)((0,t.hrToSeconds)(s))} to complete. ${b}`)}resetLogEntries(){this.logEntries.clear()}constructor(e){this.options=e,this.logStream=process.stdout,this.logEntries=new Map,this.groupedEntries=new Map,e.logLevel=e.logLevel||r.LogLevel.info}}}(cF);var CF={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ChromeTraceEventsReporter",{enumerable:!0,get:()=>o});const t=a(jo),n=a(R.default),r=a(A.default);function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return 1e6*e[0]+.001*e[1]}class o{log(){}summarize(e){const{targetRuns:n,startTime:r}=e,{categorize:a}=this.options;for(const e of n.values()){if(e.target.hidden||"skipped"===e.status)continue;const t={name:e.target.id,cat:`${e.status}#${e.target.task}`,ph:"X",ts:i(e.startTime)-i(r),dur:i(e.duration??[0,1e3]),pid:1,tid:e.threadId};a&&(t.cat+=`,${a(e)}`),this.events.traceEvents.push(t)}this.logStream.write(JSON.stringify(this.events,null,2)),this.consoleLogStream.write(t.default.blueBright(`\nProfiler output written to ${t.default.underline(this.outputFile)}, open it with chrome://tracing or edge://tracing\n`))}constructor(e){var t;this.options=e,this.consoleLogStream=process.stdout,this.events={traceEvents:[],displayTimeUnit:"ms"},this.outputFile=e.outputFile??`${(t="profile")?t+"-":""}${(new Date).toISOString().split(".")[0].replace(/-|:/g,"")}.json`,n.default.existsSync(r.default.dirname(this.outputFile))||n.default.mkdirSync(r.default.dirname(this.outputFile),{recursive:!0}),this.logStream=n.default.createWriteStream(this.outputFile,{flags:"w"})}}}(CF);var DF,OF={},NF={},jF={},PF={},TF={},AF={exports:{}},RF={};function IF(){if(DF)return RF;DF=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),p=Symbol.iterator;var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,m={};function h(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||d}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||d}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=h.prototype;var v=y.prototype=new g;v.constructor=y,f(v,h.prototype),v.isPureReactComponent=!0;var b=Array.isArray,w=Object.prototype.hasOwnProperty,_={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function k(t,n,r){var a,i={},o=null,s=null;if(null!=n)for(a in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(o=""+n.key),n)w.call(n,a)&&!x.hasOwnProperty(a)&&(i[a]=n[a]);var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(a in u=t.defaultProps)void 0===i[a]&&(i[a]=u[a]);return{$$typeof:e,type:t,key:o,ref:s,props:i,_owner:_.current}}function S(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var E=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function D(n,r,a,i,o){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var u=!1;if(null===n)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(n.$$typeof){case e:case t:u=!0}}if(u)return o=o(u=n),n=""===i?"."+C(u,0):i,b(o)?(a="",null!=n&&(a=n.replace(E,"$&/")+"/"),D(o,r,a,"",(function(e){return e}))):null!=o&&(S(o)&&(o=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(o,a+(!o.key||u&&u.key===o.key?"":(""+o.key).replace(E,"$&/")+"/")+n)),r.push(o)),1;if(u=0,i=""===i?".":i+":",b(n))for(var l=0;l<n.length;l++){var c=i+C(s=n[l],l);u+=D(s,r,a,c,o)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),l=0;!(s=n.next()).done;)u+=D(s=s.value,r,a,c=i+C(s,l++),o);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return u}function O(e,t,n){if(null==e)return e;var r=[],a=0;return D(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var j={current:null},P={transition:null},T={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:P,ReactCurrentOwner:_};return RF.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},RF.Component=h,RF.Fragment=n,RF.Profiler=a,RF.PureComponent=y,RF.StrictMode=r,RF.Suspense=u,RF.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,RF.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var a=f({},t.props),i=t.key,o=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(o=n.ref,s=_.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var u=t.type.defaultProps;for(l in n)w.call(n,l)&&!x.hasOwnProperty(l)&&(a[l]=void 0===n[l]&&void 0!==u?u[l]:n[l])}var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){u=Array(l);for(var c=0;c<l;c++)u[c]=arguments[c+2];a.children=u}return{$$typeof:e,type:t.type,key:i,ref:o,props:a,_owner:s}},RF.createContext=function(e){return(e={$$typeof:o,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},RF.createElement=k,RF.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},RF.createRef=function(){return{current:null}},RF.forwardRef=function(e){return{$$typeof:s,render:e}},RF.isValidElement=S,RF.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:N}},RF.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},RF.startTransition=function(e){var t=P.transition;P.transition={};try{e()}finally{P.transition=t}},RF.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},RF.useCallback=function(e,t){return j.current.useCallback(e,t)},RF.useContext=function(e){return j.current.useContext(e)},RF.useDebugValue=function(){},RF.useDeferredValue=function(e){return j.current.useDeferredValue(e)},RF.useEffect=function(e,t){return j.current.useEffect(e,t)},RF.useId=function(){return j.current.useId()},RF.useImperativeHandle=function(e,t,n){return j.current.useImperativeHandle(e,t,n)},RF.useInsertionEffect=function(e,t){return j.current.useInsertionEffect(e,t)},RF.useLayoutEffect=function(e,t){return j.current.useLayoutEffect(e,t)},RF.useMemo=function(e,t){return j.current.useMemo(e,t)},RF.useReducer=function(e,t,n){return j.current.useReducer(e,t,n)},RF.useRef=function(e){return j.current.useRef(e)},RF.useState=function(e){return j.current.useState(e)},RF.useSyncExternalStore=function(e,t,n){return j.current.useSyncExternalStore(e,t,n)},RF.useTransition=function(){return j.current.useTransition()},RF.version="18.2.0",RF}var MF,LF={exports:{}};
|
|
551
|
+
function(e){if("bitbucket.org"===e.source)return"x-token-auth:"+e.token+"@";return e.token+"@"}(e):e.user&&(e.protocols.includes("http")||e.protocols.includes("https"))?e.user+"@":"")+e.resource+n+"/"+function(e){if("bitbucket-server"===e.source)return"scm/"+e.full_name;return""+e.full_name}(e)+a;default:return e.href}};var VA=$A,HA=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(OA,"__esModule",{value:!0}),OA.getRepositoryName=void 0;const WA=HA(VA);var GA;function KA(){if(GA)return DA;GA=1;var e=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(DA,"__esModule",{value:!0}),DA.getDefaultRemote=void 0;const t=e(R.default),n=e(A.default),r=uR(),a=OA,i=bA;return DA.getDefaultRemote=function(e){const o="string"==typeof e?{cwd:e}:e,{cwd:s,strict:u,verbose:l}=o,c=e=>l&&console.log(e),p=e=>{if(u)throw new Error(e);c(e)},d=(0,r.findGitRoot)(s);let f={};const m=n.default.join(d,"package.json");try{f=JSON.parse(t.default.readFileSync(m,"utf8").trim())}catch(e){p(`Could not read "${m}"`)}const{repository:h}=f,g="string"==typeof h?h:h&&h.url||"";g||console.log(`Valid "repository" key not found in "${m}". Consider adding this info for more accurate git remote detection.`);const y=(0,a.getRepositoryName)(g),v=(0,i.git)(["remote","-v"],{cwd:s});v.success||p(`Could not determine available git remotes under "${s}"`);const b={};if(v.stdout.split("\n").forEach((e=>{const[t,n]=e.split(/\s+/),r=(0,a.getRepositoryName)(n);r&&(b[r]=t)})),y){if(b[y])return b[y];p(`Could not find remote pointing to repository "${y}".`)}const w=Object.values(b),_=["upstream","origin",...w];for(const e of _)if(w.includes(e))return c(`Default to remote "${e}"`),e;return p(`Could not find any remotes in git repo at "${d}".`),c('Assuming default remote "origin".'),"origin"},DA}OA.getRepositoryName=function(e){var t;try{let n=e.replace("/_optimized/","/").replace("/DefaultCollection/","/");const r=(0,WA.default)(n),a=n.includes(".visualstudio.com"),i=n.includes("dev.azure.com");if(!a&&!i)return r.full_name;const o=r.full_name.match(/(vs-ssh\.visualstudio\.com|ssh\.dev\.azure\.com):v\d+\/([^/]+)\/([^/]+)/);if(o)return`${o[2]}/${o[3]}/${r.name}`;let s=r.organization;return!s&&a&&(s=null===(t=r.resource.match(/([^.@]+)\.visualstudio\.com/))||void 0===t?void 0:t[1]),`${s}/${r.owner}/${r.name}`}catch(e){return""}};var YA={},QA={};Object.defineProperty(QA,"__esModule",{value:!0}),QA.listAllTrackedFiles=QA.getDefaultBranch=QA.parseRemoteBranch=QA.getRemoteBranch=QA.getParentBranch=QA.revertLocalChanges=QA.stageAndCommit=QA.commit=QA.stage=QA.init=QA.getFileAddedHash=QA.getCurrentHash=QA.getShortBranchName=QA.getFullBranchRef=QA.getBranchName=QA.getUserEmail=QA.getRecentCommitMessages=QA.getStagedChanges=QA.getChangesBetweenRefs=QA.getBranchChanges=QA.getChanges=QA.getUnstagedChanges=QA.fetchRemoteBranch=QA.fetchRemote=QA.getUntrackedChanges=void 0;const XA=bA;function JA(e,t,n,r,a){try{return nR((0,XA.git)(["--no-pager","diff","--name-only","--relative",...n,`${e}...${t}`,...r?["--",r]:[]],{cwd:a}))}catch(n){throw new XA.GitError(`Cannot gather information about change between refs changes (${e} to ${t})`,n)}}function ZA(e){try{const t=(0,XA.git)(["rev-parse","--abbrev-ref","HEAD"],{cwd:e});return t.success?t.stdout:null}catch(e){throw new XA.GitError("Cannot get branch name",e)}}function eR(e,t){try{e.forEach((e=>{(0,XA.git)(["add",e],{cwd:t})}))}catch(e){throw new XA.GitError("Cannot stage changes",e)}}function tR(e,t,n=[]){try{const r=(0,XA.git)(["commit","-m",e,...n],{cwd:t});if(!r.success)throw new Error(`Cannot commit changes: ${r.stdout} ${r.stderr}`)}catch(e){throw new XA.GitError("Cannot commit changes",e)}}function nR(e){return e.success?e.stdout.split(/\n/).map((e=>e.trim())).filter((e=>!!e&&!e.includes("node_modules"))):[]}var rR,aR,iR,oR;function sR(){return aR||(aR=1,function(e){var t=oe&&oe.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=oe&&oe.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(bA,e),n(KA(),e),n(function(){if(rR)return YA;rR=1,Object.defineProperty(YA,"__esModule",{value:!0}),YA.getDefaultRemoteBranch=void 0;const e=KA(),t=bA,n=QA;return YA.getDefaultRemoteBranch=function(...r){var a;const[i,o]=r,s="string"==typeof i?{branch:i,cwd:o}:i,{cwd:u,branch:l}=s,c=(0,e.getDefaultRemote)(s);if(l)return`${c}/${l}`;const p=(0,t.git)(["remote","show",c],{cwd:u});let d;return p.success&&(d=null===(a=p.stdout.split(/\n/).find((e=>e.includes("HEAD branch"))))||void 0===a?void 0:a.replace(/^\s*HEAD branch:\s+/,"")),`${c}/${d||(0,n.getDefaultBranch)(u)}`},YA}(),e),n(QA,e)}(vA)),vA}function uR(){if(iR)return Zj;iR=1;var e=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zj,"__esModule",{value:!0}),Zj.isChildOf=Zj.findProjectRoot=Zj.findPackageRoot=Zj.findGitRoot=Zj.searchUp=void 0;const t=e(A.default),n=e(R.default),r=yA(),a=sR();function i(e,r){const a="string"==typeof e?[e]:e,i=t.default.parse(r).root;let o;for(;!o&&r!==i&&(o=a.find((e=>n.default.existsSync(t.default.join(r,e)))),!o);)r=t.default.dirname(r);return o?t.default.join(r,o):void 0}function o(e){const n=(0,a.git)(["rev-parse","--show-toplevel"],{cwd:e});if(!n.success)throw new Error(`Directory "${e}" is not in a git repository`);return t.default.normalize(n.stdout)}return Zj.searchUp=i,Zj.findGitRoot=o,Zj.findPackageRoot=function(e){const n=i("package.json",e);return n&&t.default.dirname(n)},Zj.findProjectRoot=function(e){let t;try{t=(0,r.getWorkspaceRoot)(e)}catch{}return t||o(e)},Zj.isChildOf=function(e,n){const r=t.default.relative(e,n);return/^[.\/\\]+$/.test(r)},Zj}function lR(){if(oR)return Jj;oR=1;var e=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Jj,"__esModule",{value:!0}),Jj.getWorkspaceImplementation=Jj.getWorkspaceImplementationAndLockFile=void 0;const t=e(A.default),n=uR(),r={};function a(e,a=r){if(a[e])return a[e];const i=(0,n.searchUp)(["lerna.json","rush.json","yarn.lock","pnpm-workspace.yaml","package-lock.json"],e);if(i){switch(t.default.basename(i)){case"lerna.json":a[e]={implementation:"lerna",lockFile:i};break;case"yarn.lock":a[e]={implementation:"yarn",lockFile:i};break;case"pnpm-workspace.yaml":a[e]={implementation:"pnpm",lockFile:i};break;case"rush.json":a[e]={implementation:"rush",lockFile:i};break;case"package-lock.json":a[e]={implementation:"npm",lockFile:i}}return a[e]}}return Jj.getWorkspaceImplementationAndLockFile=a,Jj.getWorkspaceImplementation=function(e,t=r){var n;return null===(n=a(e,t))||void 0===n?void 0:n.implementation},Jj}QA.getUntrackedChanges=function(e){try{return nR((0,XA.git)(["ls-files","--others","--exclude-standard"],{cwd:e}))}catch(e){throw new XA.GitError("Cannot gather information about untracked changes",e)}},QA.fetchRemote=function(e,t){if(!(0,XA.git)(["fetch","--",e],{cwd:t}).success)throw new XA.GitError(`Cannot fetch remote "${e}"`)},QA.fetchRemoteBranch=function(e,t,n){if(!(0,XA.git)(["fetch","--",e,t],{cwd:n}).success)throw new XA.GitError(`Cannot fetch branch "${t}" from remote "${e}"`)},QA.getUnstagedChanges=function(e){try{return nR((0,XA.git)(["--no-pager","diff","--name-only","--relative"],{cwd:e}))}catch(e){throw new XA.GitError("Cannot gather information about unstaged changes",e)}},QA.getChanges=function(e,t){try{return nR((0,XA.git)(["--no-pager","diff","--relative","--name-only",e+"..."],{cwd:t}))}catch(e){throw new XA.GitError("Cannot gather information about changes",e)}},QA.getBranchChanges=function(e,t){return JA(e,"",[],"",t)},QA.getChangesBetweenRefs=JA,QA.getStagedChanges=function(e){try{return nR((0,XA.git)(["--no-pager","diff","--relative","--staged","--name-only"],{cwd:e}))}catch(e){throw new XA.GitError("Cannot gather information about staged changes",e)}},QA.getRecentCommitMessages=function(e,t){try{const n=(0,XA.git)(["log","--decorate","--pretty=format:%s",`${e}..HEAD`],{cwd:t});return n.success?n.stdout.trim().split(/\n/).map((e=>e.trim())):[]}catch(e){throw new XA.GitError("Cannot gather information about recent commits",e)}},QA.getUserEmail=function(e){try{const t=(0,XA.git)(["config","user.email"],{cwd:e});return t.success?t.stdout:null}catch(e){throw new XA.GitError("Cannot gather information about user.email",e)}},QA.getBranchName=ZA,QA.getFullBranchRef=function(e,t){const n=(0,XA.git)(["show-ref","--heads",e],{cwd:t});return n.success?n.stdout.split(" ")[1]:null},QA.getShortBranchName=function(e,t){const n=(0,XA.git)(["name-rev","--name-only",e],{cwd:t});return n.success?n.stdout:null},QA.getCurrentHash=function(e){try{const t=(0,XA.git)(["rev-parse","HEAD"],{cwd:e});return t.success?t.stdout:null}catch(e){throw new XA.GitError("Cannot get current git hash",e)}},QA.getFileAddedHash=function(e,t){const n=(0,XA.git)(["rev-list","HEAD",e],{cwd:t});if(n.success)return n.stdout.trim().split("\n").slice(-1)[0]},QA.init=function(e,t,n){(0,XA.git)(["init"],{cwd:e});const r=(0,XA.git)(["config","--list"],{cwd:e}).stdout.split("\n");if(!r.find((e=>e.includes("user.name")))){if(!n)throw new XA.GitError("must include a username when initializing git repo");(0,XA.git)(["config","user.name",n],{cwd:e})}if(!r.find((e=>e.includes("user.email")))){if(!t)throw new Error("must include a email when initializing git repo");(0,XA.git)(["config","user.email",t],{cwd:e})}},QA.stage=eR,QA.commit=tR,QA.stageAndCommit=function(e,t,n,r=[]){eR(e,n),tR(t,n,r)},QA.revertLocalChanges=function(e){const t=`workspace-tools_${(new Date).getTime()}`;(0,XA.git)(["stash","push","-u","-m",t],{cwd:e});const n=(0,XA.git)(["stash","list"]);if(n.success){const e=n.stdout.split(/\n/).find((e=>e.includes(t)));if(e){const t=e.match(/^[^:]+/);if(t)return(0,XA.git)(["stash","drop",t[0]]),!0}}return!1},QA.getParentBranch=function(e){const t=ZA(e);if(!t||"HEAD"===t)return null;const n=(0,XA.git)(["show-branch","-a"],{cwd:e});if(n.success){const e=n.stdout.split(/\n/).find((e=>e.includes("*")&&!e.includes(t)&&!e.includes("publish_"))),r=null==e?void 0:e.match(/\[(.*)\]/);return r?r[1]:null}return null},QA.getRemoteBranch=function(e,t){const n=(0,XA.git)(["rev-parse","--abbrev-ref","--symbolic-full-name",`${e}@{u}`],{cwd:t});return n.success?n.stdout.trim():null},QA.parseRemoteBranch=function(e){const t=e.indexOf("/",0);return{remote:e.substring(0,t),remoteBranch:e.substring(t+1)}},QA.getDefaultBranch=function(e){const t=(0,XA.git)(["config","init.defaultBranch"],{cwd:e});return t.success?t.stdout.trim():"master"},QA.listAllTrackedFiles=function(e,t){const n=(0,XA.git)(["ls-files",...e],{cwd:t});return n.success&&n.stdout.trim()?n.stdout.trim().split(/\n/):[]},Object.defineProperty(Xj,"__esModule",{value:!0}),Xj.getWorkspaces=void 0;const cR=lR(),pR=process.env.PREFERRED_WORKSPACE_MANAGER;Xj.getWorkspaces=function(e){const t=pR||(0,cR.getWorkspaceImplementation)(e);if(!t)return[];switch(t){case"yarn":return hP().getYarnWorkspaces(e);case"pnpm":return UT().getPnpmWorkspaces(e);case"rush":return lA().getRushWorkspaces(e);case"npm":return dA().getNpmWorkspaces(e);case"lerna":return gA().getLernaWorkspaces(e)}},Object.defineProperty(Qj,"__esModule",{value:!0}),Qj._resetCache=Qj.getAllPackageJsonFiles=void 0;const dR=Xj,fR=new Map;Qj.getAllPackageJsonFiles=function(e){if(fR.has(e))return fR.get(e);const t=(0,dR.getWorkspaces)(e).map((e=>e.packageJson.packageJsonPath));return fR.set(e,t),t},Qj._resetCache=function(){fR.clear()};var mR=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kj,"__esModule",{value:!0}),Kj.getPackageInfos=void 0;const hR=mR(R.default),gR=mR(A.default),yR=Yj,vR=Qj;Kj.getPackageInfos=function(e){let t=(0,vR.getAllPackageJsonFiles)(e);0===t.length&&hR.default.existsSync(gR.default.join(e,"package.json"))&&(t=[gR.default.join(e,"package.json")]);const n={};return t&&t.length>0?(t.forEach((e=>{try{const t=JSON.parse(hR.default.readFileSync(e,"utf-8"));n[t.name]=(0,yR.infoFromPackageJson)(t,e)}catch(t){throw t instanceof Error?new Error(`Invalid package.json file detected ${e}: ${t.message}`):t}})),n):{}};var bR={},wR={},_R={};Object.defineProperty(_R,"__esModule",{value:!0}),_R.createDependencyMap=void 0;const xR=Vj;_R.createDependencyMap=function(e,t={withDevDependencies:!0,withPeerDependencies:!1}){const n={dependencies:new Map,dependents:new Map};for(const[r,a]of Object.entries(e)){const i=(0,xR.getPackageDependencies)(a,e,t);for(const e of i)n.dependencies.has(r)||n.dependencies.set(r,new Set),n.dependencies.get(r).add(e),n.dependents.has(e)||n.dependents.set(e,new Set),n.dependents.get(e).add(r)}return n};var kR=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wR,"__esModule",{value:!0}),wR.createPackageGraph=void 0;const SR=_R,ER=kR(nx);function CR(e,t,n,r){var a,i;const o=new Set,s=Object.keys(e),u=r?(0,ER.default)(s,r.namePatterns):s;for(;u.length>0;){const e=u.pop();if(o.has(e))continue;const s=new Set;let l=[],c=[];if(!r||r.includeDependencies){l=[...null!==(a=t.dependencies.get(e))&&void 0!==a?a:[]];for(const e of l)s.add(e)}if(!r||r.includeDependents){c=[...null!==(i=t.dependents.get(e))&&void 0!==i?i:[]];for(const e of c)s.add(e)}if(n(e,l,c),o.add(e),s.size>0)for(const e of s)u.push(e)}}wR.createPackageGraph=function(e,t){const n=new Set,r=[],a=new Set;let i,o,s,u;function l(e,t,i,o){if(n.add(t),!e||e.includeDependencies&&i)for(const e of i){const i=c(t,e);a.has(i)||(a.add(i),r.push({name:t,dependency:e})),n.add(e)}if(!e||e.includeDependents&&o)for(const e of o){const i=c(e,t);a.has(i)||(a.add(i),r.push({name:e,dependency:t})),n.add(e)}}if(t){t=Array.isArray(t)?t:[t];for(const n of t){const t=l.bind(void 0,n);CR(e,p(e,n),t,n)}}else{const t=l.bind(void 0,void 0);CR(e,p(e),t)}return{packages:[...n],dependencies:r};function c(e,t){return`${e}->${t}`}function p(e,t){return t?t.withDevDependencies&&t.withPeerDependencies?(null!=i||(i=(0,SR.createDependencyMap)(e,t)),i):t.withDevDependencies&&!t.withPeerDependencies?(null!=s||(s=(0,SR.createDependencyMap)(e,t)),s):!t.withDevDependencies&&t.withPeerDependencies?(null!=o||(o=(0,SR.createDependencyMap)(e,t)),o):(null!=u||(u=(0,SR.createDependencyMap)(e,t)),u):(0,SR.createDependencyMap)(e)}},function(e){var t=oe&&oe.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=oe&&oe.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.getDependentMap=void 0,n(wR,e),n(_R,e);const r=_R;e.getDependentMap=function(e){return(0,r.createDependencyMap)(e).dependencies}}(bR);var DR={},OR={};Object.defineProperty(OR,"__esModule",{value:!0}),OR.nameAtVersion=void 0,OR.nameAtVersion=function(e,t){return`${e}@${t}`};var NR={};Object.defineProperty(NR,"__esModule",{value:!0}),NR.parsePnpmLock=void 0;const jR=OR;NR.parsePnpmLock=function(e){const t={};if(e&&e.packages)for(const[n,r]of Object.entries(e.packages)){const e=n.split(/\//),a=e.length>3?`${e[1]}/${e[2]}`:e[1],i=e.length>3?e[3]:e[2];t[(0,jR.nameAtVersion)(a,i)]={version:i,dependencies:r.dependencies}}return{object:t,type:"success"}};var PR={};Object.defineProperty(PR,"__esModule",{value:!0}),PR.parseNpmLock=void 0;const TR=OR;PR.parseNpmLock=function(e){var t;return{object:Object.fromEntries(Object.entries(null!==(t=e.dependencies)&&void 0!==t?t:{}).map((([e,t])=>[(0,TR.nameAtVersion)(e,t.version),t]))),type:"success"}};var AR={};function RR(e){return e.includes("npm:")?e.replace(/npm:/,""):e}Object.defineProperty(AR,"__esModule",{value:!0}),AR.parseBerryLock=void 0,AR.parseBerryLock=function(e){var t;const n={};if(e)for(const[r,a]of Object.entries(e)){if("__metadata"===r)continue;const e=r.split(", ");for(const r of e){n[RR(r)]={version:a.version,dependencies:null!==(t=a.dependencies)&&void 0!==t?t:{}}}}return{object:n,type:"success"}};var IR,MR={exports:{}};function LR(){return IR||(IR=1,MR.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=14)}([function(e,t){e.exports=A.default},function(e,t,n){t.__esModule=!0;var r,a=n(173),i=(r=a)&&r.__esModule?r:{default:r};t.default=function(e){return function(){var t=e.apply(this,arguments);return new i.default((function(e,n){return function r(a,o){try{var s=t[a](o),u=s.value}catch(e){return void n(e)}if(!s.done)return i.default.resolve(u).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(u)}("next")}))}}},function(e,t){e.exports=L.default},function(e,t){e.exports=R.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e,t){super(e),this.code=t}}t.MessageError=r,t.ProcessSpawnError=class extends r{constructor(e,t,n){super(e,t),this.process=n}},t.SecurityError=class extends r{},t.ProcessTermError=class extends r{};class a extends Error{constructor(e,t){super(e),this.responseCode=t}}t.ResponseError=a},function(e,t,n){var r;function a(){return r=V(n(1))}Object.defineProperty(t,"__esModule",{value:!0}),t.getFirstSuitableFolder=t.readFirstAvailableStream=t.makeTempDir=t.hardlinksWork=t.writeFilePreservingEol=t.getFileSizeOnDisk=t.walk=t.symlink=t.find=t.readJsonAndFile=t.readJson=t.readFileAny=t.hardlinkBulk=t.copyBulk=t.unlink=t.glob=t.link=t.chmod=t.lstat=t.exists=t.mkdirp=t.stat=t.access=t.rename=t.readdir=t.realpath=t.readlink=t.writeFile=t.open=t.readFileBuffer=t.lockQueue=t.constants=void 0;let i=(o=(0,(r||a()).default)((function*(e,t,n,i){let o=(s=(0,(r||a()).default)((function*(r){const a=r.src,o=r.dest,s=r.type,c=r.onFresh||se,p=r.onDone||se;if(l.has(o.toLowerCase())?i.verbose(`The case-insensitive file ${o} shouldn't be copied twice in one bulk copy`):l.add(o.toLowerCase()),"symlink"===s)return yield Z((T||B()).default.dirname(o)),c(),m.symlink.push({dest:o,linkname:a}),void p();if(t.ignoreBasenames.indexOf((T||B()).default.basename(a))>=0)return;const d=yield te(a);let f,h;d.isDirectory()&&(f=yield X(a));try{h=yield te(o)}catch(e){if("ENOENT"!==e.code)throw e}if(h){const e=d.isSymbolicLink()&&h.isSymbolicLink(),t=d.isDirectory()&&h.isDirectory(),r=d.isFile()&&h.isFile();if(r&&u.has(o))return p(),void i.verbose(i.lang("verboseFileSkipArtifact",a));if(r&&d.size===h.size&&(0,(L||$()).fileDatesEqual)(d.mtime,h.mtime))return p(),void i.verbose(i.lang("verboseFileSkip",a,o,d.size,+d.mtime));if(e){const e=yield Y(a);if(e===(yield Y(o)))return p(),void i.verbose(i.lang("verboseFileSkipSymlink",a,o,e))}if(t){const e=yield X(o);ie(f,"src files not initialised");var g=e,y=Array.isArray(g),v=0;for(g=y?g:g[Symbol.iterator]();;){var b;if(y){if(v>=g.length)break;b=g[v++]}else{if((v=g.next()).done)break;b=v.value}const e=b;if(f.indexOf(e)<0){const t=(T||B()).default.join(o,e);if(n.add(t),(yield te(t)).isDirectory()){var w=yield X(t),_=Array.isArray(w),x=0;for(w=_?w:w[Symbol.iterator]();;){var k;if(_){if(x>=w.length)break;k=w[x++]}else{if((x=w.next()).done)break;k=x.value}const e=k;n.add((T||B()).default.join(t,e))}}}}}}if(h&&h.isSymbolicLink()&&(yield(0,(L||$()).unlink)(o),h=null),d.isSymbolicLink()){c();const e=yield Y(a);m.symlink.push({dest:o,linkname:e}),p()}else if(d.isDirectory()){h||(i.verbose(i.lang("verboseFileFolder",o)),yield Z(o));const t=o.split((T||B()).default.sep);for(;t.length;)l.add(t.join((T||B()).default.sep).toLowerCase()),t.pop();ie(f,"src files not initialised");let n=f.length;n||p();var S=f,E=Array.isArray(S),C=0;for(S=E?S:S[Symbol.iterator]();;){var D;if(E){if(C>=S.length)break;D=S[C++]}else{if((C=S.next()).done)break;D=C.value}const t=D;e.push({dest:(T||B()).default.join(o,t),onFresh:c,onDone:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){0==--n&&p()})),src:(T||B()).default.join(a,t)})}}else{if(!d.isFile())throw new Error(`unsure how to copy this: ${a}`);c(),m.file.push({src:a,dest:o,atime:d.atime,mtime:d.mtime,mode:d.mode}),p()}})),function(e){return s.apply(this,arguments)});var s;const u=new Set(t.artifactFiles||[]),l=new Set;var c=e,p=Array.isArray(c),d=0;for(c=p?c:c[Symbol.iterator]();;){var f;if(p){if(d>=c.length)break;f=c[d++]}else{if((d=c.next()).done)break;f=d.value}const e=f,n=e.onDone;e.onDone=function(){t.onProgress(e.dest),n&&n()}}t.onStart(e.length);const m={file:[],symlink:[],link:[]};for(;e.length;){const t=e.splice(0,re);yield Promise.all(t.map(o))}var h=u,g=Array.isArray(h),y=0;for(h=g?h:h[Symbol.iterator]();;){var v;if(g){if(y>=h.length)break;v=h[y++]}else{if((y=h.next()).done)break;v=y.value}const e=v;n.has(e)&&(i.verbose(i.lang("verboseFilePhantomExtraneous",e)),n.delete(e))}var b=n,w=Array.isArray(b),_=0;for(b=w?b:b[Symbol.iterator]();;){var x;if(w){if(_>=b.length)break;x=b[_++]}else{if((_=b.next()).done)break;x=_.value}const e=x;l.has(e.toLowerCase())&&n.delete(e)}return m})),function(e,t,n,r){return o.apply(this,arguments)});var o;let s=(u=(0,(r||a()).default)((function*(e,t,n,i){let o=(s=(0,(r||a()).default)((function*(r){const a=r.src,o=r.dest,s=r.onFresh||se,c=r.onDone||se;if(l.has(o.toLowerCase()))return void c();if(l.add(o.toLowerCase()),t.ignoreBasenames.indexOf((T||B()).default.basename(a))>=0)return;const p=yield te(a);let d;p.isDirectory()&&(d=yield X(a));const f=yield ee(o);if(f){const e=yield te(o),t=p.isSymbolicLink()&&e.isSymbolicLink(),r=p.isDirectory()&&e.isDirectory(),s=p.isFile()&&e.isFile();if(p.mode!==e.mode)try{yield J(o,p.mode)}catch(e){i.verbose(e)}if(s&&u.has(o))return c(),void i.verbose(i.lang("verboseFileSkipArtifact",a));if(s&&null!==p.ino&&p.ino===e.ino)return c(),void i.verbose(i.lang("verboseFileSkip",a,o,p.ino));if(t){const e=yield Y(a);if(e===(yield Y(o)))return c(),void i.verbose(i.lang("verboseFileSkipSymlink",a,o,e))}if(r){const e=yield X(o);ie(d,"src files not initialised");var h=e,g=Array.isArray(h),y=0;for(h=g?h:h[Symbol.iterator]();;){var v;if(g){if(y>=h.length)break;v=h[y++]}else{if((y=h.next()).done)break;v=y.value}const e=v;if(d.indexOf(e)<0){const t=(T||B()).default.join(o,e);if(n.add(t),(yield te(t)).isDirectory()){var b=yield X(t),w=Array.isArray(b),_=0;for(b=w?b:b[Symbol.iterator]();;){var x;if(w){if(_>=b.length)break;x=b[_++]}else{if((_=b.next()).done)break;x=_.value}const e=x;n.add((T||B()).default.join(t,e))}}}}}}if(p.isSymbolicLink()){s();const e=yield Y(a);m.symlink.push({dest:o,linkname:e}),c()}else if(p.isDirectory()){i.verbose(i.lang("verboseFileFolder",o)),yield Z(o);const t=o.split((T||B()).default.sep);for(;t.length;)l.add(t.join((T||B()).default.sep).toLowerCase()),t.pop();ie(d,"src files not initialised");let n=d.length;n||c();var k=d,S=Array.isArray(k),E=0;for(k=S?k:k[Symbol.iterator]();;){var C;if(S){if(E>=k.length)break;C=k[E++]}else{if((E=k.next()).done)break;C=E.value}const t=C;e.push({onFresh:s,src:(T||B()).default.join(a,t),dest:(T||B()).default.join(o,t),onDone:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){0==--n&&c()}))})}}else{if(!p.isFile())throw new Error(`unsure how to copy this: ${a}`);s(),m.link.push({src:a,dest:o,removeDest:f}),c()}})),function(e){return s.apply(this,arguments)});var s;const u=new Set(t.artifactFiles||[]),l=new Set;var c=e,p=Array.isArray(c),d=0;for(c=p?c:c[Symbol.iterator]();;){var f;if(p){if(d>=c.length)break;f=c[d++]}else{if((d=c.next()).done)break;f=d.value}const e=f,n=e.onDone||se;e.onDone=function(){t.onProgress(e.dest),n()}}t.onStart(e.length);const m={file:[],symlink:[],link:[]};for(;e.length;){const t=e.splice(0,re);yield Promise.all(t.map(o))}var h=u,g=Array.isArray(h),y=0;for(h=g?h:h[Symbol.iterator]();;){var v;if(g){if(y>=h.length)break;v=h[y++]}else{if((y=h.next()).done)break;v=y.value}const e=v;n.has(e)&&(i.verbose(i.lang("verboseFilePhantomExtraneous",e)),n.delete(e))}var b=n,w=Array.isArray(b),_=0;for(b=w?b:b[Symbol.iterator]();;){var x;if(w){if(_>=b.length)break;x=b[_++]}else{if((_=b.next()).done)break;x=_.value}const e=x;l.has(e.toLowerCase())&&n.delete(e)}return m})),function(e,t,n,r){return u.apply(this,arguments)});var u;let l=t.copyBulk=(c=(0,(r||a()).default)((function*(e,t,n){const o={onStart:n&&n.onStart||se,onProgress:n&&n.onProgress||se,possibleExtraneous:n?n.possibleExtraneous:new Set,ignoreBasenames:n&&n.ignoreBasenames||[],artifactFiles:n&&n.artifactFiles||[]},s=yield i(e,o,o.possibleExtraneous,t);o.onStart(s.file.length+s.symlink.length+s.link.length);const u=s.file,l=new Map;var c;yield(R||U()).queue(u,(c=(0,(r||a()).default)((function*(e){let n;for(;n=l.get(e.dest);)yield n;t.verbose(t.lang("verboseFileCopy",e.src,e.dest));const r=(0,(L||$()).copyFile)(e,(function(){return l.delete(e.dest)}));return l.set(e.dest,r),o.onProgress(e.dest),r})),function(e){return c.apply(this,arguments)}),re);const p=s.symlink;yield(R||U()).queue(p,(function(e){const n=(T||B()).default.resolve((T||B()).default.dirname(e.dest),e.linkname);return t.verbose(t.lang("verboseFileSymlink",e.dest,n)),y(n,e.dest)}))})),function(e,t,n){return c.apply(this,arguments)});var c,p,d,f;t.hardlinkBulk=(p=(0,(r||a()).default)((function*(e,t,n){const i={onStart:n&&n.onStart||se,onProgress:n&&n.onProgress||se,possibleExtraneous:n?n.possibleExtraneous:new Set,artifactFiles:n&&n.artifactFiles||[],ignoreBasenames:[]},o=yield s(e,i,i.possibleExtraneous,t);i.onStart(o.file.length+o.symlink.length+o.link.length);const u=o.link;var l;yield(R||U()).queue(u,(l=(0,(r||a()).default)((function*(e){t.verbose(t.lang("verboseFileLink",e.src,e.dest)),e.removeDest&&(yield(0,(L||$()).unlink)(e.dest)),yield ne(e.src,e.dest)})),function(e){return l.apply(this,arguments)}),re);const c=o.symlink;yield(R||U()).queue(c,(function(e){const n=(T||B()).default.resolve((T||B()).default.dirname(e.dest),e.linkname);return t.verbose(t.lang("verboseFileSymlink",e.dest,n)),y(n,e.dest)}))})),function(e,t,n){return p.apply(this,arguments)}),t.readFileAny=(d=(0,(r||a()).default)((function*(e){var t=e,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var a;if(n){if(r>=t.length)break;a=t[r++]}else{if((r=t.next()).done)break;a=r.value}const e=a;if(yield ee(e))return le(e)}return null})),function(e){return d.apply(this,arguments)}),t.readJson=(f=(0,(r||a()).default)((function*(e){return(yield m(e)).object})),function(e){return f.apply(this,arguments)});let m=t.readJsonAndFile=(h=(0,(r||a()).default)((function*(e){const t=yield le(e);try{return{object:(0,(M||(M=V(n(20)))).default)(JSON.parse(oe(t))),content:t}}catch(t){throw t.message=`${e}: ${t.message}`,t}})),function(e){return h.apply(this,arguments)});var h,g;t.find=(g=(0,(r||a()).default)((function*(e,t){const n=t.split((T||B()).default.sep);for(;n.length;){const t=n.concat(e).join((T||B()).default.sep);if(yield ee(t))return t;n.pop()}return!1})),function(e,t){return g.apply(this,arguments)});let y=t.symlink=(v=(0,(r||a()).default)((function*(e,t){try{if((yield te(t)).isSymbolicLink()&&(yield Q(t))===e)return}catch(e){if("ENOENT"!==e.code)throw e}if(yield(0,(L||$()).unlink)(t),"win32"===process.platform)yield ae(e,t,"junction");else{let n;try{n=(T||B()).default.relative((N||F()).default.realpathSync((T||B()).default.dirname(t)),(N||F()).default.realpathSync(e))}catch(r){if("ENOENT"!==r.code)throw r;n=(T||B()).default.relative((T||B()).default.dirname(t),e)}yield ae(n||".",t)}})),function(e,t){return v.apply(this,arguments)});var v;let b=t.walk=(w=(0,(r||a()).default)((function*(e,t,n=new Set){let r=[],a=yield X(e);n.size&&(a=a.filter((function(e){return!n.has(e)})));var i=a,o=Array.isArray(i),s=0;for(i=o?i:i[Symbol.iterator]();;){var u;if(o){if(s>=i.length)break;u=i[s++]}else{if((s=i.next()).done)break;u=s.value}const a=u,l=t?(T||B()).default.join(t,a):a,c=(T||B()).default.join(e,a),p=yield te(c);r.push({relative:l,basename:a,absolute:c,mtime:+p.mtime}),p.isDirectory()&&(r=r.concat(yield b(c,l,n)))}return r})),function(e,t){return w.apply(this,arguments)});var w,_;t.getFileSizeOnDisk=(_=(0,(r||a()).default)((function*(e){const t=yield te(e),n=t.size,r=t.blksize;return Math.ceil(n/r)*r})),function(e){return _.apply(this,arguments)});let x=(k=(0,(r||a()).default)((function*(e){if(!(yield ee(e)))return;const t=yield W(e);for(let e=0;e<t.length;++e){if(t[e]===pe)return"\r\n";if(t[e]===de)return"\n"}})),function(e){return k.apply(this,arguments)});var k,S,E,C,D,O,N,j,P,T,A,R,I,M,L;function F(){return N=V(n(3))}function z(){return P=V(n(36))}function B(){return T=V(n(0))}function U(){return R=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(40))}function q(){return I=n(40)}function $(){return L=n(164)}function V(e){return e&&e.__esModule?e:{default:e}}t.writeFilePreservingEol=(S=(0,(r||a()).default)((function*(e,t){const n=(yield x(e))||(P||z()).default.EOL;"\n"!==n&&(t=t.replace(/\n/g,n)),yield K(e,t)})),function(e,t){return S.apply(this,arguments)}),t.hardlinksWork=(E=(0,(r||a()).default)((function*(e){const t="test-file"+Math.random(),n=(T||B()).default.join(e,t),r=(T||B()).default.join(e,t+"-link");try{yield K(n,"test"),yield ne(n,r)}catch(e){return!1}finally{yield(0,(L||$()).unlink)(n),yield(0,(L||$()).unlink)(r)}return!0})),function(e){return E.apply(this,arguments)}),t.makeTempDir=(C=(0,(r||a()).default)((function*(e){const t=(T||B()).default.join((P||z()).default.tmpdir(),`yarn-${e||""}-${Date.now()}-${Math.random()}`);return yield(0,(L||$()).unlink)(t),yield Z(t),t})),function(e){return C.apply(this,arguments)}),t.readFirstAvailableStream=(D=(0,(r||a()).default)((function*(e){var t=e,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var a;if(n){if(r>=t.length)break;a=t[r++]}else{if((r=t.next()).done)break;a=r.value}const e=a;try{const t=yield G(e,"r");return(N||F()).default.createReadStream(e,{fd:t})}catch(e){}}return null})),function(e){return D.apply(this,arguments)}),t.getFirstSuitableFolder=(O=(0,(r||a()).default)((function*(e,t=H.W_OK|H.X_OK){const n={skipped:[],folder:null};var r=e,a=Array.isArray(r),i=0;for(r=a?r:r[Symbol.iterator]();;){var o;if(a){if(i>=r.length)break;o=r[i++]}else{if((i=r.next()).done)break;o=i.value}const e=o;try{return yield Z(e),yield J(e,t),n.folder=e,n}catch(t){n.skipped.push({error:t,folder:e})}}return n})),function(e){return O.apply(this,arguments)}),t.copy=function(e,t,n){return l([{src:e,dest:t}],n)},t.readFile=le,t.readFileRaw=function(e){return ue(e,"binary")},t.normalizeOS=ce;const H=t.constants=void 0!==(N||F()).default.constants?(N||F()).default.constants:{R_OK:(N||F()).default.R_OK,W_OK:(N||F()).default.W_OK,X_OK:(N||F()).default.X_OK};t.lockQueue=new((A||(A=V(n(84)))).default)("fs lock");const W=t.readFileBuffer=(0,(I||q()).promisify)((N||F()).default.readFile),G=t.open=(0,(I||q()).promisify)((N||F()).default.open),K=t.writeFile=(0,(I||q()).promisify)((N||F()).default.writeFile),Y=t.readlink=(0,(I||q()).promisify)((N||F()).default.readlink),Q=t.realpath=(0,(I||q()).promisify)((N||F()).default.realpath),X=t.readdir=(0,(I||q()).promisify)((N||F()).default.readdir);t.rename=(0,(I||q()).promisify)((N||F()).default.rename);const J=t.access=(0,(I||q()).promisify)((N||F()).default.access);t.stat=(0,(I||q()).promisify)((N||F()).default.stat);const Z=t.mkdirp=(0,(I||q()).promisify)(n(116)),ee=t.exists=(0,(I||q()).promisify)((N||F()).default.exists,!0),te=t.lstat=(0,(I||q()).promisify)((N||F()).default.lstat);t.chmod=(0,(I||q()).promisify)((N||F()).default.chmod);const ne=t.link=(0,(I||q()).promisify)((N||F()).default.link);t.glob=(0,(I||q()).promisify)((j||(j=V(n(75)))).default),t.unlink=(L||$()).unlink;const re=(N||F()).default.copyFile?128:4,ae=(0,(I||q()).promisify)((N||F()).default.symlink),ie=n(7),oe=n(122),se=()=>{};function ue(e,t){return new Promise(((n,r)=>{(N||F()).default.readFile(e,t,(function(e,t){e?r(e):n(t)}))}))}function le(e){return ue(e,"utf8").then(ce)}function ce(e){return e.replace(/\r\n/g,"\n")}const pe="\r".charCodeAt(0),de="\n".charCodeAt(0)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getPathKey=m;const r=n(36),a=n(0),i=n(45).default;var o=n(171);const s=o.getCacheDir,u=o.getConfigDir,l=o.getDataDir,c=n(227),p=t.DEPENDENCY_TYPES=["devDependencies","dependencies","optionalDependencies","peerDependencies"],d=t.RESOLUTIONS="resolutions";t.MANIFEST_FIELDS=[d,...p],t.SUPPORTED_NODE_VERSIONS="^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0",t.YARN_REGISTRY="https://registry.yarnpkg.com",t.YARN_DOCS="https://yarnpkg.com/en/docs/cli/",t.YARN_INSTALLER_SH="https://yarnpkg.com/install.sh",t.YARN_INSTALLER_MSI="https://yarnpkg.com/latest.msi",t.SELF_UPDATE_VERSION_URL="https://yarnpkg.com/latest-version",t.CACHE_VERSION=2,t.LOCKFILE_VERSION=1,t.NETWORK_CONCURRENCY=8,t.NETWORK_TIMEOUT=3e4,t.CHILD_CONCURRENCY=5,t.REQUIRED_PACKAGE_KEYS=["name","version","_uid"],t.PREFERRED_MODULE_CACHE_DIRECTORIES=function(){const e=[s()];return process.getuid&&e.push(a.join(r.tmpdir(),`.yarn-cache-${process.getuid()}`)),e.push(a.join(r.tmpdir(),".yarn-cache")),e}(),t.CONFIG_DIRECTORY=u();const f=t.DATA_DIRECTORY=l();function m(e,t){let n="PATH";if("win32"===e){n="Path";for(const e in t)"path"===e.toLowerCase()&&(n=e)}return n}t.LINK_REGISTRY_DIRECTORY=a.join(f,"link"),t.GLOBAL_MODULE_DIRECTORY=a.join(f,"global"),t.NODE_BIN_PATH=process.execPath,t.YARN_BIN_PATH=c?__filename:a.join(__dirname,"..","bin","yarn.js"),t.NODE_MODULES_FOLDER="node_modules",t.NODE_PACKAGE_JSON="package.json",t.POSIX_GLOBAL_PREFIX=`${process.env.DESTDIR||""}/usr/local`,t.FALLBACK_GLOBAL_PREFIX=a.join(i,".yarn"),t.META_FOLDER=".yarn-meta",t.INTEGRITY_FILENAME=".yarn-integrity",t.LOCKFILE_FILENAME="yarn.lock",t.METADATA_FILENAME=".yarn-metadata.json",t.TARBALL_FILENAME=".yarn-tarball.tgz",t.CLEAN_FILENAME=".yarnclean",t.NPM_LOCK_FILENAME="package-lock.json",t.NPM_SHRINKWRAP_FILENAME="npm-shrinkwrap.json",t.DEFAULT_INDENT=" ",t.SINGLE_INSTANCE_PORT=31997,t.SINGLE_INSTANCE_FILENAME=".yarn-single-instance",t.ENV_PATH_KEY=m(process.platform,process.env),t.VERSION_COLOR_SCHEME={major:"red",premajor:"red",minor:"yellow",preminor:"yellow",patch:"green",prepatch:"green",prerelease:"red",unchanged:"white",unknown:"red"}},function(e,t,n){var r=process.env.NODE_ENV;e.exports=function(e,t,n,a,i,o,s,u){if("production"!==r&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,a,i,o,s,u],p=0;(l=new Error(t.replace(/%s/g,(function(){return c[p++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},,function(e,t){e.exports=q.default},,function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.sortAlpha=function(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){const n=e.charCodeAt(r),a=t.charCodeAt(r);if(n!==a)return n-a}return e.length-t.length},t.entries=function(e){const t=[];if(e)for(const n in e)t.push([n,e[n]]);return t},t.removePrefix=function(e,t){return e.startsWith(t)&&(e=e.slice(t.length)),e},t.removeSuffix=function(e,t){return e.endsWith(t)?e.slice(0,-t.length):e},t.addSuffix=function(e,t){return e.endsWith(t)?e:e+t},t.hyphenate=function(e){return e.replace(/[A-Z]/g,(e=>"-"+e.charAt(0).toLowerCase()))},t.camelCase=function(e){return/[A-Z]/.test(e)?null:r(e)},t.compareSortedArrays=function(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0},t.sleep=function(e){return new Promise((t=>{setTimeout(t,e)}))};const r=n(176)},function(e,t,n){var r=n(107)("wks"),a=n(111),i=n(11).Symbol,o="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=o&&i[e]||(o?i:a)("Symbol."+e))}).store=r},function(e,t,n){var r,a,i,o,s,u,l,c;function p(){return c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5))}function d(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=t.parse=void 0,Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return d(a||(a=n(81))).default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d(i||(i=n(150))).default}}),t.implodeEntry=b,t.explodeEntry=w;const f=n(7),m=n(0),h=n(55);function g(e){return(0,(s||(s=n(29))).normalizePattern)(e).name}function y(e){return e&&Object.keys(e).length?e:void 0}function v(e){return e.resolved||(e.reference&&e.hash?`${e.reference}#${e.hash}`:null)}function b(e,t){const n=g(e),r=t.integrity?function(e){return e.toString().split(" ").sort().join(" ")}(t.integrity):"",a={name:n===t.name?void 0:t.name,version:t.version,uid:t.uid===t.version?void 0:t.uid,resolved:t.resolved,registry:"npm"===t.registry?void 0:t.registry,dependencies:y(t.dependencies),optionalDependencies:y(t.optionalDependencies),permissions:y(t.permissions),prebuiltVariants:y(t.prebuiltVariants)};return r&&(a.integrity=r),a}function w(e,t){t.optionalDependencies=t.optionalDependencies||{},t.dependencies=t.dependencies||{},t.uid=t.uid||t.version,t.permissions=t.permissions||{},t.registry=t.registry||"npm",t.name=t.name||g(e);const n=t.integrity;return n&&n.isIntegrity&&(t.integrity=h.parse(n)),t}class _{constructor({cache:e,source:t,parseResultType:n}={}){this.source=t||"",this.cache=e,this.parseResultType=n}hasEntriesExistWithoutIntegrity(){if(!this.cache)return!1;for(const e in this.cache)if(!/^.*@(file:|http)/.test(e)&&this.cache[e]&&!this.cache[e].integrity)return!0;return!1}static fromDirectory(e,t){return(0,(r||(r=d(n(1)))).default)((function*(){const r=m.join(e,(l||(l=n(6))).LOCKFILE_FILENAME);let a,i,o="";return(yield(c||p()).exists(r))?(o=yield(c||p()).readFile(r),i=(0,(u||(u=d(n(81)))).default)(o,r),t&&("merge"===i.type?t.info(t.lang("lockfileMerged")):"conflict"===i.type&&t.warn(t.lang("lockfileConflict"))),a=i.object):t&&t.info(t.lang("noLockfileFound")),new _({cache:a,source:o,parseResultType:i&&i.type})}))()}getLocked(e){const t=this.cache;if(!t)return;const n=e in t&&t[e];return"string"==typeof n?this.getLocked(n):n?(w(e,n),n):void 0}removePattern(e){const t=this.cache;t&&delete t[e]}getLockfile(e){const t={},r=new Map;var a=Object.keys(e).sort((o||(o=n(12))).sortAlpha),i=Array.isArray(a),s=0;for(a=i?a:a[Symbol.iterator]();;){var u;if(i){if(s>=a.length)break;u=a[s++]}else{if((s=a.next()).done)break;u=s.value}const n=u,o=e[n],l=o._remote,c=o._reference;f(c,"Package is missing a reference"),f(l,"Package is missing a remote");const p=v(l),d=p&&r.get(p);if(d){t[n]=d,d.name||g(n)===o.name||(d.name=o.name);continue}const m=b(n,{name:o.name,version:o.version,uid:o._uid,resolved:l.resolved,integrity:l.integrity,registry:l.registry,dependencies:o.dependencies,peerDependencies:o.peerDependencies,optionalDependencies:o.optionalDependencies,permissions:c.permissions,prebuiltVariants:o.prebuiltVariants});t[n]=m,p&&r.set(p,m)}return t}}t.default=_},,,function(e,t){e.exports=z.default},,,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t={}){if(Array.isArray(t)){var n=t,r=Array.isArray(n),a=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(a>=n.length)break;i=n[a++]}else{if((a=n.next()).done)break;i=a.value}e(i)}}else if((null!==t&&"object"==typeof t||"function"==typeof t)&&(Object.setPrototypeOf(t,null),"object"==typeof t))for(const n in t)e(t[n]);return t}},,function(e,t){e.exports=B.default},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},,,,function(e,t,n){var r=n(34);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePattern=function(e){let t=!1,n="latest",r=e,a=!1;"@"===r[0]&&(a=!0,r=r.slice(1));const i=r.split("@");return i.length>1&&(r=i.shift(),n=i.join("@"),n?t=!0:n="*"),a&&(r=`@${r}`),{name:r,range:n,hasVersion:t}}},,function(e,t,n){var r=n(50),a=n(106);e.exports=n(33)?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(63),a=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return a(e,t,n)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=o),i(a,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=a(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){e.exports=!n(85)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports={}},function(e,t){e.exports=M.default},,,,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.wait=function(e){return new Promise((t=>{setTimeout(t,e)}))},t.promisify=function(e,t){return function(...n){return new Promise((function(r,a){n.push((function(e,...n){let i=n;n.length<=1&&(i=n[0]),t&&(i=e,e=null),e?a(e):r(i)})),e.apply(null,n)}))}},t.queue=function(e,t,n=1/0){n=Math.min(n,e.length),e=e.slice();const r=[];let a=e.length;return a?new Promise(((i,o)=>{for(let e=0;e<n;e++)s();function s(){const n=e.shift();t(n).then((function(t){r.push(t),a--,0===a?i(r):e.length&&s()}),o)}})):Promise.resolve(r)}},function(e,t,n){var r=n(11),a=n(23),i=n(48),o=n(31),s=n(49),u="prototype",l=function(e,t,n){var c,p,d,f=e&l.F,m=e&l.G,h=e&l.S,g=e&l.P,y=e&l.B,v=e&l.W,b=m?a:a[t]||(a[t]={}),w=b[u],_=m?r:h?r[t]:(r[t]||{})[u];for(c in m&&(n=t),n)(p=!f&&_&&void 0!==_[c])&&s(b,c)||(d=p?_[c]:n[c],b[c]=m&&"function"!=typeof _[c]?n[c]:y&&p?i(d,r):v&&_[c]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[u]=e[u],t}(d):g&&"function"==typeof d?i(Function.call,d):d,g&&((b.virtual||(b.virtual={}))[c]=d,e&l.R&&w&&!w[c]&&o(w,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){try{var r=n(2);if("function"!=typeof r.inherits)throw"";e.exports=r.inherits}catch(t){e.exports=n(224)}},,,function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.home=void 0;const a=n(0),i=t.home=n(36).homedir(),o=(r||(s=n(169),r=s&&s.__esModule?s:{default:s})).default?a.resolve("/usr/local/share"):i;var s;t.default=o},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(46);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(27),a=n(184),i=n(201),o=Object.defineProperty;t.f=n(33)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),a)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},,,,function(e,t){e.exports=P.default},function(e,t,n){const r=n(32).Buffer,a=n(9),i=n(17).Transform,o=["sha256","sha384","sha512"],s=/^[a-z0-9+/]+(?:=?=?)$/i,u=/^([^-]+)-([^?]+)([?\S*]*)$/,l=/^([^-]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)*$/,c=/^[\x21-\x7E]+$/;class p{get isHash(){return!0}constructor(e,t){const n=!(!t||!t.strict);this.source=e.trim();const r=this.source.match(n?l:u);if(!r)return;if(n&&!o.some((e=>e===r[1])))return;this.algorithm=r[1],this.digest=r[2];const a=r[3];this.options=a?a.slice(1).split("?"):[]}hexDigest(){return this.digest&&r.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}toString(e){if(e&&e.strict&&!(o.some((e=>e===this.algorithm))&&this.digest.match(s)&&(this.options||[]).every((e=>e.match(c)))))return"";const t=this.options&&this.options.length?`?${this.options.join("?")}`:"";return`${this.algorithm}-${this.digest}${t}`}}class d{get isIntegrity(){return!0}toJSON(){return this.toString()}toString(e){let t=(e=e||{}).sep||" ";return e.strict&&(t=t.replace(/\S+/g," ")),Object.keys(this).map((n=>this[n].map((t=>p.prototype.toString.call(t,e))).filter((e=>e.length)).join(t))).filter((e=>e.length)).join(t)}concat(e,t){const n="string"==typeof e?e:h(e,t);return f(`${this.toString(t)} ${n}`,t)}hexDigest(){return f(this,{single:!0}).hexDigest()}match(e,t){const n=f(e,t),r=n.pickAlgorithm(t);return this[r]&&n[r]&&this[r].find((e=>n[r].find((t=>e.digest===t.digest))))||!1}pickAlgorithm(e){const t=e&&e.pickAlgorithm||b,n=Object.keys(this);if(!n.length)throw new Error(`No algorithms available for ${JSON.stringify(this.toString())}`);return n.reduce(((e,n)=>t(e,n)||e))}}function f(e,t){if(t=t||{},"string"==typeof e)return m(e,t);if(e.algorithm&&e.digest){const n=new d;return n[e.algorithm]=[e],m(h(n,t),t)}return m(h(e,t),t)}function m(e,t){return t.single?new p(e,t):e.trim().split(/\s+/).reduce(((e,n)=>{const r=new p(n,t);if(r.algorithm&&r.digest){const t=r.algorithm;e[t]||(e[t]=[]),e[t].push(r)}return e}),new d)}function h(e,t){return e.algorithm&&e.digest?p.prototype.toString.call(e,t):"string"==typeof e?h(f(e,t),t):d.prototype.toString.call(e,t)}function g(e){const t=(e=e||{}).integrity&&f(e.integrity,e),n=t&&Object.keys(t).length,r=n&&t.pickAlgorithm(e),o=n&&t[r],s=Array.from(new Set((e.algorithms||["sha512"]).concat(r?[r]:[]))),u=s.map(a.createHash);let l=0;const c=new i({transform(e,t,n){l+=e.length,u.forEach((n=>n.update(e,t))),n(null,e,t)}}).on("end",(()=>{const a=e.options&&e.options.length?`?${e.options.join("?")}`:"",i=f(u.map(((e,t)=>`${s[t]}-${e.digest("base64")}${a}`)).join(" "),e),p=n&&i.match(t,e);if("number"==typeof e.size&&l!==e.size){const n=new Error(`stream size mismatch when checking ${t}.\n Wanted: ${e.size}\n Found: ${l}`);n.code="EBADSIZE",n.found=l,n.expected=e.size,n.sri=t,c.emit("error",n)}else if(e.integrity&&!p){const e=new Error(`${t} integrity checksum failed when using ${r}: wanted ${o} but got ${i}. (${l} bytes)`);e.code="EINTEGRITY",e.found=i,e.expected=o,e.algorithm=r,e.sri=t,c.emit("error",e)}else c.emit("size",l),c.emit("integrity",i),p&&c.emit("verified",p)}));return c}e.exports.parse=f,e.exports.stringify=h,e.exports.fromHex=function(e,t,n){const a=n&&n.options&&n.options.length?`?${n.options.join("?")}`:"";return f(`${t}-${r.from(e,"hex").toString("base64")}${a}`,n)},e.exports.fromData=function(e,t){const n=(t=t||{}).algorithms||["sha512"],r=t.options&&t.options.length?`?${t.options.join("?")}`:"";return n.reduce(((n,i)=>{const o=a.createHash(i).update(e).digest("base64"),s=new p(`${i}-${o}${r}`,t);if(s.algorithm&&s.digest){const e=s.algorithm;n[e]||(n[e]=[]),n[e].push(s)}return n}),new d)},e.exports.fromStream=function(e,t){const n=(t=t||{}).Promise||Promise,r=g(t);return new n(((t,n)=>{let a;e.pipe(r),e.on("error",n),r.on("error",n),r.on("integrity",(e=>{a=e})),r.on("end",(()=>t(a))),r.on("data",(()=>{}))}))},e.exports.checkData=function(e,t,n){if(t=f(t,n=n||{}),!Object.keys(t).length){if(n.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}const r=t.pickAlgorithm(n),i=a.createHash(r).update(e).digest("base64"),o=f({algorithm:r,digest:i}),s=o.match(t,n);if(s||!n.error)return s;if("number"==typeof n.size&&e.length!==n.size){const r=new Error(`data size mismatch when checking ${t}.\n Wanted: ${n.size}\n Found: ${e.length}`);throw r.code="EBADSIZE",r.found=e.length,r.expected=n.size,r.sri=t,r}{const n=new Error(`Integrity checksum failed when using ${r}: Wanted ${t}, but got ${o}. (${e.length} bytes)`);throw n.code="EINTEGRITY",n.found=o,n.expected=t,n.algorithm=r,n.sri=t,n}},e.exports.checkStream=function(e,t,n){const r=(n=n||{}).Promise||Promise,a=g(Object.assign({},n,{integrity:t}));return new r(((t,n)=>{let r;e.pipe(a),e.on("error",n),a.on("error",n),a.on("verified",(e=>{r=e})),a.on("end",(()=>t(r))),a.on("data",(()=>{}))}))},e.exports.integrityStream=g,e.exports.create=function(e){const t=(e=e||{}).algorithms||["sha512"],n=e.options&&e.options.length?`?${e.options.join("?")}`:"",r=t.map(a.createHash);return{update:function(e,t){return r.forEach((n=>n.update(e,t))),this},digest:function(a){return t.reduce(((t,a)=>{const i=r.shift().digest("base64"),o=new p(`${a}-${i}${n}`,e);if(o.algorithm&&o.digest){const e=o.algorithm;t[e]||(t[e]=[]),t[e].push(o)}return t}),new d)}}};const y=new Set(a.getHashes()),v=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter((e=>y.has(e)));function b(e,t){return v.indexOf(e.toLowerCase())>=v.indexOf(t.toLowerCase())?e:t}},,,,,function(e,t,n){e.exports=m,m.Minimatch=h;var r={sep:"/"};try{r=n(0)}catch(e){}var a=m.GLOBSTAR=h.GLOBSTAR={},i=n(175),o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},s="[^/]",u=s+"*?",l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",c="(?:(?!(?:\\/|^)\\.).)*?",p="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{}),d=/\/+/;function f(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function m(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new h(t,n).match(e))}function h(e,t){if(!(this instanceof h))return new h(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function g(e,t){if(t||(t=this instanceof h?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:i(e)}m.filter=function(e,t){return t=t||{},function(n,r,a){return m(n,e,t)}},m.defaults=function(e){if(!e||!Object.keys(e).length)return m;var t=m,n=function(n,r,a){return t.minimatch(n,r,f(e,a))};return n.Minimatch=function(n,r){return new t.Minimatch(n,f(e,r))},n},h.defaults=function(e){return e&&Object.keys(e).length?m.defaults(e).Minimatch:h},h.prototype.debug=function(){},h.prototype.make=function(){if(!this._made){var e=this.pattern,t=this.options;if(t.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error),this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(d)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n}else this.empty=!0;else this.comment=!0}},h.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=this.options,r=0;if(!n.nonegate){for(var a=0,i=e.length;a<i&&"!"===e.charAt(a);a++)t=!t,r++;r&&(this.pattern=e.substr(r)),this.negate=t}},m.braceExpand=function(e,t){return g(e,t)},h.prototype.braceExpand=g,h.prototype.parse=function(e,t){if(e.length>65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return a;if(""===e)return"";var r,i="",l=!!n.nocase,c=!1,d=[],f=[],m=!1,h=-1,g=-1,v="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",b=this;function w(){if(r){switch(r){case"*":i+=u,l=!0;break;case"?":i+=s,l=!0;break;default:i+="\\"+r}b.debug("clearStateChar %j %j",r,i),r=!1}}for(var _,x=0,k=e.length;x<k&&(_=e.charAt(x));x++)if(this.debug("%s\t%s %s %j",e,x,i,_),c&&p[_])i+="\\"+_,c=!1;else switch(_){case"/":return!1;case"\\":w(),c=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,x,i,_),m){this.debug(" in class"),"!"===_&&x===g+1&&(_="^"),i+=_;continue}b.debug("call clearStateChar %j",r),w(),r=_,n.noext&&w();continue;case"(":if(m){i+="(";continue}if(!r){i+="\\(";continue}d.push({type:r,start:x-1,reStart:i.length,open:o[r].open,close:o[r].close}),i+="!"===r?"(?:(?!(?:":"(?:",this.debug("plType %j %j",r,i),r=!1;continue;case")":if(m||!d.length){i+="\\)";continue}w(),l=!0;var S=d.pop();i+=S.close,"!"===S.type&&f.push(S),S.reEnd=i.length;continue;case"|":if(m||!d.length||c){i+="\\|",c=!1;continue}w(),i+="|";continue;case"[":if(w(),m){i+="\\"+_;continue}m=!0,g=x,h=i.length,i+=_;continue;case"]":if(x===g+1||!m){i+="\\"+_,c=!1;continue}if(m){var E=e.substring(g+1,x);try{RegExp("["+E+"]")}catch(e){var C=this.parse(E,y);i=i.substr(0,h)+"\\["+C[0]+"\\]",l=l||C[1],m=!1;continue}}l=!0,m=!1,i+=_;continue;default:w(),c?c=!1:!p[_]||"^"===_&&m||(i+="\\"),i+=_}for(m&&(E=e.substr(g+1),C=this.parse(E,y),i=i.substr(0,h)+"\\["+C[0],l=l||C[1]),S=d.pop();S;S=d.pop()){var D=i.slice(S.reStart+S.open.length);this.debug("setting tail",i,S),D=D.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,n){return n||(n="\\"),t+t+n+"|"})),this.debug("tail=%j\n %s",D,D,S,i);var O="*"===S.type?u:"?"===S.type?s:"\\"+S.type;l=!0,i=i.slice(0,S.reStart)+O+"\\("+D}w(),c&&(i+="\\\\");var N=!1;switch(i.charAt(0)){case".":case"[":case"(":N=!0}for(var j=f.length-1;j>-1;j--){var P=f[j],T=i.slice(0,P.reStart),A=i.slice(P.reStart,P.reEnd-8),R=i.slice(P.reEnd-8,P.reEnd),I=i.slice(P.reEnd);R+=I;var M=T.split("(").length-1,L=I;for(x=0;x<M;x++)L=L.replace(/\)[+*?]?/,"");var F="";""===(I=L)&&t!==y&&(F="$"),i=T+A+I+F+R}if(""!==i&&l&&(i="(?=.)"+i),N&&(i=v+i),t===y)return[i,l];if(!l)return function(e){return e.replace(/\\(.)/g,"$1")}(e);var z=n.nocase?"i":"";try{var B=new RegExp("^"+i+"$",z)}catch(e){return new RegExp("$.")}return B._glob=e,B._src=i,B};var y={};m.makeRe=function(e,t){return new h(e,t||{}).makeRe()},h.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,n=t.noglobstar?u:t.dot?l:c,r=t.nocase?"i":"",i=e.map((function(e){return e.map((function(e){return e===a?n:"string"==typeof e?function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(e):e._src})).join("\\/")})).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,r)}catch(e){this.regexp=!1}return this.regexp},m.match=function(e,t,n){var r=new h(t,n=n||{});return e=e.filter((function(e){return r.match(e)})),r.options.nonull&&!e.length&&e.push(t),e},h.prototype.match=function(e,t){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var n=this.options;"/"!==r.sep&&(e=e.split(r.sep).join("/")),e=e.split(d),this.debug(this.pattern,"split",e);var a,i,o=this.set;for(this.debug(this.pattern,"set",o),i=e.length-1;i>=0&&!(a=e[i]);i--);for(i=0;i<o.length;i++){var s=o[i],u=e;if(n.matchBase&&1===s.length&&(u=[a]),this.matchOne(u,s,t))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate},h.prototype.matchOne=function(e,t,n){var r=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var i=0,o=0,s=e.length,u=t.length;i<s&&o<u;i++,o++){this.debug("matchOne loop");var l,c=t[o],p=e[i];if(this.debug(t,c,p),!1===c)return!1;if(c===a){this.debug("GLOBSTAR",[t,c,p]);var d=i,f=o+1;if(f===u){for(this.debug("** at the end");i<s;i++)if("."===e[i]||".."===e[i]||!r.dot&&"."===e[i].charAt(0))return!1;return!0}for(;d<s;){var m=e[d];if(this.debug("\nglobstar while",e,d,t,f,m),this.matchOne(e.slice(d),t.slice(f),n))return this.debug("globstar found match!",d,s,m),!0;if("."===m||".."===m||!r.dot&&"."===m.charAt(0)){this.debug("dot detected!",e,d,t,f);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!n||(this.debug("\n>>> no match, partial?",e,d,t,f),d!==s))}if("string"==typeof c?(l=r.nocase?p.toLowerCase()===c.toLowerCase():p===c,this.debug("string match",c,p,l)):(l=p.match(c),this.debug("pattern match",c,p,l)),!l)return!1}if(i===s&&o===u)return!0;if(i===s)return n;if(o===u)return i===s-1&&""===e[i];throw new Error("wtf?")}},function(e,t,n){var r=n(123);function a(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function i(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}e.exports=r(a),e.exports.strict=r(i),a.proto=a((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return a(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})}))},,function(e,t){e.exports=J.default},,,,function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(34),a=n(11).document,i=r(a)&&r(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},function(e,t){e.exports=!0},function(e,t,n){var r=n(46);function a(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new a(e)}},function(e,t,n){var r=n(50).f,a=n(49),i=n(13)("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(107)("keys"),a=n(111);e.exports=function(e){return r[e]||(r[e]=a(e))}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(131),a=n(67);e.exports=function(e){return r(a(e))}},function(e,t,n){e.exports=b;var r=n(3),a=n(114),i=n(60);i.Minimatch;var o=n(42),s=n(54).EventEmitter,u=n(0),l=n(22),c=n(76),p=n(218),d=n(115);d.alphasort,d.alphasorti;var f=d.setopts,m=d.ownProp,h=n(223);n(2);var g=d.childrenIgnored,y=d.isIgnored,v=n(61);function b(e,t,n){if("function"==typeof t&&(n=t,t={}),t||(t={}),t.sync){if(n)throw new TypeError("callback provided to sync glob");return p(e,t)}return new _(e,t,n)}b.sync=p;var w=b.GlobSync=p.GlobSync;function _(e,t,n){if("function"==typeof t&&(n=t,t=null),t&&t.sync){if(n)throw new TypeError("callback provided to sync glob");return new w(e,t)}if(!(this instanceof _))return new _(e,t,n);f(this,e,t),this._didRealPath=!1;var r=this.minimatch.set.length;this.matches=new Array(r),"function"==typeof n&&(n=v(n),this.on("error",n),this.on("end",(function(e){n(null,e)})));var a=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===r)return s();for(var i=!0,o=0;o<r;o++)this._process(this.minimatch.set[o],o,!1,s);function s(){--a._processing,a._processing<=0&&(i?process.nextTick((function(){a._finish()})):a._finish())}i=!1}b.glob=b,b.hasMagic=function(e,t){var n=function(e,t){if(null===t||"object"!=typeof t)return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}({},t);n.noprocess=!0;var r=new _(e,n).minimatch.set;if(!e)return!1;if(r.length>1)return!0;for(var a=0;a<r[0].length;a++)if("string"!=typeof r[0][a])return!0;return!1},b.Glob=_,o(_,s),_.prototype._finish=function(){if(l(this instanceof _),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();d.finish(this),this.emit("end",this.found)}},_.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var e=this.matches.length;if(0===e)return this._finish();for(var t=this,n=0;n<this.matches.length;n++)this._realpathSet(n,r)}function r(){0==--e&&t._finish()}},_.prototype._realpathSet=function(e,t){var n=this.matches[e];if(!n)return t();var r=Object.keys(n),i=this,o=r.length;if(0===o)return t();var s=this.matches[e]=Object.create(null);r.forEach((function(n,r){n=i._makeAbs(n),a.realpath(n,i.realpathCache,(function(r,a){r?"stat"===r.syscall?s[n]=!0:i.emit("error",r):s[a]=!0,0==--o&&(i.matches[e]=s,t())}))}))},_.prototype._mark=function(e){return d.mark(this,e)},_.prototype._makeAbs=function(e){return d.makeAbs(this,e)},_.prototype.abort=function(){this.aborted=!0,this.emit("abort")},_.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},_.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var n=e[t];this._emitMatch(n[0],n[1])}}if(this._processQueue.length){var r=this._processQueue.slice(0);for(this._processQueue.length=0,t=0;t<r.length;t++){var a=r[t];this._processing--,this._process(a[0],a[1],a[2],a[3])}}}},_.prototype._process=function(e,t,n,r){if(l(this instanceof _),l("function"==typeof r),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([e,t,n,r]);else{for(var a,o=0;"string"==typeof e[o];)o++;switch(o){case e.length:return void this._processSimple(e.join("/"),t,r);case 0:a=null;break;default:a=e.slice(0,o).join("/")}var s,u=e.slice(o);null===a?s=".":c(a)||c(e.join("/"))?(a&&c(a)||(a="/"+a),s=a):s=a;var p=this._makeAbs(s);if(g(this,s))return r();u[0]===i.GLOBSTAR?this._processGlobStar(a,s,p,u,t,n,r):this._processReaddir(a,s,p,u,t,n,r)}},_.prototype._processReaddir=function(e,t,n,r,a,i,o){var s=this;this._readdir(n,i,(function(u,l){return s._processReaddir2(e,t,n,r,a,i,l,o)}))},_.prototype._processReaddir2=function(e,t,n,r,a,i,o,s){if(!o)return s();for(var l=r[0],c=!!this.minimatch.negate,p=l._glob,d=this.dot||"."===p.charAt(0),f=[],m=0;m<o.length;m++)("."!==(g=o[m]).charAt(0)||d)&&(c&&!e?!g.match(l):g.match(l))&&f.push(g);var h=f.length;if(0===h)return s();if(1===r.length&&!this.mark&&!this.stat){for(this.matches[a]||(this.matches[a]=Object.create(null)),m=0;m<h;m++){var g=f[m];e&&(g="/"!==e?e+"/"+g:e+g),"/"!==g.charAt(0)||this.nomount||(g=u.join(this.root,g)),this._emitMatch(a,g)}return s()}for(r.shift(),m=0;m<h;m++)g=f[m],e&&(g="/"!==e?e+"/"+g:e+g),this._process([g].concat(r),a,i,s);s()},_.prototype._emitMatch=function(e,t){if(!this.aborted&&!y(this,t))if(this.paused)this._emitQueue.push([e,t]);else{var n=c(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=n),!this.matches[e][t]){if(this.nodir){var r=this.cache[n];if("DIR"===r||Array.isArray(r))return}this.matches[e][t]=!0;var a=this.statCache[n];a&&this.emit("stat",t,a),this.emit("match",t)}}},_.prototype._readdirInGlobStar=function(e,t){if(!this.aborted){if(this.follow)return this._readdir(e,!1,t);var n=this,a=h("lstat\0"+e,(function(r,a){if(r&&"ENOENT"===r.code)return t();var i=a&&a.isSymbolicLink();n.symlinks[e]=i,i||!a||a.isDirectory()?n._readdir(e,!1,t):(n.cache[e]="FILE",t())}));a&&r.lstat(e,a)}},_.prototype._readdir=function(e,t,n){if(!this.aborted&&(n=h("readdir\0"+e+"\0"+t,n))){if(t&&!m(this.symlinks,e))return this._readdirInGlobStar(e,n);if(m(this.cache,e)){var a=this.cache[e];if(!a||"FILE"===a)return n();if(Array.isArray(a))return n(null,a)}r.readdir(e,function(e,t,n){return function(r,a){r?e._readdirError(t,r,n):e._readdirEntries(t,a,n)}}(this,e,n))}},_.prototype._readdirEntries=function(e,t,n){if(!this.aborted){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var a=t[r];a="/"===e?e+a:e+"/"+a,this.cache[a]=!0}return this.cache[e]=t,n(null,t)}},_.prototype._readdirError=function(e,t,n){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var a=new Error(t.code+" invalid cwd "+this.cwd);a.path=this.cwd,a.code=t.code,this.emit("error",a),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t)}return n()}},_.prototype._processGlobStar=function(e,t,n,r,a,i,o){var s=this;this._readdir(n,i,(function(u,l){s._processGlobStar2(e,t,n,r,a,i,l,o)}))},_.prototype._processGlobStar2=function(e,t,n,r,a,i,o,s){if(!o)return s();var u=r.slice(1),l=e?[e]:[],c=l.concat(u);this._process(c,a,!1,s);var p=this.symlinks[n],d=o.length;if(p&&i)return s();for(var f=0;f<d;f++)if("."!==o[f].charAt(0)||this.dot){var m=l.concat(o[f],u);this._process(m,a,!0,s);var h=l.concat(o[f],r);this._process(h,a,!0,s)}s()},_.prototype._processSimple=function(e,t,n){var r=this;this._stat(e,(function(a,i){r._processSimple2(e,t,a,i,n)}))},_.prototype._processSimple2=function(e,t,n,r,a){if(this.matches[t]||(this.matches[t]=Object.create(null)),!r)return a();if(e&&c(e)&&!this.nomount){var i=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=u.join(this.root,e):(e=u.resolve(this.root,e),i&&(e+="/"))}"win32"===process.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),a()},_.prototype._stat=function(e,t){var n=this._makeAbs(e),a="/"===e.slice(-1);if(e.length>this.maxLength)return t();if(!this.stat&&m(this.cache,n)){var i=this.cache[n];if(Array.isArray(i)&&(i="DIR"),!a||"DIR"===i)return t(null,i);if(a&&"FILE"===i)return t()}var o=this.statCache[n];if(void 0!==o){if(!1===o)return t(null,o);var s=o.isDirectory()?"DIR":"FILE";return a&&"FILE"===s?t():t(null,s,o)}var u=this,l=h("stat\0"+n,(function(a,i){if(i&&i.isSymbolicLink())return r.stat(n,(function(r,a){r?u._stat2(e,n,null,i,t):u._stat2(e,n,r,a,t)}));u._stat2(e,n,a,i,t)}));l&&r.lstat(n,l)},_.prototype._stat2=function(e,t,n,r,a){if(n&&("ENOENT"===n.code||"ENOTDIR"===n.code))return this.statCache[t]=!1,a();var i="/"===e.slice(-1);if(this.statCache[t]=r,"/"===t.slice(-1)&&r&&!r.isDirectory())return a(null,!1,r);var o=!0;return r&&(o=r.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,i&&"FILE"===o?a():a(null,o,r)}},function(e,t,n){function r(e){return"/"===e.charAt(0)}function a(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),n=t[1]||"",r=Boolean(n&&":"!==n.charAt(1));return Boolean(t[2]||r)}e.exports="win32"===process.platform?a:r,e.exports.posix=r,e.exports.win32=a},,,function(e,t){e.exports=U.default},,function(e,t,n){var r,a,i,o,s,u;function l(){return a=p(n(7))}function c(){return o=n(6)}function p(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t="lockfile"){return function(e){return e.includes(b)&&e.includes(v)&&e.includes(y)}(e=(0,(i||(i=p(n(122)))).default)(e))?function(e,t){const n=function(e){const t=[[],[]],n=e.split(/\r?\n/g);let r=!1;for(;n.length;){const e=n.shift();if(e.startsWith(b)){for(;n.length;){const e=n.shift();if(e===v){r=!1;break}r||e.startsWith(g)?r=!0:t[0].push(e)}for(;n.length;){const e=n.shift();if(e.startsWith(y))break;t[1].push(e)}}else t[0].push(e),t[1].push(e)}return[t[0].join("\n"),t[1].join("\n")]}(e);try{return{type:"merge",object:Object.assign({},w(n[0],t),w(n[1],t))}}catch(e){if(e instanceof SyntaxError)return{type:"conflict",object:{}};throw e}}(e,t):{type:"success",object:w(e,t)}};const d=/^yarn lockfile v(\d+)$/,f={boolean:"BOOLEAN",string:"STRING",identifier:"IDENTIFIER",eof:"EOF",colon:"COLON",newline:"NEWLINE",comment:"COMMENT",indent:"INDENT",invalid:"INVALID",number:"NUMBER",comma:"COMMA"},m=[f.boolean,f.string,f.number];class h{constructor(e,t="lockfile"){this.comments=[],this.tokens=function*(e){let t=!1,n=1,r=0;function a(e,t){return{line:n,col:r,type:e,value:t}}for(;e.length;){let i=0;if("\n"===e[0]||"\r"===e[0])i++,"\n"===e[1]&&i++,n++,r=0,yield a(f.newline);else if("#"===e[0]){i++;let t="";for(;"\n"!==e[i];)t+=e[i],i++;yield a(f.comment,t)}else if(" "===e[0])if(t){let t="";for(let n=0;" "===e[n];n++)t+=e[n];if(t.length%2)throw new TypeError("Invalid number of spaces");i=t.length,yield a(f.indent,t.length/2)}else i++;else if('"'===e[0]){let t="";for(let n=0;;n++){const r=e[n];if(t+=r,n>0&&'"'===r&&("\\"!==e[n-1]||"\\"===e[n-2]))break}i=t.length;try{yield a(f.string,JSON.parse(t))}catch(e){if(!(e instanceof SyntaxError))throw e;yield a(f.invalid)}}else if(/^[0-9]/.test(e)){let t="";for(let n=0;/^[0-9]$/.test(e[n]);n++)t+=e[n];i=t.length,yield a(f.number,+t)}else if(/^true/.test(e))yield a(f.boolean,!0),i=4;else if(/^false/.test(e))yield a(f.boolean,!1),i=5;else if(":"===e[0])yield a(f.colon),i++;else if(","===e[0])yield a(f.comma),i++;else if(/^[a-zA-Z\/-]/g.test(e)){let t="";for(let n=0;n<e.length;n++){const r=e[n];if(":"===r||" "===r||"\n"===r||"\r"===r||","===r)break;t+=r}i=t.length,yield a(f.string,t)}else yield a(f.invalid);i||(yield a(f.invalid)),r+=i,t="\n"===e[0]||"\r"===e[0]&&"\n"===e[1],e=e.slice(i)}yield a(f.eof)}(e),this.fileLoc=t}onComment(e){const t=e.value;(0,(a||l()).default)("string"==typeof t,"expected token value to be a string");const r=t.trim(),i=r.match(d);if(i){const e=+i[1];if(e>(o||c()).LOCKFILE_VERSION)throw new((s||(s=n(4))).MessageError)(`Can't install from a lockfile of version ${e} as you're on an old yarn version that only supports versions up to ${(o||c()).LOCKFILE_VERSION}. Run \`$ yarn self-update\` to upgrade to the latest version.`)}this.comments.push(r)}next(){const e=this.tokens.next();(0,(a||l()).default)(e,"expected a token");const t=e.done,n=e.value;if(t||!n)throw new Error("No more tokens");return n.type===f.comment?(this.onComment(n),this.next()):this.token=n}unexpected(e="Unexpected token"){throw new SyntaxError(`${e} ${this.token.line}:${this.token.col} in ${this.fileLoc}`)}expect(e){this.token.type===e?this.next():this.unexpected()}eat(e){return this.token.type===e&&(this.next(),!0)}parse(e=0){const t=(0,(u||(u=p(n(20)))).default)();for(;;){const u=this.token;if(u.type===f.newline){const t=this.next();if(!e)continue;if(t.type!==f.indent)break;if(t.value!==e)break;this.next()}else if(u.type===f.indent){if(u.value!==e)break;this.next()}else{if(u.type===f.eof)break;if(u.type===f.string){const n=u.value;(0,(a||l()).default)(n,"Expected a key");const r=[n];for(this.next();this.token.type===f.comma;){this.next();const e=this.token;e.type!==f.string&&this.unexpected("Expected string");const t=e.value;(0,(a||l()).default)(t,"Expected a key"),r.push(t),this.next()}const p=this.token;if(p.type===f.colon){this.next();const n=this.parse(e+1);var i=r,o=Array.isArray(i),s=0;for(i=o?i:i[Symbol.iterator]();;){var c;if(o){if(s>=i.length)break;c=i[s++]}else{if((s=i.next()).done)break;c=s.value}t[c]=n}if(e&&this.token.type!==f.indent)break}else if(v=p,m.indexOf(v.type)>=0){var d=r,h=Array.isArray(d),g=0;for(d=h?d:d[Symbol.iterator]();;){var y;if(h){if(g>=d.length)break;y=d[g++]}else{if((g=d.next()).done)break;y=g.value}t[y]=p.value}this.next()}else this.unexpected("Invalid value type")}else this.unexpected(`Unknown token: ${(r||(r=p(n(2)))).default.inspect(u)}`)}}var v;return t}}const g="|||||||",y=">>>>>>>",v="=======",b="<<<<<<<";function w(e,t){const n=new h(e,t);return n.next(),n.parse()}},,,function(e,t,n){var r;function a(){return e=n(20),r=e&&e.__esModule?e:{default:e};var e}Object.defineProperty(t,"__esModule",{value:!0});const i=n(212)("yarn");t.default=class{constructor(e,t=1/0){this.concurrencyQueue=[],this.maxConcurrency=t,this.runningCount=0,this.warnedStuck=!1,this.alias=e,this.first=!0,this.running=(0,(r||a()).default)(),this.queue=(0,(r||a()).default)(),this.stuckTick=this.stuckTick.bind(this)}stillActive(){this.stuckTimer&&clearTimeout(this.stuckTimer),this.stuckTimer=setTimeout(this.stuckTick,5e3),this.stuckTimer.unref&&this.stuckTimer.unref()}stuckTick(){1===this.runningCount&&(this.warnedStuck=!0,i(`The ${JSON.stringify(this.alias)} blocking queue may be stuck. 5 seconds without any activity with 1 worker: ${Object.keys(this.running)[0]}`))}push(e,t){return this.first?this.first=!1:this.stillActive(),new Promise(((n,r)=>{(this.queue[e]=this.queue[e]||[]).push({factory:t,resolve:n,reject:r}),this.running[e]||this.shift(e)}))}shift(e){this.running[e]&&(delete this.running[e],this.runningCount--,this.stuckTimer&&(clearTimeout(this.stuckTimer),this.stuckTimer=null),this.warnedStuck&&(this.warnedStuck=!1,i(`${JSON.stringify(this.alias)} blocking queue finally resolved. Nothing to worry about.`)));const t=this.queue[e];if(!t)return;var n=t.shift();const r=n.resolve,a=n.reject,o=n.factory;t.length||delete this.queue[e];const s=()=>{this.shift(e),this.shiftConcurrencyQueue()};this.maybePushConcurrencyQueue((()=>{this.running[e]=!0,this.runningCount++,o().then((function(e){return r(e),s(),null})).catch((function(e){a(e),s()}))}))}maybePushConcurrencyQueue(e){this.runningCount<this.maxConcurrency?e():this.concurrencyQueue.push(e)}shiftConcurrencyQueue(){if(this.runningCount<this.maxConcurrency){const e=this.concurrencyQueue.shift();e&&e()}}}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},,,,,,,,,,,,,,,function(e,t,n){var r=n(47),a=n(13)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?n:i?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(11).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(69),a=n(41),i=n(197),o=n(31),s=n(35),u=n(188),l=n(71),c=n(194),p=n(13)("iterator"),d=!([].keys&&"next"in[].keys()),f="keys",m="values",h=function(){return this};e.exports=function(e,t,n,g,y,v,b){u(n,t,g);var w,_,x,k=function(e){if(!d&&e in D)return D[e];switch(e){case f:case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",E=y==m,C=!1,D=e.prototype,O=D[p]||D["@@iterator"]||y&&D[y],N=O||k(y),j=y?E?k("entries"):N:void 0,P="Array"==t&&D.entries||O;if(P&&(x=c(P.call(new e)))!==Object.prototype&&x.next&&(l(x,S,!0),r||"function"==typeof x[p]||o(x,p,h)),E&&O&&O.name!==m&&(C=!0,N=function(){return O.call(this)}),r&&!b||!d&&!C&&D[p]||o(D,p,N),s[t]=N,s[S]=h,y)if(w={values:E?N:k(m),keys:v?N:k(f),entries:j},b)for(_ in w)_ in D||i(D,_,w[_]);else a(a.P+a.F*(d||C),t,w);return w}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r=n(27),a=n(34),i=n(70);e.exports=function(e,t){if(r(e),a(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(23),a=n(11),i="__core-js_shared__",o=a[i]||(a[i]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(69)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(27),a=n(46),i=n(13)("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||null==(n=r(o)[i])?t:a(n)}},function(e,t,n){var r,a,i,o=n(48),s=n(185),u=n(102),l=n(68),c=n(11),p=c.process,d=c.setImmediate,f=c.clearImmediate,m=c.MessageChannel,h=c.Dispatch,g=0,y={},v="onreadystatechange",b=function(){var e=+this;if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},w=function(e){b.call(e.data)};d&&f||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return y[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},f=function(e){delete y[e]},"process"==n(47)(p)?r=function(e){p.nextTick(o(b,e,1))}:h&&h.now?r=function(e){h.now(o(b,e,1))}:m?(i=(a=new m).port2,a.port1.onmessage=w,r=o(i.postMessage,i,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",w,!1)):r=v in l("script")?function(e){u.appendChild(l("script"))[v]=function(){u.removeChild(this),b.call(e)}}:function(e){setTimeout(o(b,e,1),0)}),e.exports={set:d,clear:f}},function(e,t,n){var r=n(73),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){function r(e){var n;function r(){if(r.enabled){var e=r,a=+new Date,i=a-(n||a);e.diff=i,e.prev=n,e.curr=a,n=a;for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var u=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;u++;var a=t.formatters[r];if("function"==typeof a){var i=o[u];n=a.call(e,i),o.splice(u,1),u--}return n})),t.formatArgs.call(e,o),(r.log||t.log||console.log.bind(console)).apply(e,o)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=a,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function a(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(n=0;n<a;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(229),t.instances=[],t.names=[],t.skips=[],t.formatters={}},,function(e,t,n){e.exports=c,c.realpath=c,c.sync=p,c.realpathSync=p,c.monkeypatch=function(){r.realpath=c,r.realpathSync=p},c.unmonkeypatch=function(){r.realpath=a,r.realpathSync=i};var r=n(3),a=r.realpath,i=r.realpathSync,o=process.version,s=/^v[0-5]\./.test(o),u=n(217);function l(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function c(e,t,n){if(s)return a(e,t,n);"function"==typeof t&&(n=t,t=null),a(e,t,(function(r,a){l(r)?u.realpath(e,t,n):n(r,a)}))}function p(e,t){if(s)return i(e,t);try{return i(e,t)}catch(n){if(l(n))return u.realpathSync(e,t);throw n}}},function(e,t,n){function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.alphasort=l,t.alphasorti=u,t.setopts=function(e,t,n){if(n||(n={}),n.matchBase&&-1===t.indexOf("/")){if(n.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!n.silent,e.pattern=t,e.strict=!1!==n.strict,e.realpath=!!n.realpath,e.realpathCache=n.realpathCache||Object.create(null),e.follow=!!n.follow,e.dot=!!n.dot,e.mark=!!n.mark,e.nodir=!!n.nodir,e.nodir&&(e.mark=!0),e.sync=!!n.sync,e.nounique=!!n.nounique,e.nonull=!!n.nonull,e.nosort=!!n.nosort,e.nocase=!!n.nocase,e.stat=!!n.stat,e.noprocess=!!n.noprocess,e.absolute=!!n.absolute,e.maxLength=n.maxLength||1/0,e.cache=n.cache||Object.create(null),e.statCache=n.statCache||Object.create(null),e.symlinks=n.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(c))}(e,n),e.changedCwd=!1;var i=process.cwd();r(n,"cwd")?(e.cwd=a.resolve(n.cwd),e.changedCwd=e.cwd!==i):e.cwd=i,e.root=n.root||a.resolve(e.cwd,"/"),e.root=a.resolve(e.root),"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=o(e.cwd)?e.cwd:p(e,e.cwd),"win32"===process.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!n.nomount,n.nonegate=!0,n.nocomment=!0,e.minimatch=new s(t,n),e.options=e.minimatch.options},t.ownProp=r,t.makeAbs=p,t.finish=function(e){for(var t=e.nounique,n=t?[]:Object.create(null),r=0,a=e.matches.length;r<a;r++){var i=e.matches[r];if(i&&0!==Object.keys(i).length){var o=Object.keys(i);t?n.push.apply(n,o):o.forEach((function(e){n[e]=!0}))}else if(e.nonull){var s=e.minimatch.globSet[r];t?n.push(s):n[s]=!0}}if(t||(n=Object.keys(n)),e.nosort||(n=n.sort(e.nocase?u:l)),e.mark){for(r=0;r<n.length;r++)n[r]=e._mark(n[r]);e.nodir&&(n=n.filter((function(t){var n=!/\/$/.test(t),r=e.cache[t]||e.cache[p(e,t)];return n&&r&&(n="DIR"!==r&&!Array.isArray(r)),n})))}e.ignore.length&&(n=n.filter((function(t){return!d(e,t)}))),e.found=n},t.mark=function(e,t){var n=p(e,t),r=e.cache[n],a=t;if(r){var i="DIR"===r||Array.isArray(r),o="/"===t.slice(-1);if(i&&!o?a+="/":!i&&o&&(a=a.slice(0,-1)),a!==t){var s=p(e,a);e.statCache[s]=e.statCache[n],e.cache[s]=e.cache[n]}}return a},t.isIgnored=d,t.childrenIgnored=function(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return!(!e.gmatcher||!e.gmatcher.match(t))}))};var a=n(0),i=n(60),o=n(76),s=i.Minimatch;function u(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function l(e,t){return e.localeCompare(t)}function c(e){var t=null;if("/**"===e.slice(-3)){var n=e.replace(/(\/\*\*)+$/,"");t=new s(n,{dot:!0})}return{matcher:new s(e,{dot:!0}),gmatcher:t}}function p(e,t){var n=t;return n="/"===t.charAt(0)?a.join(e.root,t):o(t)||""===t?t:e.changedCwd?a.resolve(e.cwd,t):a.resolve(t),"win32"===process.platform&&(n=n.replace(/\\/g,"/")),n}function d(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))}))}},function(e,t,n){var r=n(0),a=n(3),i=parseInt("0777",8);function o(e,t,n,s){"function"==typeof t?(n=t,t={}):t&&"object"==typeof t||(t={mode:t});var u=t.mode,l=t.fs||a;void 0===u&&(u=i&~process.umask()),s||(s=null);var c=n||function(){};e=r.resolve(e),l.mkdir(e,u,(function(n){if(!n)return c(null,s=s||e);"ENOENT"===n.code?o(r.dirname(e),t,(function(n,r){n?c(n,r):o(e,t,c,r)})):l.stat(e,(function(e,t){e||!t.isDirectory()?c(n,s):c(null,s)}))}))}e.exports=o.mkdirp=o.mkdirP=o,o.sync=function e(t,n,o){n&&"object"==typeof n||(n={mode:n});var s=n.mode,u=n.fs||a;void 0===s&&(s=i&~process.umask()),o||(o=null),t=r.resolve(t);try{u.mkdirSync(t,s),o=o||t}catch(a){if("ENOENT"===a.code)o=e(r.dirname(t),n,o),e(t,n,o);else{var l;try{l=u.statSync(t)}catch(e){throw a}if(!l.isDirectory())throw a}}return o}},,,,,,function(e,t,n){e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return 65279===e.charCodeAt(0)?e.slice(1):e}},function(e,t){e.exports=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){r[e]=t[e]})),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),a=e[e.length-1];return"function"==typeof r&&r!==a&&Object.keys(a).forEach((function(e){r[e]=a[e]})),r}}},,,,,,,,function(e,t,n){var r=n(47);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(195),a=n(101);e.exports=Object.keys||function(e){return r(e,a)}},function(e,t,n){var r=n(67);e.exports=function(e){return Object(r(e))}},,,,,,,,,,,,function(e,t){e.exports={name:"yarn",installationMethod:"unknown",version:"1.10.0-0",license:"BSD-2-Clause",preferGlobal:!0,description:"📦🐈 Fast, reliable, and secure dependency management.",dependencies:{"@zkochan/cmd-shim":"^2.2.4","babel-runtime":"^6.26.0",bytes:"^3.0.0",camelcase:"^4.0.0",chalk:"^2.1.0",commander:"^2.9.0",death:"^1.0.0",debug:"^3.0.0","deep-equal":"^1.0.1","detect-indent":"^5.0.0",dnscache:"^1.0.1",glob:"^7.1.1","gunzip-maybe":"^1.4.0","hash-for-dep":"^1.2.3","imports-loader":"^0.8.0",ini:"^1.3.4",inquirer:"^3.0.1",invariant:"^2.2.0","is-builtin-module":"^2.0.0","is-ci":"^1.0.10","is-webpack-bundle":"^1.0.0",leven:"^2.0.0","loud-rejection":"^1.2.0",micromatch:"^2.3.11",mkdirp:"^0.5.1","node-emoji":"^1.6.1","normalize-url":"^2.0.0","npm-logical-tree":"^1.2.1","object-path":"^0.11.2","proper-lockfile":"^2.0.0",puka:"^1.0.0",read:"^1.0.7",request:"^2.87.0","request-capture-har":"^1.2.2",rimraf:"^2.5.0",semver:"^5.1.0",ssri:"^5.3.0","strip-ansi":"^4.0.0","strip-bom":"^3.0.0","tar-fs":"^1.16.0","tar-stream":"^1.6.1",uuid:"^3.0.1","v8-compile-cache":"^2.0.0","validate-npm-package-license":"^3.0.3",yn:"^2.0.0"},devDependencies:{"babel-core":"^6.26.0","babel-eslint":"^7.2.3","babel-loader":"^6.2.5","babel-plugin-array-includes":"^2.0.3","babel-plugin-transform-builtin-extend":"^1.1.2","babel-plugin-transform-inline-imports-commonjs":"^1.0.0","babel-plugin-transform-runtime":"^6.4.3","babel-preset-env":"^1.6.0","babel-preset-flow":"^6.23.0","babel-preset-stage-0":"^6.0.0",babylon:"^6.5.0",commitizen:"^2.9.6","cz-conventional-changelog":"^2.0.0",eslint:"^4.3.0","eslint-config-fb-strict":"^22.0.0","eslint-plugin-babel":"^5.0.0","eslint-plugin-flowtype":"^2.35.0","eslint-plugin-jasmine":"^2.6.2","eslint-plugin-jest":"^21.0.0","eslint-plugin-jsx-a11y":"^6.0.2","eslint-plugin-prefer-object-spread":"^1.2.1","eslint-plugin-prettier":"^2.1.2","eslint-plugin-react":"^7.1.0","eslint-plugin-relay":"^0.0.24","eslint-plugin-yarn-internal":"file:scripts/eslint-rules",execa:"^0.10.0","flow-bin":"^0.66.0","git-release-notes":"^3.0.0",gulp:"^3.9.0","gulp-babel":"^7.0.0","gulp-if":"^2.0.1","gulp-newer":"^1.0.0","gulp-plumber":"^1.0.1","gulp-sourcemaps":"^2.2.0","gulp-util":"^3.0.7","gulp-watch":"^5.0.0",jest:"^22.4.4",jsinspect:"^0.12.6",minimatch:"^3.0.4","mock-stdin":"^0.3.0",prettier:"^1.5.2",temp:"^0.8.3",webpack:"^2.1.0-beta.25",yargs:"^6.3.0"},resolutions:{sshpk:"^1.14.2"},engines:{node:">=4.0.0"},repository:"yarnpkg/yarn",bin:{yarn:"./bin/yarn.js",yarnpkg:"./bin/yarn.js"},scripts:{build:"gulp build","build-bundle":"node ./scripts/build-webpack.js","build-chocolatey":"powershell ./scripts/build-chocolatey.ps1","build-deb":"./scripts/build-deb.sh","build-dist":"bash ./scripts/build-dist.sh","build-win-installer":"scripts\\build-windows-installer.bat",changelog:"git-release-notes $(git describe --tags --abbrev=0 $(git describe --tags --abbrev=0)^)..$(git describe --tags --abbrev=0) scripts/changelog.md","dupe-check":"yarn jsinspect ./src",lint:"eslint . && flow check","pkg-tests":"yarn --cwd packages/pkg-tests jest yarn.test.js",prettier:"eslint src __tests__ --fix","release-branch":"./scripts/release-branch.sh",test:"yarn lint && yarn test-only","test-only":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --verbose","test-only-debug":"node --inspect-brk --max_old_space_size=4096 node_modules/jest/bin/jest.js --runInBand --verbose","test-coverage":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --coverage --verbose",watch:"gulp watch",commit:"git-cz"},jest:{collectCoverageFrom:["src/**/*.js"],testEnvironment:"node",modulePathIgnorePatterns:["__tests__/fixtures/","packages/pkg-tests/pkg-tests-fixtures","dist/"],testPathIgnorePatterns:["__tests__/(fixtures|__mocks__)/","updates/","_(temp|mock|install|init|helpers).js$","packages/pkg-tests"]},config:{commitizen:{path:"./node_modules/cz-conventional-changelog"}}}},,,,,function(e,t,n){var r,a,i;function o(){return r=n(12)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){const o=p(e,{indent:"",topLevel:!0});if(t)return o;const u=[];return u.push("# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."),u.push(`# yarn lockfile v${(a||(a=n(6))).LOCKFILE_VERSION}`),r&&(u.push(`# yarn v${(i||(i=n(145))).version}`),u.push(`# node ${s}`)),u.push("\n"),u.push(o),u.join("\n")};const s=process.version;function u(e){return"boolean"==typeof e||"number"==typeof e||function(e){return 0===e.indexOf("true")||0===e.indexOf("false")||/[:\s\n\\",\[\]]/g.test(e)||/^[0-9]/g.test(e)||!/^[a-zA-Z]/g.test(e)}(e)?JSON.stringify(e):e}const l={name:1,version:2,uid:3,resolved:4,integrity:5,registry:6,dependencies:7};function c(e,t){return l[e]||l[t]?(l[e]||100)>(l[t]||100)?1:-1:(0,(r||o()).sortAlpha)(e,t)}function p(e,t){if("object"!=typeof e)throw new TypeError;const n=t.indent,a=[],i=Object.keys(e).sort(c);let s=[];for(let l=0;l<i.length;l++){const c=i[l],d=e[c];if(null==d||s.indexOf(c)>=0)continue;const f=[c];if("object"==typeof d)for(let t=l+1;t<i.length;t++){const n=i[t];d===e[n]&&f.push(n)}const m=f.sort((r||o()).sortAlpha).map(u).join(", ");if("string"==typeof d||"boolean"==typeof d||"number"==typeof d)a.push(`${m} ${u(d)}`);else{if("object"!=typeof d)throw new TypeError;a.push(`${m}:\n${p(d,{indent:n+" "})}`+(t.topLevel?"\n":""))}s=s.concat(f)}return n+a.join(`\n${n}`)}},,,,,,,,,,,,,,function(e,t,n){var r;function a(){return r=p(n(1))}Object.defineProperty(t,"__esModule",{value:!0}),t.fileDatesEqual=t.copyFile=t.unlink=void 0;let i=(o=(0,(r||a()).default)((function*(e,t,n){const r=void 0===e;let a=e||-1;if(void 0===d){const e=yield h(t);d=S(e.mtime,n.mtime)}if(!d){if(r)try{a=yield g(t,"a",n.mode)}catch(e){try{a=yield g(t,"r",n.mode)}catch(e){return}}try{a&&(yield y(a,n.atime,n.mtime))}catch(e){}finally{r&&a&&(yield m(a))}}})),function(e,t,n){return o.apply(this,arguments)});var o,s,u;function l(){return s=p(n(3))}function c(){return u=n(40)}function p(e){return e&&e.__esModule?e:{default:e}}let d;const f=(0,(u||c()).promisify)((s||l()).default.readFile),m=(0,(u||c()).promisify)((s||l()).default.close),h=(0,(u||c()).promisify)((s||l()).default.lstat),g=(0,(u||c()).promisify)((s||l()).default.open),y=(0,(u||c()).promisify)((s||l()).default.futimes),v=(0,(u||c()).promisify)((s||l()).default.write),b=t.unlink=(0,(u||c()).promisify)(n(233));var w;t.copyFile=(w=(0,(r||a()).default)((function*(e,t){try{yield b(e.dest),yield _(e.src,e.dest,0,e)}finally{t&&t()}})),function(e,t){return w.apply(this,arguments)});const _=(e,t,n,r)=>(s||l()).default.copyFile?new Promise(((a,o)=>(s||l()).default.copyFile(e,t,n,(e=>{e?o(e):i(void 0,t,r).then((()=>a())).catch((e=>o(e)))})))):x(e,t,n,r),x=(k=(0,(r||a()).default)((function*(e,t,n,r){const a=yield g(t,"w",r.mode);try{const n=yield f(e);yield v(a,n,0,n.length),yield i(a,t,r)}finally{yield m(a)}})),function(e,t,n,r){return k.apply(this,arguments)});var k;const S=t.fileDatesEqual=(e,t)=>{const n=e.getTime(),r=t.getTime();if("win32"!==process.platform)return n===r;if(Math.abs(n-r)<=1)return!0;const a=Math.floor(n/1e3),i=Math.floor(r/1e3);return n-1e3*a==0||r-1e3*i==0?a===i:n===r}},,,,,function(e,t,n){function r(){return Boolean(process.env.FAKEROOTKEY)}function a(e){return 0===e}Object.defineProperty(t,"__esModule",{value:!0}),t.isFakeRoot=r,t.isRootUser=a,t.default=a("win32"!==process.platform&&process.getuid?process.getuid():null)&&!r()},,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getDataDir=function(){if("win32"===process.platform){const e=s();return null==e?i:r.join(e,"Data")}return process.env.XDG_DATA_HOME?r.join(process.env.XDG_DATA_HOME,"yarn"):i},t.getCacheDir=function(){return"win32"===process.platform?r.join(s()||r.join(a,"AppData","Local","Yarn"),"Cache"):process.env.XDG_CACHE_HOME?r.join(process.env.XDG_CACHE_HOME,"yarn"):"darwin"===process.platform?r.join(a,"Library","Caches","Yarn"):o},t.getConfigDir=function(){if("win32"===process.platform){const e=s();return null==e?i:r.join(e,"Config")}return process.env.XDG_CONFIG_HOME?r.join(process.env.XDG_CONFIG_HOME,"yarn"):i};const r=n(0),a=n(45).default,i=r.join(a,".config","yarn"),o=r.join(a,".cache","yarn");function s(){return process.env.LOCALAPPDATA?r.join(process.env.LOCALAPPDATA,"Yarn"):null}},,function(e,t,n){e.exports={default:n(179),__esModule:!0}},function(e,t,n){function r(e,t,n){e instanceof RegExp&&(e=a(e,n)),t instanceof RegExp&&(t=a(t,n));var r=i(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function a(e,t){var n=t.match(e);return n?n[0]:null}function i(e,t,n){var r,a,i,o,s,u=n.indexOf(e),l=n.indexOf(t,u+1),c=u;if(u>=0&&l>0){for(r=[],i=n.length;c>=0&&!s;)c==u?(r.push(c),u=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),l]:((a=r.pop())<i&&(i=a,o=l),l=n.indexOf(t,c+1)),c=u<l&&u>=0?u:l;r.length&&(s=[i,o])}return s}e.exports=r,r.range=i},function(e,t,n){var r=n(178),a=n(174);e.exports=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),y(function(e){return e.split("\\\\").join(i).split("\\{").join(o).split("\\}").join(s).split("\\,").join(u).split("\\.").join(l)}(e),!0).map(p)):[]};var i="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",s="\0CLOSE"+Math.random()+"\0",u="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function c(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function p(e){return e.split(i).join("\\").split(o).join("{").split(s).join("}").split(u).join(",").split(l).join(".")}function d(e){if(!e)return[""];var t=[],n=a("{","}",e);if(!n)return e.split(",");var r=n.pre,i=n.body,o=n.post,s=r.split(",");s[s.length-1]+="{"+i+"}";var u=d(o);return o.length&&(s[s.length-1]+=u.shift(),s.push.apply(s,u)),t.push.apply(t,s),t}function f(e){return"{"+e+"}"}function m(e){return/^-?0\d/.test(e)}function h(e,t){return e<=t}function g(e,t){return e>=t}function y(e,t){var n=[],i=a("{","}",e);if(!i||/\$$/.test(i.pre))return[e];var o,u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),p=u||l,v=i.body.indexOf(",")>=0;if(!p&&!v)return i.post.match(/,.*\}/)?y(e=i.pre+"{"+i.body+s+i.post):[e];if(p)o=i.body.split(/\.\./);else if(1===(o=d(i.body)).length&&1===(o=y(o[0],!1).map(f)).length)return(_=i.post.length?y(i.post,!1):[""]).map((function(e){return i.pre+o[0]+e}));var b,w=i.pre,_=i.post.length?y(i.post,!1):[""];if(p){var x=c(o[0]),k=c(o[1]),S=Math.max(o[0].length,o[1].length),E=3==o.length?Math.abs(c(o[2])):1,C=h;k<x&&(E*=-1,C=g);var D=o.some(m);b=[];for(var O=x;C(O,k);O+=E){var N;if(l)"\\"===(N=String.fromCharCode(O))&&(N="");else if(N=String(O),D){var j=S-N.length;if(j>0){var P=new Array(j+1).join("0");N=O<0?"-"+P+N.slice(1):P+N}}b.push(N)}}else b=r(o,(function(e){return y(e,!1)}));for(var T=0;T<b.length;T++)for(var A=0;A<_.length;A++){var R=w+b[T]+_[A];(!t||p||R)&&n.push(R)}return n}},function(e,t,n){e.exports=function(e){return 0===(e=arguments.length>1?Array.from(arguments).map((e=>e.trim())).filter((e=>e.length)).join("-"):e.trim()).length?"":1===e.length?e.toLowerCase():/^[a-z0-9]+$/.test(e)?e:(e!==e.toLowerCase()&&(e=function(e){let t=!1,n=!1,r=!1;for(let a=0;a<e.length;a++){const i=e[a];t&&/[a-zA-Z]/.test(i)&&i.toUpperCase()===i?(e=e.substr(0,a)+"-"+e.substr(a),t=!1,r=n,n=!0,a++):n&&r&&/[a-zA-Z]/.test(i)&&i.toLowerCase()===i?(e=e.substr(0,a-1)+"-"+e.substr(a-1),r=n,n=!1,t=!0):(t=i.toLowerCase()===i,r=n,n=i.toUpperCase()===i)}return e}(e)),e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,((e,t)=>t.toUpperCase())))}},,function(e,t){e.exports=function(e,t){for(var r=[],a=0;a<e.length;a++){var i=t(e[a],a);n(i)?r.push.apply(r,i):r.push(i)}return r};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){n(205),n(207),n(210),n(206),n(208),n(209),e.exports=n(23).Promise},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(74),a=n(110),i=n(200);e.exports=function(e){return function(t,n,o){var s,u=r(t),l=a(u.length),c=i(o,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(48),a=n(187),i=n(186),o=n(27),s=n(110),u=n(203),l={},c={};(t=e.exports=function(e,t,n,p,d){var f,m,h,g,y=d?function(){return e}:u(e),v=r(n,p,t?2:1),b=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(i(y)){for(f=s(e.length);f>b;b++)if((g=t?v(o(m=e[b])[0],m[1]):v(e[b]))===l||g===c)return g}else for(h=y.call(e);!(m=h.next()).done;)if((g=a(h,v,m.value,t))===l||g===c)return g}).BREAK=l,t.RETURN=c},function(e,t,n){e.exports=!n(33)&&!n(85)((function(){return 7!=Object.defineProperty(n(68)("div"),"a",{get:function(){return 7}}).a}))},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(35),a=n(13)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[a]===e)}},function(e,t,n){var r=n(27);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r=n(192),a=n(106),i=n(71),o={};n(31)(o,n(13)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(o,{next:a(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(13)("iterator"),a=!1;try{var i=[7][r]();i.return=function(){a=!0},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var i=[7],o=i[r]();o.next=function(){return{done:n=!0}},i[r]=function(){return o},e(i)}catch(e){}return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(11),a=n(109).set,i=r.MutationObserver||r.WebKitMutationObserver,o=r.process,s=r.Promise,u="process"==n(47)(o);e.exports=function(){var e,t,n,l=function(){var r,a;for(u&&(r=o.domain)&&r.exit();e;){a=e.fn,e=e.next;try{a()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(u)n=function(){o.nextTick(l)};else if(!i||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);n=function(){c.then(l)}}else n=function(){a.call(r,l)};else{var p=!0,d=document.createTextNode("");new i(l).observe(d,{characterData:!0}),n=function(){d.data=p=!p}}return function(r){var a={fn:r,next:void 0};t&&(t.next=a),e||(e=a,n()),t=a}}},function(e,t,n){var r=n(27),a=n(193),i=n(101),o=n(72)("IE_PROTO"),s=function(){},u="prototype",l=function(){var e,t=n(68)("iframe"),r=i.length;for(t.style.display="none",n(102).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l[u][i[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=r(e),n=new s,s[u]=null,n[o]=e):n=l(),void 0===t?n:a(n,t)}},function(e,t,n){var r=n(50),a=n(27),i=n(132);e.exports=n(33)?Object.defineProperties:function(e,t){a(e);for(var n,o=i(t),s=o.length,u=0;s>u;)r.f(e,n=o[u++],t[n]);return e}},function(e,t,n){var r=n(49),a=n(133),i=n(72)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=a(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,n){var r=n(49),a=n(74),i=n(182)(!1),o=n(72)("IE_PROTO");e.exports=function(e,t){var n,s=a(e),u=0,l=[];for(n in s)n!=o&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){var r=n(31);e.exports=function(e,t,n){for(var a in t)n&&e[a]?e[a]=t[a]:r(e,a,t[a]);return e}},function(e,t,n){e.exports=n(31)},function(e,t,n){var r=n(11),a=n(23),i=n(50),o=n(33),s=n(13)("species");e.exports=function(e){var t="function"==typeof a[e]?a[e]:r[e];o&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(73),a=n(67);e.exports=function(e){return function(t,n){var i,o,s=String(a(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(i=s.charCodeAt(u))<55296||i>56319||u+1===l||(o=s.charCodeAt(u+1))<56320||o>57343?e?s.charAt(u):i:e?s.slice(u,u+2):o-56320+(i-55296<<10)+65536}}},function(e,t,n){var r=n(73),a=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?a(e+t,0):i(e,t)}},function(e,t,n){var r=n(34);e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(11).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){var r=n(100),a=n(13)("iterator"),i=n(35);e.exports=n(23).getIteratorMethod=function(e){if(null!=e)return e[a]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(180),a=n(190),i=n(35),o=n(74);e.exports=n(103)(Array,"Array",(function(e,t){this._t=o(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,a(1)):a(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){},function(e,t,n){var r,a,i,o,s=n(69),u=n(11),l=n(48),c=n(100),p=n(41),d=n(34),f=n(46),m=n(181),h=n(183),g=n(108),y=n(109).set,v=n(191)(),b=n(70),w=n(104),_=n(202),x=n(105),k="Promise",S=u.TypeError,E=u.process,C=E&&E.versions,D=C&&C.v8||"",O=u[k],N="process"==c(E),j=function(){},P=a=b.f,T=!!function(){try{var e=O.resolve(1),t=(e.constructor={})[n(13)("species")]=function(e){e(j,j)};return(N||"function"==typeof PromiseRejectionEvent)&&e.then(j)instanceof t&&0!==D.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(e){}}(),A=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},R=function(e,t){if(!e._n){e._n=!0;var n=e._c;v((function(){for(var r=e._v,a=1==e._s,i=0,o=function(t){var n,i,o,s=a?t.ok:t.fail,u=t.resolve,l=t.reject,c=t.domain;try{s?(a||(2==e._h&&L(e),e._h=1),!0===s?n=r:(c&&c.enter(),n=s(r),c&&(c.exit(),o=!0)),n===t.promise?l(S("Promise-chain cycle")):(i=A(n))?i.call(n,u,l):u(n)):l(r)}catch(e){c&&!o&&c.exit(),l(e)}};n.length>i;)o(n[i++]);e._c=[],e._n=!1,t&&!e._h&&I(e)}))}},I=function(e){y.call(u,(function(){var t,n,r,a=e._v,i=M(e);if(i&&(t=w((function(){N?E.emit("unhandledRejection",a,e):(n=u.onunhandledrejection)?n({promise:e,reason:a}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",a)})),e._h=N||M(e)?2:1),e._a=void 0,i&&t.e)throw t.v}))},M=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(e){y.call(u,(function(){var t;N?E.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})}))},F=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),R(t,!0))},z=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw S("Promise can't be resolved itself");(t=A(e))?v((function(){var r={_w:n,_d:!1};try{t.call(e,l(z,r,1),l(F,r,1))}catch(e){F.call(r,e)}})):(n._v=e,n._s=1,R(n,!1))}catch(e){F.call({_w:n,_d:!1},e)}}};T||(O=function(e){m(this,O,k,"_h"),f(e),r.call(this);try{e(l(z,this,1),l(F,this,1))}catch(e){F.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(196)(O.prototype,{then:function(e,t){var n=P(g(this,O));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=N?E.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&R(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=l(z,e,1),this.reject=l(F,e,1)},b.f=P=function(e){return e===O||e===o?new i(e):a(e)}),p(p.G+p.W+p.F*!T,{Promise:O}),n(71)(O,k),n(198)(k),o=n(23)[k],p(p.S+p.F*!T,k,{reject:function(e){var t=P(this);return(0,t.reject)(e),t.promise}}),p(p.S+p.F*(s||!T),k,{resolve:function(e){return x(s&&this===o?O:this,e)}}),p(p.S+p.F*!(T&&n(189)((function(e){O.all(e).catch(j)}))),k,{all:function(e){var t=this,n=P(t),r=n.resolve,a=n.reject,i=w((function(){var n=[],i=0,o=1;h(e,!1,(function(e){var s=i++,u=!1;n.push(void 0),o++,t.resolve(e).then((function(e){u||(u=!0,n[s]=e,--o||r(n))}),a)})),--o||r(n)}));return i.e&&a(i.v),n.promise},race:function(e){var t=this,n=P(t),r=n.reject,a=w((function(){h(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return a.e&&r(a.v),n.promise}})},function(e,t,n){var r=n(199)(!0);n(103)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(41),a=n(23),i=n(11),o=n(108),s=n(105);r(r.P+r.R,"Promise",{finally:function(e){var t=o(this,a.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},function(e,t,n){var r=n(41),a=n(70),i=n(104);r(r.S,"Promise",{try:function(e){var t=a.f(this),n=i(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){n(204);for(var r=n(11),a=n(31),i=n(35),o=n(13)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var l=s[u],c=r[l],p=c&&c.prototype;p&&!p[o]&&a(p,o,l),i[l]=i.Array}},function(e,t,n){function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=n(112)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var a=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(a++,"%c"===e&&(i=a))})),e.splice(i,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},function(e,t,n){"undefined"==typeof process||"renderer"===process.type?e.exports=n(211):e.exports=n(213)},function(e,t,n){var r=n(79),a=n(2);(t=e.exports=n(112)).init=function(e){e.inspectOpts={};for(var n=Object.keys(t.inspectOpts),r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(){return process.stderr.write(a.format.apply(a,arguments)+"\n")},t.formatArgs=function(e){var n=this.namespace,r=this.useColors;if(r){var a=this.color,i="[3"+(a<8?a:"8;5;"+a),o=" "+i+";1m"+n+" [0m";e[0]=o+e[0].split("\n").join("\n"+o),e.push(i+"m+"+t.humanize(this.diff)+"[0m")}else e[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+n+" "+e[0]},t.save=function(e){null==e?delete process.env.DEBUG:process.env.DEBUG=e},t.load=o,t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)},t.colors=[6,2,3,4,5,1];try{var i=n(239);i&&i.level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}function o(){return process.env.DEBUG}t.inspectOpts=Object.keys(process.env).filter((function(e){return/^debug_/i.test(e)})).reduce((function(e,t){var n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(function(e,t){return t.toUpperCase()})),r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e}),{}),t.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split("\n").map((function(e){return e.trim()})).join(" ")},t.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)},t.enable(o())},,,,function(e,t,n){var r=n(0),a="win32"===process.platform,i=n(3),o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function s(e){return"function"==typeof e?e:function(){var e;if(o){var t=new Error;e=function(e){e&&(t.message=e.message,n(e=t))}}else e=n;return e;function n(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}()}if(r.normalize,a)var u=/(.*?)(?:[\/\\]+|$)/g;else u=/(.*?)(?:[\/]+|$)/g;if(a)var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else l=/^[\/]*/;t.realpathSync=function(e,t){if(e=r.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var n,o,s,c,p=e,d={},f={};function m(){var t=l.exec(e);n=t[0].length,o=t[0],s=t[0],c="",a&&!f[s]&&(i.lstatSync(s),f[s]=!0)}for(m();n<e.length;){u.lastIndex=n;var h=u.exec(e);if(c=o,o+=h[0],s=c+h[1],n=u.lastIndex,!(f[s]||t&&t[s]===s)){var g;if(t&&Object.prototype.hasOwnProperty.call(t,s))g=t[s];else{var y=i.lstatSync(s);if(!y.isSymbolicLink()){f[s]=!0,t&&(t[s]=s);continue}var v=null;if(!a){var b=y.dev.toString(32)+":"+y.ino.toString(32);d.hasOwnProperty(b)&&(v=d[b])}null===v&&(i.statSync(s),v=i.readlinkSync(s)),g=r.resolve(c,v),t&&(t[s]=g),a||(d[b]=v)}e=r.resolve(g,e.slice(n)),m()}}return t&&(t[p]=e),e},t.realpath=function(e,t,n){if("function"!=typeof n&&(n=s(t),t=null),e=r.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return process.nextTick(n.bind(null,null,t[e]));var o,c,p,d,f=e,m={},h={};function g(){var t=l.exec(e);o=t[0].length,c=t[0],p=t[0],d="",a&&!h[p]?i.lstat(p,(function(e){if(e)return n(e);h[p]=!0,y()})):process.nextTick(y)}function y(){if(o>=e.length)return t&&(t[f]=e),n(null,e);u.lastIndex=o;var r=u.exec(e);return d=c,c+=r[0],p=d+r[1],o=u.lastIndex,h[p]||t&&t[p]===p?process.nextTick(y):t&&Object.prototype.hasOwnProperty.call(t,p)?w(t[p]):i.lstat(p,v)}function v(e,r){if(e)return n(e);if(!r.isSymbolicLink())return h[p]=!0,t&&(t[p]=p),process.nextTick(y);if(!a){var o=r.dev.toString(32)+":"+r.ino.toString(32);if(m.hasOwnProperty(o))return b(null,m[o],p)}i.stat(p,(function(e){if(e)return n(e);i.readlink(p,(function(e,t){a||(m[o]=t),b(e,t)}))}))}function b(e,a,i){if(e)return n(e);var o=r.resolve(d,a);t&&(t[i]=o),w(o)}function w(t){e=r.resolve(t,e.slice(o)),g()}g()}},function(e,t,n){e.exports=m,m.GlobSync=h;var r=n(3),a=n(114),i=n(60);i.Minimatch,n(75).Glob,n(2);var o=n(0),s=n(22),u=n(76),l=n(115);l.alphasort,l.alphasorti;var c=l.setopts,p=l.ownProp,d=l.childrenIgnored,f=l.isIgnored;function m(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new h(e,t).found}function h(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof h))return new h(e,t);if(c(this,e,t),this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var r=0;r<n;r++)this._process(this.minimatch.set[r],r,!1);this._finish()}h.prototype._finish=function(){if(s(this instanceof h),this.realpath){var e=this;this.matches.forEach((function(t,n){var r=e.matches[n]=Object.create(null);for(var i in t)try{i=e._makeAbs(i),r[a.realpathSync(i,e.realpathCache)]=!0}catch(t){if("stat"!==t.syscall)throw t;r[e._makeAbs(i)]=!0}}))}l.finish(this)},h.prototype._process=function(e,t,n){s(this instanceof h);for(var r,a=0;"string"==typeof e[a];)a++;switch(a){case e.length:return void this._processSimple(e.join("/"),t);case 0:r=null;break;default:r=e.slice(0,a).join("/")}var o,l=e.slice(a);null===r?o=".":u(r)||u(e.join("/"))?(r&&u(r)||(r="/"+r),o=r):o=r;var c=this._makeAbs(o);d(this,o)||(l[0]===i.GLOBSTAR?this._processGlobStar(r,o,c,l,t,n):this._processReaddir(r,o,c,l,t,n))},h.prototype._processReaddir=function(e,t,n,r,a,i){var s=this._readdir(n,i);if(s){for(var u=r[0],l=!!this.minimatch.negate,c=u._glob,p=this.dot||"."===c.charAt(0),d=[],f=0;f<s.length;f++)("."!==(g=s[f]).charAt(0)||p)&&(l&&!e?!g.match(u):g.match(u))&&d.push(g);var m=d.length;if(0!==m)if(1!==r.length||this.mark||this.stat)for(r.shift(),f=0;f<m;f++){var h;g=d[f],h=e?[e,g]:[g],this._process(h.concat(r),a,i)}else{this.matches[a]||(this.matches[a]=Object.create(null));for(var f=0;f<m;f++){var g=d[f];e&&(g="/"!==e.slice(-1)?e+"/"+g:e+g),"/"!==g.charAt(0)||this.nomount||(g=o.join(this.root,g)),this._emitMatch(a,g)}}}},h.prototype._emitMatch=function(e,t){if(!f(this,t)){var n=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=n),!this.matches[e][t]){if(this.nodir){var r=this.cache[n];if("DIR"===r||Array.isArray(r))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}},h.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,n;try{n=r.lstatSync(e)}catch(e){if("ENOENT"===e.code)return null}var a=n&&n.isSymbolicLink();return this.symlinks[e]=a,a||!n||n.isDirectory()?t=this._readdir(e,!1):this.cache[e]="FILE",t},h.prototype._readdir=function(e,t){if(t&&!p(this.symlinks,e))return this._readdirInGlobStar(e);if(p(this.cache,e)){var n=this.cache[e];if(!n||"FILE"===n)return null;if(Array.isArray(n))return n}try{return this._readdirEntries(e,r.readdirSync(e))}catch(t){return this._readdirError(e,t),null}},h.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var r=t[n];r="/"===e?e+r:e+"/"+r,this.cache[r]=!0}return this.cache[e]=t,t},h.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var r=new Error(t.code+" invalid cwd "+this.cwd);throw r.path=this.cwd,r.code=t.code,r}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t)}},h.prototype._processGlobStar=function(e,t,n,r,a,i){var o=this._readdir(n,i);if(o){var s=r.slice(1),u=e?[e]:[],l=u.concat(s);this._process(l,a,!1);var c=o.length;if(!this.symlinks[n]||!i)for(var p=0;p<c;p++)if("."!==o[p].charAt(0)||this.dot){var d=u.concat(o[p],s);this._process(d,a,!0);var f=u.concat(o[p],r);this._process(f,a,!0)}}},h.prototype._processSimple=function(e,t){var n=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),n){if(e&&u(e)&&!this.nomount){var r=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=o.join(this.root,e):(e=o.resolve(this.root,e),r&&(e+="/"))}"win32"===process.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}},h.prototype._stat=function(e){var t=this._makeAbs(e),n="/"===e.slice(-1);if(e.length>this.maxLength)return!1;if(!this.stat&&p(this.cache,t)){var a=this.cache[t];if(Array.isArray(a)&&(a="DIR"),!n||"DIR"===a)return a;if(n&&"FILE"===a)return!1}var i=this.statCache[t];if(!i){var o;try{o=r.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(o&&o.isSymbolicLink())try{i=r.statSync(t)}catch(e){i=o}else i=o}return this.statCache[t]=i,a=!0,i&&(a=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||a,(!n||"FILE"!==a)&&a},h.prototype._mark=function(e){return l.mark(this,e)},h.prototype._makeAbs=function(e){return l.makeAbs(this,e)}},,,function(e,t,n){e.exports=function(e,t){var n=(t=t||process.argv).indexOf("--"),r=/^--/.test(e)?"":"--",a=t.indexOf(r+e);return-1!==a&&(-1===n||a<n)}},,function(e,t,n){var r=n(123),a=Object.create(null),i=n(61);e.exports=r((function(e,t){return a[e]?(a[e].push(t),null):(a[e]=[t],function(e){return i((function t(){var n=a[e],r=n.length,i=function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r]=e[r];return n}(arguments);try{for(var o=0;o<r;o++)n[o].apply(null,i)}finally{n.length>r?(n.splice(0,r),process.nextTick((function(){t.apply(null,i)}))):delete a[e]}}))}(e))}))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},,,function(e,t,n){e.exports=void 0!==n},,function(e,t){var n=1e3,r=60*n,a=60*r,i=24*a,o=365.25*i;function s(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,t){t=t||{};var u,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*o;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*a;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===l&&!1===isNaN(e))return t.long?s(u=e,i,"day")||s(u,a,"hour")||s(u,r,"minute")||s(u,n,"second")||u+" ms":function(e){return e>=i?Math.round(e/i)+"d":e>=a?Math.round(e/a)+"h":e>=r?Math.round(e/r)+"m":e>=n?Math.round(e/n)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},,,,function(e,t,n){e.exports=d,d.sync=y;var r=n(22),a=n(0),i=n(3),o=n(75),s=parseInt("666",8),u={nosort:!0,silent:!0},l=0,c="win32"===process.platform;function p(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach((function(t){e[t]=e[t]||i[t],e[t+="Sync"]=e[t]||i[t]})),e.maxBusyTries=e.maxBusyTries||3,e.emfileWait=e.emfileWait||1e3,!1===e.glob&&(e.disableGlob=!0),e.disableGlob=e.disableGlob||!1,e.glob=e.glob||u}function d(e,t,n){"function"==typeof t&&(n=t,t={}),r(e,"rimraf: missing path"),r.equal(typeof e,"string","rimraf: path should be a string"),r.equal(typeof n,"function","rimraf: callback function required"),r(t,"rimraf: invalid options argument provided"),r.equal(typeof t,"object","rimraf: options should be object"),p(t);var a=0,i=null,s=0;if(t.disableGlob||!o.hasMagic(e))return u(null,[e]);function u(e,r){return e?n(e):0===(s=r.length)?n():void r.forEach((function(e){f(e,t,(function r(o){if(o){if(("EBUSY"===o.code||"ENOTEMPTY"===o.code||"EPERM"===o.code)&&a<t.maxBusyTries)return a++,setTimeout((function(){f(e,t,r)}),100*a);if("EMFILE"===o.code&&l<t.emfileWait)return setTimeout((function(){f(e,t,r)}),l++);"ENOENT"===o.code&&(o=null)}l=0,function(e){i=i||e,0==--s&&n(i)}(o)}))}))}t.lstat(e,(function(n,r){if(!n)return u(null,[e]);o(e,t.glob,u)}))}function f(e,t,n){r(e),r(t),r("function"==typeof n),t.lstat(e,(function(r,a){return r&&"ENOENT"===r.code?n(null):(r&&"EPERM"===r.code&&c&&m(e,t,r,n),a&&a.isDirectory()?g(e,t,r,n):void t.unlink(e,(function(r){if(r){if("ENOENT"===r.code)return n(null);if("EPERM"===r.code)return c?m(e,t,r,n):g(e,t,r,n);if("EISDIR"===r.code)return g(e,t,r,n)}return n(r)})))}))}function m(e,t,n,a){r(e),r(t),r("function"==typeof a),n&&r(n instanceof Error),t.chmod(e,s,(function(r){r?a("ENOENT"===r.code?null:n):t.stat(e,(function(r,i){r?a("ENOENT"===r.code?null:n):i.isDirectory()?g(e,t,n,a):t.unlink(e,a)}))}))}function h(e,t,n){r(e),r(t),n&&r(n instanceof Error);try{t.chmodSync(e,s)}catch(e){if("ENOENT"===e.code)return;throw n}try{var a=t.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw n}a.isDirectory()?v(e,t,n):t.unlinkSync(e)}function g(e,t,n,i){r(e),r(t),n&&r(n instanceof Error),r("function"==typeof i),t.rmdir(e,(function(o){!o||"ENOTEMPTY"!==o.code&&"EEXIST"!==o.code&&"EPERM"!==o.code?o&&"ENOTDIR"===o.code?i(n):i(o):function(e,t,n){r(e),r(t),r("function"==typeof n),t.readdir(e,(function(r,i){if(r)return n(r);var o,s=i.length;if(0===s)return t.rmdir(e,n);i.forEach((function(r){d(a.join(e,r),t,(function(r){if(!o)return r?n(o=r):void(0==--s&&t.rmdir(e,n))}))}))}))}(e,t,i)}))}function y(e,t){var n;if(p(t=t||{}),r(e,"rimraf: missing path"),r.equal(typeof e,"string","rimraf: path should be a string"),r(t,"rimraf: missing options"),r.equal(typeof t,"object","rimraf: options should be object"),t.disableGlob||!o.hasMagic(e))n=[e];else try{t.lstatSync(e),n=[e]}catch(r){n=o.sync(e,t.glob)}if(n.length)for(var a=0;a<n.length;a++){e=n[a];try{var i=t.lstatSync(e)}catch(n){if("ENOENT"===n.code)return;"EPERM"===n.code&&c&&h(e,t,n)}try{i&&i.isDirectory()?v(e,t,null):t.unlinkSync(e)}catch(n){if("ENOENT"===n.code)return;if("EPERM"===n.code)return c?h(e,t,n):v(e,t,n);if("EISDIR"!==n.code)throw n;v(e,t,n)}}}function v(e,t,n){r(e),r(t),n&&r(n instanceof Error);try{t.rmdirSync(e)}catch(i){if("ENOENT"===i.code)return;if("ENOTDIR"===i.code)throw n;"ENOTEMPTY"!==i.code&&"EEXIST"!==i.code&&"EPERM"!==i.code||function(e,t){r(e),r(t),t.readdirSync(e).forEach((function(n){y(a.join(e,n),t)}));for(var n=c?100:1,i=0;;){var o=!0;try{var s=t.rmdirSync(e,t);return o=!1,s}finally{if(++i<n&&o)continue}}}(e,t)}}},,,,,,function(e,t,n){var r,a=n(221),i=a("no-color")||a("no-colors")||a("color=false")?0:a("color=16m")||a("color=full")||a("color=truecolor")?3:a("color=256")?2:a("color")||a("colors")||a("color=true")||a("color=always")?1:process.stdout&&!process.stdout.isTTY?0:"win32"===process.platform?1:"CI"in process.env?"TRAVIS"in process.env||"Travis"===process.env.CI?1:0:"TEAMCITY_VERSION"in process.env?null===process.env.TEAMCITY_VERSION.match(/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/)?0:1:/^(screen|xterm)-256(?:color)?/.test(process.env.TERM)?2:/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)||"COLORTERM"in process.env?1:(process.env.TERM,0);0===i&&"FORCE_COLOR"in process.env&&(i=1),e.exports=process&&0!==(r=i)&&{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}])),MR.exports}var FR={};Object.defineProperty(FR,"__esModule",{value:!0}),FR.queryLockFile=void 0;const zR=OR;FR.queryLockFile=function(e,t,n){const r=(0,zR.nameAtVersion)(e,t);return n.object[r]};var BR={};Object.defineProperty(BR,"__esModule",{value:!0}),function(e){var t=oe&&oe.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=oe&&oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=oe&&oe.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&t(r,e,a);return n(r,e),r},a=oe&&oe.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)},i=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.queryLockFile=e.nameAtVersion=e.parseLockFile=void 0;const o=i(R.default),s=i(A.default),u=OR;Object.defineProperty(e,"nameAtVersion",{enumerable:!0,get:function(){return u.nameAtVersion}});const l=uR(),c=NR,p=PR,d=xP,f=AR,m={};e.parseLockFile=async function(e){const t=(0,l.searchUp)(["yarn.lock","common/config/rush/yarn.lock"],e);if(t){if(m[t])return m[t];const e=o.default.readFileSync(t,"utf-8");let n={type:"success",object:{}};if(e.includes("__metadata")||o.default.existsSync(s.default.resolve(e.replace("yarn.lock",".yarnrc.yml")))){const e=(0,d.readYaml)(t);n=(0,f.parseBerryLock)(e)}else{n=(0,(await Promise.resolve().then((()=>r(LR())))).parse)(e)}return m[t]=n,n}let n=(0,l.searchUp)(["pnpm-lock.yaml","common/config/rush/pnpm-lock.yaml"],e);if(n){if(m[n])return m[n];const e=(0,d.readYaml)(n),t=(0,c.parsePnpmLock)(e);return m[n]=t,m[n]}let a=(0,l.searchUp)("package-lock.json",e);if(a){if(m[a])return m[a];let e;try{e=o.default.readFileSync(a,"utf-8")}catch{throw new Error("Couldn’t parse package-lock.json.")}const t=JSON.parse(e.toString());if(!(null==t?void 0:t.lockfileVersion)||t.lockfileVersion<2)throw new Error(`Your package-lock.json version is not supported: lockfileVersion is ${t.lockfileVersion}. You need npm version 7 or above and package-lock version 2 or above. Please, upgrade npm or choose a different package manager.`);return m[a]=(0,p.parseNpmLock)(t),m[a]}throw new Error("You do not have yarn.lock, pnpm-lock.yaml or package-lock.json. Please use one of these package managers.")};var h=FR;Object.defineProperty(e,"queryLockFile",{enumerable:!0,get:function(){return h.queryLockFile}}),a(BR,e)}(DR);var UR={},qR=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(UR,"__esModule",{value:!0}),UR.getScopedPackages=void 0;const $R=qR(nx);UR.getScopedPackages=function(e,t){const n=Array.isArray(t)?t:Object.keys(t),r=new Set,a=e.filter((e=>e.startsWith("@")||e.startsWith("!@")));if(a.length>0){const e=(0,$R.default)(n,a);for(const t of e)r.add(t)}const i=e.filter((e=>!e.startsWith("@")&&!e.startsWith("!@")));if(i.length>0){const e=function(e){const t={};for(const n of e){const e=n.replace(/^@[^/]+\//,"");t[e]=t[e]||[],t[e].push(n)}return t}(n);let t=(0,$R.default)(Object.keys(e),i);for(const n of t)for(const t of e[n])r.add(t)}return[...r]};var VR={};Object.defineProperty(VR,"__esModule",{value:!0});var HR={};Object.defineProperty(HR,"__esModule",{value:!0});var WR={};Object.defineProperty(WR,"__esModule",{value:!0});var GR={};Object.defineProperty(GR,"__esModule",{value:!0}),GR.findWorkspacePath=void 0,GR.findWorkspacePath=function(e,t){const n=e.find((({name:e})=>e===t));if(n)return n.path};var KR={},YR={},QR=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(YR,"__esModule",{value:!0}),YR.getPackagesByFiles=void 0;const XR=QR(nx),JR=QR(A.default),ZR=Xj;YR.getPackagesByFiles=function(e,t,n=[],r=!1){const a=(0,ZR.getWorkspaces)(e),i=new Set((0,XR.default)(t,n));t=t.filter((e=>!i.has(e)));const o=new Set;for(const n of t){const t=a.filter((t=>0===n.indexOf(JR.default.relative(e,t.path).replace(/\\/g,"/"))));if(t&&t.length>0){const e=t.reduce(((e,t)=>e.path.length>t.path.length?e:t),t[0]);o.add(e.name)}else if(r)return a.map((e=>e.name))}return[...o]},Object.defineProperty(KR,"__esModule",{value:!0}),KR.getChangedPackages=KR.getChangedPackagesBetweenRefs=void 0;const eI=sR(),tI=YR;KR.getChangedPackagesBetweenRefs=function(e,t,n="",r=[]){let a=[...new Set([...(0,eI.getUntrackedChanges)(e)||[],...(0,eI.getUnstagedChanges)(e)||[],...(0,eI.getChangesBetweenRefs)(t,n,[],"",e)||[],...(0,eI.getStagedChanges)(e)||[]])];return(0,tI.getPackagesByFiles)(e,a,r,!0)},KR.getChangedPackages=function(e,t,n=[]){const r=t||(0,eI.getDefaultRemoteBranch)({cwd:e});let a=[...new Set([...(0,eI.getUntrackedChanges)(e)||[],...(0,eI.getUnstagedChanges)(e)||[],...(0,eI.getBranchChanges)(r,e)||[],...(0,eI.getStagedChanges)(e)||[]])];return(0,tI.getPackagesByFiles)(e,a,n,!0)};var nI={};Object.defineProperty(nI,"__esModule",{value:!0}),nI.listOfWorkspacePackageNames=void 0,nI.listOfWorkspacePackageNames=function(e){return e.map((({name:e})=>e))},function(e){var t=oe&&oe.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=oe&&oe.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(qj,e),n(Kj,e),n(sR(),e),n(bR,e),n(DR,e),n(uR(),e),n(UR,e),n(VR,e),n(HR,e),n(WR,e),n(GR,e),n(Xj,e),n(yA(),e),n(UT(),e),n(lA(),e),n(hP(),e),n(KR,e),n(YR,e),n(nI,e),n(Qj,e)}(Uj);var rI={},aI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{filterInternalDependencies:()=>n,resolveInternalDependencies:()=>r});const t=Uj;function n(e,n){const r=(0,t.listOfWorkspacePackageNames)(n);return Object.keys(e).filter((e=>r.indexOf(e)>=0))}function r(e,t){return n(e,t)}}(aI);var iI={},oI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{hashStrings:()=>i,getPackageRoot:()=>o,nameAtVersion:()=>s});const t=a(A.default),n=a(q.default),r=a(St.exports);function a(e){return e&&e.__esModule?e:{default:e}}function i(e){const t=n.default.createHash("sha1"),r=[..."string"==typeof e?[e]:e];return r.sort(((e,t)=>e.localeCompare(t))),r.forEach((e=>t.update(e))),t.digest("hex")}async function o(e){const n=await(0,r.default)("package.json",{cwd:e});if(!n)throw new Error(`Could not find package.json inside ${e}.`);return t.default.dirname(n)}function s(e,t){return`${e}@${t}`}}(oI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{filterExternalDependencies:()=>r,addToQueue:()=>a,resolveExternalDependencies:()=>i});const t=Uj,n=oI;function r(e,n){const r=(0,t.listOfWorkspacePackageNames)(n),a={};return Object.entries(e).forEach((([e,t])=>{r.indexOf(e)<0&&(a[e]=t)})),a}function a(e,t,r){e&&Object.entries(e).forEach((([e,a])=>{const i=(0,n.nameAtVersion)(e,a);(function(e,t){return e.indexOf(t)>=0})(t,i)||function(e,t){return Boolean(e.find((([e,r])=>(0,n.nameAtVersion)(e,r)===t)))}(r,i)||r.push([e,a])}))}function i(e,i,o){const s=r(e,i),u=[],l=[],c=Object.entries(s);for(;c.length>0;){const e=c.shift();if(!e)continue;const[r,i]=e;l.push((0,n.nameAtVersion)(r,i));const s=(0,t.queryLockFile)(r,i,o);if(s){const{version:e,dependencies:t}=s;a(t,l,c),u.push((0,n.nameAtVersion)(r,e))}else u.push((0,n.nameAtVersion)(r,i))}return u}}(iI);var sI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"generateHashOfFiles",{enumerable:!0,get:()=>i});const t=a(A.default),n=oI;function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}return a.default=e,n&&n.set(e,a),a}async function i(e,r){const{repoHashes:a,root:i,packageHashes:o}=r,s=[],u=t.default.relative(i,e).replace(/\\/g,"/");if(o[u]){for(const e of o[u])s.push(e[0],e[1]);return(0,n.hashStrings)(s)}{const r=t.default.normalize(e)+t.sep,o=Object.keys(a).filter((e=>t.default.join(i,e).includes(r)));o.sort(((e,t)=>e.localeCompare(t)));const s=[];for(const e of o)s.push(e,a[e]);return(0,n.hashStrings)(s)}}}(sI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{generateHashOfInternalPackages:()=>l,getPackageHash:()=>p});const t=u(q.default),n=u(A.default),r=u(R.default),a=aI,i=iI,o=sI,s=oI;function u(e){return e&&e.__esModule?e:{default:e}}function l(e){e.sort(((e,t)=>e.name.localeCompare(t.name)));const n=t.default.createHash("sha1");return e.forEach((e=>{n.update(e.name),n.update(e.filesHash),n.update(e.dependenciesHash)})),n.digest("hex")}const c={};async function p(e,t){const{workspaceInfo:u,parsedLock:l}=t,p=n.default.resolve(e);if(c[p])return c[p];const{name:d,dependencies:f,devDependencies:m}=JSON.parse(r.default.readFileSync(n.default.join(e,"package.json"),"utf-8")),h={...f,...m},g=(0,a.resolveInternalDependencies)(h,u),y=(0,i.resolveExternalDependencies)(h,u,l),v=[...g,...y],b={name:d,filesHash:await(0,o.generateHashOfFiles)(e,t),dependenciesHash:(0,s.hashStrings)(v),internalDependencies:g};return c[p]=b,b}}(rI);var uI={},lI={},cI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{parseGitLsTree:()=>a,parseGitDiffIndex:()=>i,parseGitStatus:()=>o,getRepoRoot:()=>u,applyWorkingTreeState:()=>l,getRepoState:()=>c,getRepoChanges:()=>p,ensureGitMinimumVersion:()=>d,parseGitVersion:()=>f});const t=n(ID.exports);function n(e){return e&&e.__esModule?e:{default:e}}const r={major:2,minor:20,patch:0};function a(e){const t=new Map;let n=0,r=e.indexOf("\0",n);for(;r>=0;){const a=e.slice(n,r),i=a.indexOf("\t"),o=a.slice(i+1),s=a.slice(i-40,i);t.set(o,s),n=r+1,r=e.indexOf("\0",n)}return t}function i(e){const t=new Map;let n=0,r=e.indexOf("\0",n);for(;r>=0;){const a=e.slice(n,r),i=a.slice(-1);n=r+1,r=e.indexOf("\0",n);const o=e.slice(n,r),s=a.slice(8,14),u=a.slice(-83,-43),l=a.slice(-42,-2);t.set(o,{mode:s,oldhash:u,newhash:l,status:i}),n=r+1,r=e.indexOf("\0",n)}return t}function o(e){const t=new Map;let n=0,r=e.indexOf("\0",n);for(;r>=0;){const a=e.charAt(n+1),i="D"===a||" "===a&&"D"===e.charAt(n),o=e.slice(n+3,r);t.set(o,!i),n=r+1,r=e.indexOf("\0",n)}return t}const s=new Map;function u(e,n){let r=s.get(e);if(!r){const a=t.default.sync(n||"git",["--no-optional-locks","rev-parse","--show-toplevel"],{cwd:e});if(0!==a.exitCode)throw d(n),new Error(`git rev-parse exited with status ${a.exitCode}: ${a.stderr}`);s.set(e,r=a.stdout.trim())}return r}function l(e,n,r){const a=t.default.sync(r||"git",["--no-optional-locks","status","-z","-u","--no-renames","--"],{cwd:e});if(0!==a.exitCode)throw d(r),new Error(`git status exited with status ${a.exitCode}: ${a.stderr}`);const i=o(a.stdout),s=[];for(const[e,t]of i)t?s.push(e):n.delete(e);if(s.length){const a=t.default.sync(r||"git",["hash-object","--stdin-paths"],{cwd:e,input:s.join("\n")});if(0!==a.exitCode)throw d(r),new Error(`git hash-object exited with status ${a.exitCode}: ${a.stderr}`);const i=a.stdout.trim().split("\n");if(i.length!==s.length)throw new Error(`Passed ${s.length} file paths to Git to hash, but received ${i.length} hashes.`);const o=i.length;for(let e=0;e<o;e++){const t=i[e],r=s[e];n.set(r,t)}}}function c(e,n){const r=u(e,n),i=t.default.sync(n||"git",["--no-optional-locks","ls-tree","-r","-z","--full-name","HEAD","--"],{cwd:r});if(0!==i.exitCode)throw d(n),new Error(`git ls-tree exited with status ${i.exitCode}: ${i.stderr}`);const o=a(i.stdout);return l(r,o,n),o}function p(e,n="HEAD",r){const a=u(e,r),o=t.default.sync(r||"git",["--no-optional-locks","diff-index","--color=never","--no-renames","--no-commit-id","--cached","-z",n,"--"],{cwd:a});if(0!==o.exitCode)throw d(r),new Error(`git diff-index exited with status ${o.exitCode}: ${o.stderr}`);return i(o.stdout)}function d(e){const n=function(e){const n=t.default.sync(e||"git",["version"]);if(0!==n.exitCode)throw new Error(`While validating the Git installation, the "git version" command failed with status ${n.exitCode}: ${n.stderr}`);return f(n.stdout)}(e);if(n.major<r.major||n.major===r.major&&n.minor<r.minor||n.major===r.major&&n.minor===r.minor&&n.patch<r.patch)throw new Error(`The minimum Git version required is ${r.major}.${r.minor}.${r.patch}. Your version is ${n.major}.${n.minor}.${n.patch}.`)}function f(e){const t=/^git version (\d+)\.(\d+)\.(\d+)/.exec(e);if(!t)throw new Error(`While validating the Git installation, the "git version" command produced unexpected output: "${e}"`);return{major:parseInt(t[1],10),minor:parseInt(t[2],10),patch:parseInt(t[3],10)}}}(cI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{parseGitFilename:()=>s,parseGitLsTree:()=>u,parseGitStatus:()=>l,getGitHashForFiles:()=>c,gitLsTree:()=>p,gitStatus:()=>d,getPackageDeps:()=>f});const t=o(A.default),n=cI,r=a(ID.exports);function a(e){return e&&e.__esModule?e:{default:e}}function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function s(e){return e.match(/^".+"$/)?(e=(e=e.replace(/%/g,"%25")).replace(/(?:\\(\d{1,3}))/g,((e,...[t,n,r])=>{const a=r.slice(0,n).match(/\\*$/);return a&&a.length>0&&a[0].length%2==0?`%${parseInt(t,8).toString(16)}`:e})),JSON.parse(decodeURIComponent(e))):e}function u(e){const t=new Map;if(e){const n=/([0-9]{6})\s(blob|commit)\s([a-f0-9]{40})\s*(.*)/,r=e.trim().split("\n");for(const e of r)if(e){const r=e.match(n);if(!(r&&r[3]&&r[4]))throw new Error(`Cannot parse git ls-tree input: "${e}"`);{const e=r[3],n=s(r[4]);t.set(n,e)}}}return t}function l(e){const t=new Map;if(!e)return t;const n=e.trim().split("\n");for(const e of n){const n=e.match(/("(\\"|[^"])+")|(\S+\s*)/g);if(n&&n.length>1){const[e,...r]=n;let a=e.startsWith("R")?r[r.length-1]:r.join("");a=s(a),t.set(a,e.trimRight())}}return t}function c(e,a,i){const o=new Map;if(e.length){const s=r.default.sync(i||"git",["hash-object","--stdin-paths"],{input:e.map((e=>t.resolve(a,e))).join("\n")});if(0!==s.exitCode)throw(0,n.ensureGitMinimumVersion)(i),new Error(`git hash-object exited with status ${s.exitCode}: ${s.stderr}`);const u=s.stdout.trim().split("\n");if(u.length!==e.length)throw new Error(`Passed ${e.length} file paths to Git to hash, but received ${u.length} hashes.`);for(let t=0;t<u.length;t++){const n=u[t],r=e[t];o.set(r,n)}}return o}function p(e,t){const a=r.default.sync(t||"git",["ls-tree","HEAD","-r"],{cwd:e});if(0!==a.exitCode)throw(0,n.ensureGitMinimumVersion)(t),new Error(`git ls-tree exited with status ${a.exitCode}: ${a.stderr}`);return a.stdout}function d(e,t){const a=r.default.sync(t||"git",["status","-s","-u","."],{cwd:e});if(0!==a.exitCode)throw(0,n.ensureGitMinimumVersion)(t),new Error(`git status exited with status ${a.exitCode}: ${a.stderr}`);return a.stdout}function f(e=process.cwd(),t,n){const r=u(p(e,n));if(t)for(const e of t)r.delete(e);const a=l(d(e,n)),i=[],o=new Set(t);for(const[e,t]of a)"D"===t||2===t.length&&"D"===t.charAt(1)?r.delete(e):o.has(e)||i.push(e);const s=c(i,e,n);for(const[e,t]of s)r.set(e,t);return r}}(lI);var pI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createPackageHashes",{enumerable:!0,get:()=>r});const t=n(A.default);function n(e){return e&&e.__esModule?e:{default:e}}function r(e,n,r){const a={};for(const r of n){const n=t.default.relative(e,r.path).split(/[\\/]/);let i=a;for(const e of n)i[e]=i[e]||{},i=i[e]}const i={};for(const[e,t]of Object.entries(r)){const n=e.split(/[\\/]/);let r=a;const o=[];for(const e of n){if(!r[e])break;r=r[e],o.push(e)}const s=o.join("/");i[s]=i[s]||[],i[s].push([e,t])}return i}}(pI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{getRepoInfoNoCache:()=>i,getRepoInfo:()=>s});const t=Uj,n=lI,r=pI,a=[];async function i(e){const i=(0,t.getWorkspaceRoot)(e);if(!i)throw new Error("Cannot initialize Repo class without a workspace root");const o=Object.fromEntries((0,n.getPackageDeps)(i)),s=Object.keys(o).sort(((e,t)=>e.localeCompare(t))).reduce(((e,t)=>(e[t]=o[t],e)),{}),u=(0,t.getWorkspaces)(i),l={root:i,workspaceInfo:u,parsedLock:await(0,t.parseLockFile)(i),repoHashes:s,packageHashes:(0,r.createPackageHashes)(i,u,s)};return a.push(l),l}let o=Promise.resolve();async function s(e){return o=o.then((async()=>{const t=function(e){for(const t of a)if(t.workspaceInfo&&e.startsWith(t.root))return t}(e);return t||i(e)})),o}}(uI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{addToQueue:()=>s,Hasher:()=>u});const t=Uj,n=rI,r=oI,a=(i=uI,o=e,Object.keys(i).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(o,e)||Object.defineProperty(o,e,{enumerable:!0,get:function(){return i[e]}})})),i);var i,o;function s(e,n,r,a){e.forEach((e=>{const i=(0,t.findWorkspacePath)(a,e);i&&(function(e,t){return Boolean(e.find((({name:e})=>e===t)))}(r,e)||function(e,t){return e.indexOf(t)>=0}(n,i)||n.push(i))}))}class u{async createPackageHash(e){const t=await(0,r.getPackageRoot)(this.packageRoot);this.repoInfo=await(0,a.getRepoInfo)(t);const{workspaceInfo:i}=this.repoInfo,o=[t],u=[];for(;o.length>0;){const e=o.shift();if(!e)continue;const t=await(0,n.getPackageHash)(e,this.repoInfo);s(t.internalDependencies,o,u,i),u.push(t)}const l=(0,n.generateHashOfInternalPackages)(u),c=(0,r.hashStrings)(e);return(0,r.hashStrings)([l,c])}constructor(e){this.packageRoot=e}}}(Bj);var dI={},fI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"hashStrings",{enumerable:!0,get:()=>r});const t=n(q.default);function n(e){return e&&e.__esModule?e:{default:e}}function r(e){const n=t.default.createHash("sha1"),r=[..."string"==typeof e?[e]:e];return r.sort(((e,t)=>e.localeCompare(t))),r.forEach((e=>n.update(e))),n.digest("hex")}}(fI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{_testResetEnvHash:()=>i,salt:()=>o});const t=Z.default,n=fI;let r={},a=Promise.resolve();function i(){r={}}async function o(e,i,o,u=""){const l=await async function(e,n){const i=s(e);return a=a.then((()=>r[i]?r[i]:function(e,n){const a=s(e);if(0===e.length)return r[a]=[],r[a];const i=(0,t.hashGlobGit)(e,{cwd:n,gitignore:!1});return r[a]=Object.values(i),r[a]}(e,n))),a}(e,o);return(0,n.hashStrings)([...l,i,u])}function s(e){return e.sort().join("|")}}(dI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"TargetHasher",{enumerable:!0,get:()=>i});const t=Bj,n=dI,r=Z.default,a=fI;class i{async hash(e){const{root:i}=this.options,o=await(0,n.salt)(e.environmentGlob??this.options.environmentGlob??["lage.config.js"],`${e.id}|${JSON.stringify(this.options.cliArgs)}`,this.options.root,this.options.cacheKey||"");if(e.cwd===i&&e.cache){if(!e.inputs)throw new Error("Root-level targets must have `inputs` defined if it has cache enabled.");const t=(0,r.hashGlobGit)(e.inputs,{cwd:i,gitignore:!1})??{},n=Object.values(t);return n.push(o),(0,a.hashStrings)(n)}return new t.Hasher(e.cwd).createPackageHash(o)}constructor(e){this.options=e}}}(zj),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{BackfillCacheProvider:()=>t.BackfillCacheProvider,RemoteFallbackCacheProvider:()=>n.RemoteFallbackCacheProvider,TargetHasher:()=>r.TargetHasher,getCacheDirectory:()=>a.getCacheDirectory,getLogsCacheDirectory:()=>a.getLogsCacheDirectory,getCacheDirectoryRoot:()=>a.getCacheDirectoryRoot});const t=He,n=Fj,r=zj,a=Mj}(Ve);var mI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isRunningFromCI",{enumerable:!0,get:()=>t});const t=!("test"===process.env.NODE_ENV||!process.env.CI&&!process.env.TF_BUILD)}(mI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createCache",{enumerable:!0,get:()=>r});const t=Ve,n=mI;function r(e){const{cacheOptions:r,logger:a,root:i,skipLocalCache:o,cliArgs:s}=e,u=!!r?.cacheStorageConfig||!!process.env.BACKFILL_CACHE_PROVIDER||!!process.env.BACKFILL_CACHE_PROVIDER_OPTIONS;return{cacheProvider:new t.RemoteFallbackCacheProvider({root:i,logger:a,localCacheProvider:!0===o?void 0:new t.BackfillCacheProvider({logger:a,root:i,cacheOptions:{outputGlob:r?.outputGlob,...r?.internalCacheFolder&&{internalCacheFolder:r.internalCacheFolder},...r?.incrementalCaching&&{incrementalCaching:r.incrementalCaching}}}),remoteCacheProvider:u?new t.BackfillCacheProvider({logger:a,root:i,cacheOptions:r??{}}):void 0,writeRemoteCache:!0===r?.writeRemoteCache||"true"===String(process.env.LAGE_WRITE_CACHE).toLowerCase()||n.isRunningFromCI}),hasher:new t.TargetHasher({root:i,environmentGlob:r?.environmentGlob??[],cacheKey:r?.cacheKey,cliArgs:s})}}}($e);var hI={},gI={},yI={};!function(e){function t(e){return e.sort(((e,t)=>(t.priority??0)-(e.priority??0)))}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"sortTargetsByPriority",{enumerable:!0,get:()=>t})}(yI);var vI={};!function(e){function t(e,t){return`${"string"==typeof e?e:""}#${t}`}function n(e){if(e.includes("#")){const t=e.split("#");return e.startsWith("#")||"//"===t[0]?{packageName:void 0,task:t[1]}:{packageName:t[0],task:t[1]}}return{packageName:void 0,task:e}}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{getTargetId:()=>t,getPackageAndTask:()=>n,getStartTargetId:()=>a});const r="__start";function a(){return r}}(vI);var bI={};!function(e){function t(e){const t=new Map;for(const[r]of e.entries())if(!t.has(r)){const a=n(e,t,r);if(a.length>0)return{hasCycle:!0,cycle:a}}return{hasCycle:!1}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectCycles",{enumerable:!0,get:()=>t});const n=(e,t,n)=>{const r=[{node:n,traversing:!1}];for(;r.length>0;){const n=r[r.length-1];if(n.traversing)t.set(n.node,!1),r.pop();else{if(t.has(n.node)){if(t.get(n.node)){const e=r.filter((e=>e.traversing)).map((e=>e.node));return e.slice(e.indexOf(n.node))}r.pop();continue}t.set(n.node,!0),r[r.length-1]={...n,traversing:!0};const a=e.get(n.node);if(!a)throw new Error(`Could not find node "${n.node}" in the graph`);r.push(...[...a.dependents].map((e=>({node:e,traversing:!1}))))}}return[]}}(bI);var wI={},_I={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"expandDepSpecs",{enumerable:!0,get:()=>n});const t=vI;function n(e,n){const r=[],i=(e,t)=>{r.push([e,t])},o=(e,t)=>t?s.filter((n=>{const{task:r,packageName:a}=n;return r===e&&t.some((e=>e===a))})).map((e=>e.id)):s.filter((t=>t.task===e)).map((e=>e.id)),s=[...e.values()];for(const u of s){const{depSpecs:s,packageName:l,id:c}=u;if(r.push([(0,t.getStartTargetId)(),c]),s&&0!==s.length)for(const r of s)if(r.includes("#")){const{packageName:e,task:n}=(0,t.getPackageAndTask)(r);i((0,t.getTargetId)(e,n),c)}else if(r.startsWith("^^")&&l){const e=o(r.substring(2),[...a(l,n)??[]]);for(const t of e)i(t,c)}else if(r.startsWith("^")&&l){const e=o(r.substring(1),[...n.dependencies.get(l)??[]]);for(const t of e)i(t,c)}else if(l){const n=r;e.has((0,t.getTargetId)(l,n))&&i((0,t.getTargetId)(l,n),c)}else{if(r.startsWith("^"))throw new Error(`invalid pipeline config detected: ${u.id}, packageName: ${l}, dep: ${r}`);{const e=o(r);for(const t of e)i(t,c)}}}return r}const r=new Map;function a(e,t){const n=r.get(e);if(n)return"walk-in-progress"===n?new Set:n;{r.set(e,"walk-in-progress");const n=[...t.dependencies.get(e)??[]],i=new Set(n);for(const e of n)for(const n of a(e,t))i.add(n);return r.set(e,i),i}}}(_I);var xI={},kI={};!function(e){function t(e,t){const n=[],r=new Map([...e.entries()].map((([e,t])=>[e,new Set(t.dependencies)])));const a=[...t];for(;a.length>0;){const t=a.pop();n.push(t);e.get(t).dependents.forEach((e=>{const n=r.get(e);n.delete(t),0===n.size&&a.push(e)}))}return n}function n(e){const n=new Map,r=function(e){const t=[];for(const[n,r]of e)0===r.dependencies.length&&t.push(n);return t}(e),a=t(e,r);for(const t of a){const r=e.get(t),a=r.priority||0,i=r.dependencies.map((e=>{const t=n.get(e);if(void 0===t)throw new Error(`Expected to have already computed the cumulative priority for node ${e}`);return t})),o=a+Math.max(...i,0);n.set(t,o)}for(const t of e.values()){const e=n.get(t.id);if(void 0===e)throw new Error(`Expected to have already computed the cumulative priority for node ${t.id}`);t.priority=e}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"prioritize",{enumerable:!0,get:()=>n})}(kI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"TargetGraphBuilder",{enumerable:!0,get:()=>a});const t=vI,n=kI,r=bI;class a{addTarget(e){return this.targets.set(e.id,e),this.addDependency((0,t.getStartTargetId)(),e.id),e}addDependency(e,t){if(this.targets.has(t)){const n=this.targets.get(t);n.dependencies.includes(e)||n.dependencies.push(e)}if(this.targets.has(e)){const n=this.targets.get(e);n.dependents.includes(t)||n.dependents.push(t)}}build(){const e=(0,r.detectCycles)(this.targets);if(e.hasCycle)throw new Error("Cycles detected in the target graph: "+e.cycle.concat(e.cycle[0]).join(" -> "));return(0,n.prioritize)(this.targets),{targets:this.targets}}subgraph(e){const n=new a,r=[],i=[];for(const t of e)if(this.targets.has(t)){const e=this.targets.get(t);n.addTarget({...e,dependencies:[],dependents:[]}),i.push(t)}for(;i.length>0;){const e=i.shift();if(r.includes(e))continue;r.push(e);const a=this.targets.get(e);if(!a)throw new Error("Subgraph builder failed - target not found: "+e);for(const r of a.dependencies)r!==(0,t.getStartTargetId)()&&(n.targets.has(r)||n.addTarget({...this.targets.get(r),dependencies:[],dependents:[]}),n.addDependency(r,e)),i.push(r)}return n.build()}constructor(){this.targets=new Map;const e=(0,t.getStartTargetId)();this.targets.set(e,{id:e,task:e,cwd:"",label:"Start",hidden:!0,dependencies:[],dependents:[],depSpecs:[],weight:1,priority:0})}}}(xI);var SI={},EI={};!function(e){function t(e,t,n){return"number"==typeof t?t:"function"==typeof t?t(e,n):1}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getWeight",{enumerable:!0,get:()=>t})}(EI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"TargetFactory",{enumerable:!0,get:()=>r});const t=vI,n=EI;class r{getTargetType(e,t){return t.type?t.type:this.packageScripts.has(e)?"npmScript":"noop"}createPackageTarget(e,r,a){const{resolve:i}=this.options,{options:o,deps:s,dependsOn:u,cache:l,inputs:c,priority:p,maxWorkers:d,environmentGlob:f,weight:m}=a,h=i(e),g=this.getTargetType(r,a),y={id:(0,t.getTargetId)(e,r),label:`${e} - ${r}`,type:g,packageName:e,task:r,cache:!1!==l,cwd:h,depSpecs:u??s??[],dependencies:[],dependents:[],inputs:c,outputs:"noop"===g?[]:a.outputs,priority:p,maxWorkers:d,environmentGlob:f,weight:1,options:o};return y.weight=(0,n.getWeight)(y,m,d),y}createGlobalTarget(e,r){const{root:a}=this.options,{options:i,deps:o,dependsOn:s,cache:u,inputs:l,outputs:c,priority:p,maxWorkers:d,environmentGlob:f,weight:m}=r,{task:h}=(0,t.getPackageAndTask)(e),g={id:e,label:e,type:this.getTargetType(h,r),task:h,cache:!1!==u,cwd:a,depSpecs:s??o??[],dependencies:[],dependents:[],inputs:l,outputs:c,priority:p,maxWorkers:d,environmentGlob:f,weight:1,options:i};return g.weight=(0,n.getWeight)(g,m,d),g}constructor(e){this.options=e,this.packageScripts=new Set;const{packageInfos:t}=e;for(const e of Object.values(t))for(const t of Object.keys(e.scripts??{}))this.packageScripts.add(t)}}}(SI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"WorkspaceTargetGraphBuilder",{enumerable:!0,get:()=>u});const t=_R,n=vI,r=_I,a=s(A.default),i=xI,o=SI;function s(e){return e&&e.__esModule?e:{default:e}}class u{addTargetConfig(e,t={}){if(e.startsWith("//")||e.startsWith("#")){const n=this.targetFactory.createGlobalTarget(e,t);this.graphBuilder.addTarget(n)}else if(e.includes("#")){const{packageName:r,task:a}=(0,n.getPackageAndTask)(e),i=this.targetFactory.createPackageTarget(r,a,t);this.graphBuilder.addTarget(i)}else{const n=Object.keys(this.packageInfos);for(const r of n){const n=e,a=this.targetFactory.createPackageTarget(r,n,t);this.graphBuilder.addTarget(a)}}}build(e,t){const a=(0,r.expandDepSpecs)(this.graphBuilder.targets,this.dependencyMap);for(const[e,t]of a)this.graphBuilder.addDependency(e,t);const i=[];for(const r of e)if(t)for(const e of t)i.push((0,n.getTargetId)(e,r));else for(const e of Object.keys(this.packageInfos))i.push((0,n.getTargetId)(e,r));return{targets:this.graphBuilder.subgraph(i).targets}}constructor(e,n){this.packageInfos=n,this.dependencyMap=(0,t.createDependencyMap)(n,{withDevDependencies:!0,withPeerDependencies:!1}),this.graphBuilder=new i.TargetGraphBuilder,this.targetFactory=new o.TargetFactory({root:e,packageInfos:n,resolve(e){try{return a.default.dirname(n[e].packageJsonPath)}catch(t){throw new Error(`Cannot open package.json file for ${e}`)}}})}}}(wI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{sortTargetsByPriority:()=>t.sortTargetsByPriority,getTargetId:()=>n.getTargetId,getStartTargetId:()=>n.getStartTargetId,detectCycles:()=>r.detectCycles,WorkspaceTargetGraphBuilder:()=>a.WorkspaceTargetGraphBuilder,TargetGraphBuilder:()=>i.TargetGraphBuilder,TargetFactory:()=>o.TargetFactory});const t=yI,n=vI,r=bI,a=wI,i=xI,o=SI}(gI);var CI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{getFilteredPackages:()=>i,filterPackages:()=>o});const t=Uj,n=a(RE);function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}return a.default=e,n&&n.set(e,a),a}function i(e){const{scope:r,since:a,sinceIgnoreGlobs:i,repoWideChanges:s,includeDependents:u,includeDependencies:l,logger:c,packageInfos:p,root:d}=e;let f,m,h;const g=void 0!==a;if(Array.isArray(r)&&r.length>0)return f=(0,t.getScopedPackages)(r,p),o({logger:c,packageInfos:p,scopedPackages:f,changedPackages:h,includeDependencies:l,includeDependents:u});if(g){try{h=(0,t.getChangedPackages)(d,a,i)}catch(e){c.warn(`An error in the git command has caused this scope run to include every package\n${e}`)}return m=o({logger:c,packageInfos:p,scopedPackages:f,changedPackages:h,includeDependencies:l,includeDependents:u}),function(e,r,a,i){try{const i=(0,t.getBranchChanges)(e,r),o=n.sync(a,{cwd:r});let s=!1;if(i)for(const e of i)if(o.includes(e)){s=!0;break}return s}catch(e){return i.warn(`An error in the git command has caused this to consider the repo has changed\n${e}`),!0}}(a,d,s,c)&&(c.verbose(`Repo-wide changes detected, running all packages. The following changed packages and their deps (if specified) will be run first: ${m.join(",")}`),m=[...new Set(m.concat(Object.keys(p)))]),m}return Object.keys(p)}function o(e){const{scopedPackages:n,changedPackages:r,packageInfos:a,includeDependents:i,includeDependencies:o,logger:s}=e;let u=[];void 0!==n&&void 0!==r?(u=r.filter((e=>n.includes(e))).concat((0,t.getTransitiveDependents)(r,a,n)),s.verbose(`filterPackages changed within scope: ${u.join(",")}`)):void 0!==r?(u=[...r],s.verbose(`filterPackages changed: ${r.join(",")}`)):void 0!==n?(u=[...n],s.verbose(`filterPackages scope: ${n.join(",")}`)):u=Object.keys(a),i&&(s.verbose("filterPackages running with dependents"),u=u.concat((0,t.getTransitiveDependents)(u,a))),o&&(s.verbose("filterPackages running with dependencies"),u=u.concat((0,t.getTransitiveDependencies)(u,a)));return[...new Set(u)]}}(CI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createTargetGraph",{enumerable:!0,get:()=>r});const t=gI,n=CI;function r(e){const{logger:r,root:a,dependencies:i,dependents:o,since:s,scope:u,repoWideChanges:l,ignore:c,pipeline:p,outputs:d,tasks:f,packageInfos:m}=e,h=new t.WorkspaceTargetGraphBuilder(a,m),g=(0,n.getFilteredPackages)({root:a,logger:r,packageInfos:m,includeDependencies:i,includeDependents:o,since:s,scope:u,repoWideChanges:l,sinceIgnoreGlobs:c});for(const[e,t]of Object.entries(p))Array.isArray(t)?h.addTargetConfig(e,{cache:!0,dependsOn:t,options:{},outputs:d}):h.addTargetConfig(e,t);return h.build(f,g)}}(hI);var DI={};!function(e){function t(e){const t=e.findIndex((e=>e.startsWith("-")));return{tasks:e.slice(0,-1===t?void 0:t),taskArgs:-1===t?[]:e.slice(t)}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"filterArgsForTasks",{enumerable:!0,get:()=>t})}(DI);var OI,NI={},jI={},PI={},TI={},AI={},RI={exports:{}};function II(){if(OI)return RI.exports;OI=1;const e=A.default,t=ee.default,n=R.default,r=(r,a,i)=>{if("string"!=typeof r)throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof r}\``);if("string"!=typeof a)throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof a}\``);try{r=n.realpathSync(r)}catch(t){if("ENOENT"!==t.code){if(i)return null;throw t}r=e.resolve(r)}const o=e.join(r,"noop.js"),s=()=>t._resolveFilename(a,{id:o,filename:o,paths:t._nodeModulePaths(r)});if(i)try{return s()}catch(e){return null}return s()};return RI.exports=(e,t)=>r(e,t),RI.exports.silent=(e,t)=>r(e,t,!0),RI.exports}var MI,LI,FI,zI,BI,UI,qI,$I,VI,HI,WI,GI={exports:{}};function KI(){if(MI)return GI.exports;MI=1;const e=()=>{const e=Error.prepareStackTrace;Error.prepareStackTrace=(e,t)=>t;const t=(new Error).stack.slice(1);return Error.prepareStackTrace=e,t};return GI.exports=e,GI.exports.default=e,GI.exports}function YI(){if(FI)return LI;FI=1;const e=KI();return LI=t=>{const n=e();if(!t)return n[2].getFileName();let r=!1;n.shift();for(const e of n){const n=e.getFileName();if("string"==typeof n)if(n!==t){if("module.js"!==n&&r&&n!==t)return n}else r=!0}}}function QI(){return qI?UI:(qI=1,UI=function(e){return!!e&&(e instanceof Array||Array.isArray(e)||e.length>=0&&e.splice instanceof Function)})}function XI(){if(WI)return HI;WI=1;class e extends SyntaxError{constructor(e,t,n,r){const a=((e,t,n)=>{if(!t)return{message:e.message+" while parsing empty string",position:0};const r=e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i),a=r?+r[2]:e.message.match(/^Unexpected end of JSON.*/i)?t.length-1:null,i=r?e.message.replace(/^Unexpected token ./,`Unexpected token ${JSON.stringify(r[1])} (${(e=>{const t=e.charCodeAt(0).toString(16).toUpperCase();return"0x"+(t.length%2?"0":"")+t})(r[1])})`):e.message;if(null!=a){const e=a<=n?0:a-n,r=a+n>=t.length?t.length:a+n,o=(0===e?"":"...")+t.slice(e,r)+(r===t.length?"":"...");return{message:i+` while parsing ${t===o?"":"near "}${JSON.stringify(o)}`,position:a}}return{message:i+` while parsing '${t.slice(0,2*n)}'`,position:0}})(e,t,n=n||20);super(a.message),Object.assign(this,a),this.code="EJSONPARSE",this.systemError=e,Error.captureStackTrace(this,r||this.constructor)}get name(){return this.constructor.name}set name(e){}get[Symbol.toStringTag](){return this.constructor.name}}const t=Symbol.for("indent"),n=Symbol.for("newline"),r=/^\s*[{\[]((?:\r?\n)+)([\s\t]*)/,a=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,i=(s,u,l)=>{const c=o(s);l=l||20;try{const[,e="\n",i=" "]=c.match(a)||c.match(r)||[,"",""],o=JSON.parse(c,u);return o&&"object"==typeof o&&(o[n]=e,o[t]=i),o}catch(t){if("string"!=typeof s&&!Buffer.isBuffer(s)){const e=Array.isArray(s)&&0===s.length;throw Object.assign(new TypeError(`Cannot parse ${e?"an empty array":String(s)}`),{code:"EJSONPARSE",systemError:t})}throw new e(t,c,l,i)}},o=e=>String(e).replace(/^\uFEFF/,"");return HI=i,i.JSONParseError=e,i.noExceptions=(e,t)=>{try{return JSON.parse(o(e),t)}catch(e){}},HI}var JI,ZI={};var eM,tM={},nM={},rM={};var aM,iM={},oM={};var sM,uM,lM={};function cM(){return uM||(uM=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return n.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return n.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return n.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return n.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return n.isStrictReservedWord}});var t=function(){if(aM)return oM;aM=1,Object.defineProperty(oM,"__esModule",{value:!0}),oM.isIdentifierChar=u,oM.isIdentifierName=function(e){let t=!0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(55296==(64512&r)&&n+1<e.length){const t=e.charCodeAt(++n);56320==(64512&t)&&(r=65536+((1023&r)<<10)+(1023&t))}if(t){if(t=!1,!s(r))return!1}else if(!u(r))return!1}return!t},oM.isIdentifierStart=s;let e="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",t="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const n=new RegExp("["+e+"]"),r=new RegExp("["+e+t+"]");e=t=null;const a=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],i=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function o(e,t){let n=65536;for(let r=0,a=t.length;r<a;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function s(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&n.test(String.fromCharCode(e)):o(e,a)))}function u(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&r.test(String.fromCharCode(e)):o(e,a)||o(e,i))))}return oM}(),n=function(){if(sM)return lM;sM=1,Object.defineProperty(lM,"__esModule",{value:!0}),lM.isKeyword=function(e){return n.has(e)},lM.isReservedWord=i,lM.isStrictBindOnlyReservedWord=s,lM.isStrictBindReservedWord=function(e,t){return o(e,t)||s(e)},lM.isStrictReservedWord=o;const e=["implements","interface","let","package","private","protected","public","static","yield"],t=["eval","arguments"],n=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),r=new Set(e),a=new Set(t);function i(e,t){return t&&"await"===e||"enum"===e}function o(e,t){return i(e,t)||r.has(e)}function s(e){return a.has(e)}return lM}()}(iM)),iM}var pM,dM,fM,mM,hM,gM,yM,vM,bM,wM,_M,xM,kM,SM,EM,CM,DM,OM,NM,jM={exports:{}},PM={exports:{}},TM={exports:{}};function AM(){if(fM)return TM.exports;fM=1;var e=dM?pM:(dM=1,pM={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);var r=TM.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in r)if(r.hasOwnProperty(a)){if(!("channels"in r[a]))throw new Error("missing channels property: "+a);if(!("labels"in r[a]))throw new Error("missing channel labels property: "+a);if(r[a].labels.length!==r[a].channels)throw new Error("channel and label counts mismatch: "+a);var i=r[a].channels,o=r[a].labels;delete r[a].channels,delete r[a].labels,Object.defineProperty(r[a],"channels",{value:i}),Object.defineProperty(r[a],"labels",{value:o})}return r.rgb.hsl=function(e){var t,n,r=e[0]/255,a=e[1]/255,i=e[2]/255,o=Math.min(r,a,i),s=Math.max(r,a,i),u=s-o;return s===o?t=0:r===s?t=(a-i)/u:a===s?t=2+(i-r)/u:i===s&&(t=4+(r-a)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(o+s)/2,[t,100*(s===o?0:n<=.5?u/(s+o):u/(2-s-o)),100*n]},r.rgb.hsv=function(e){var t,n,r,a,i,o=e[0]/255,s=e[1]/255,u=e[2]/255,l=Math.max(o,s,u),c=l-Math.min(o,s,u),p=function(e){return(l-e)/6/c+.5};return 0===c?a=i=0:(i=c/l,t=p(o),n=p(s),r=p(u),o===l?a=r-n:s===l?a=1/3+t-r:u===l&&(a=2/3+n-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*i,100*l]},r.rgb.hwb=function(e){var t=e[0],n=e[1],a=e[2];return[r.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,a))),100*(a=1-1/255*Math.max(t,Math.max(n,a)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,a=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-a)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]},r.rgb.keyword=function(n){var r=t[n];if(r)return r;var a,i,o,s=1/0;for(var u in e)if(e.hasOwnProperty(u)){var l=e[u],c=(i=n,o=l,Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)+Math.pow(i[2]-o[2],2));c<s&&(s=c,a=u)}return a},r.keyword.rgb=function(t){return e[t]},r.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],a=t[1],i=t[2];return a/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(n-a),200*(a-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},r.hsl.rgb=function(e){var t,n,r,a,i,o=e[0]/360,s=e[1]/100,u=e[2]/100;if(0===s)return[i=255*u,i,i];t=2*u-(n=u<.5?u*(1+s):u+s-u*s),a=[0,0,0];for(var l=0;l<3;l++)(r=o+1/3*-(l-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,a[l]=255*i;return a},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,a=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,a*=i<=1?i:2-i,[t,100*(0===r?2*a/(i+a):2*n/(r+n)),100*((r+n)/2)]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,a=Math.floor(t)%6,i=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*i),u=255*r*(1-n*(1-i));switch(r*=255,a){case 0:return[r,u,o];case 1:return[s,r,o];case 2:return[o,r,u];case 3:return[o,s,r];case 4:return[u,o,r];case 5:return[r,o,s]}},r.hsv.hsl=function(e){var t,n,r,a=e[0],i=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return r=(2-i)*o,n=i*s,[a,100*(n=(n/=(t=(2-i)*s)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,a,i,o,s,u=e[0]/360,l=e[1]/100,c=e[2]/100,p=l+c;switch(p>1&&(l/=p,c/=p),r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),a=l+r*((n=1-c)-l),t){default:case 6:case 0:i=n,o=a,s=l;break;case 1:i=a,o=n,s=l;break;case 2:i=l,o=n,s=a;break;case 3:i=l,o=a,s=n;break;case 4:i=a,o=l,s=n;break;case 5:i=n,o=l,s=a}return[255*i,255*o,255*s]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a))]},r.xyz.rgb=function(e){var t,n,r,a=e[0]/100,i=e[1]/100,o=e[2]/100;return n=-.9689*a+1.8758*i+.0415*o,r=.0557*a+-.204*i+1.057*o,t=(t=3.2406*a+-1.5372*i+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,a=e[0];t=e[1]/500+(n=(a+16)/116),r=n-e[2]/200;var i=Math.pow(n,3),o=Math.pow(t,3),s=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],a=e[2];return(t=360*Math.atan2(a,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+a*a),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],a=e[2],i=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,a=e[2]/255,i=Math.max(Math.max(n,r),a),o=Math.min(Math.min(n,r),a),s=i-o;return t=s<=0?0:i===n?(r-a)/s%6:i===r?2+(a-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?o/(1-s):0)]},r.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,a=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(a=(n-.5*r)/(1-r)),[e[0],100*r,100*a]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var a,i=[0,0,0],o=t%1*6,s=o%1,u=1-s;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return a=(1-n)*r,[255*(n*i[0]+a),255*(n*i[1]+a),255*(n*i[2]+a)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]},TM.exports}function RM(){if(hM)return mM;hM=1;var e=AM();function t(t){var n=function(){for(var t={},n=Object.keys(e),r=n.length,a=0;a<r;a++)t[n[a]]={distance:-1,parent:null};return t}(),r=[t];for(n[t].distance=0;r.length;)for(var a=r.pop(),i=Object.keys(e[a]),o=i.length,s=0;s<o;s++){var u=i[s],l=n[u];-1===l.distance&&(l.distance=n[a].distance+1,l.parent=a,r.unshift(u))}return n}function n(e,t){return function(n){return t(e(n))}}function r(t,r){for(var a=[r[t].parent,t],i=e[r[t].parent][t],o=r[t].parent;r[o].parent;)a.unshift(r[o].parent),i=n(e[r[o].parent][o],i),o=r[o].parent;return i.conversion=a,i}return mM=function(e){for(var n=t(e),a={},i=Object.keys(n),o=i.length,s=0;s<o;s++){var u=i[s];null!==n[u].parent&&(a[u]=r(u,n))}return a},mM}function IM(){if(yM)return gM;yM=1;var e=AM(),t=RM(),n={};return Object.keys(e).forEach((function(r){n[r]={},Object.defineProperty(n[r],"channels",{value:e[r].channels}),Object.defineProperty(n[r],"labels",{value:e[r].labels});var a=t(r);Object.keys(a).forEach((function(e){var t=a[e];n[r][e]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,a=0;a<r;a++)n[a]=Math.round(n[a]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(t),n[r][e].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(t)}))})),gM=n}function MM(){return wM?bM:(wM=1,bM=(e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),a=t.indexOf("--");return-1!==r&&(-1===a||r<a)})}function LM(){if(xM)return _M;xM=1;const e=M.default,t=MM(),n=process.env;let r;function a(a){const i=function(a){if(!1===r)return 0;if(t("color=16m")||t("color=full")||t("color=truecolor"))return 3;if(t("color=256"))return 2;if(a&&!a.isTTY&&!0!==r)return 0;const i=r?1:0;if("win32"===process.platform){const t=e.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in n)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in n))||"codeship"===n.CI_NAME?1:i;if("TEAMCITY_VERSION"in n)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(n.TEAMCITY_VERSION)?1:0;if("truecolor"===n.COLORTERM)return 3;if("TERM_PROGRAM"in n){const e=parseInt((n.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(n.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(n.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(n.TERM)||"COLORTERM"in n?1:(n.TERM,i)}(a);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(i)}return t("no-color")||t("no-colors")||t("color=false")?r=!1:(t("color")||t("colors")||t("color=true")||t("color=always"))&&(r=!0),"FORCE_COLOR"in n&&(r=0===n.FORCE_COLOR.length||0!==parseInt(n.FORCE_COLOR,10)),_M={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}}function FM(){return EM||(EM=1,function(e){const t=Ci,n=(vM||(vM=1,function(e){const t=IM(),n=(e,n)=>function(){return`[${e.apply(t,arguments)+n}m`},r=(e,n)=>function(){const r=e.apply(t,arguments);return`[${38+n};5;${r}m`},a=(e,n)=>function(){const r=e.apply(t,arguments);return`[${38+n};2;${r[0]};${r[1]};${r[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.grey=i.color.gray;for(const t of Object.keys(i)){const n=i[t];for(const t of Object.keys(n)){const r=n[t];i[t]={open:`[${r[0]}m`,close:`[${r[1]}m`},n[t]=i[t],e.set(r[0],r[1])}Object.defineProperty(i,t,{value:n,enumerable:!1}),Object.defineProperty(i,"codes",{value:e,enumerable:!1})}const o=e=>e,s=(e,t,n)=>[e,t,n];i.color.close="[39m",i.bgColor.close="[49m",i.color.ansi={ansi:n(o,0)},i.color.ansi256={ansi256:r(o,0)},i.color.ansi16m={rgb:a(s,0)},i.bgColor.ansi={ansi:n(o,10)},i.bgColor.ansi256={ansi256:r(o,10)},i.bgColor.ansi16m={rgb:a(s,10)};for(let e of Object.keys(t)){if("object"!=typeof t[e])continue;const o=t[e];"ansi16"===e&&(e="ansi"),"ansi16"in o&&(i.color.ansi[e]=n(o.ansi16,0),i.bgColor.ansi[e]=n(o.ansi16,10)),"ansi256"in o&&(i.color.ansi256[e]=r(o.ansi256,0),i.bgColor.ansi256[e]=r(o.ansi256,10)),"rgb"in o&&(i.color.ansi16m[e]=a(o.rgb,0),i.bgColor.ansi16m[e]=a(o.rgb,10))}return i}})}(PM)),PM.exports),r=LM().stdout,a=function(){if(SM)return kM;SM=1;const e=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,t=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,r=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function i(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):a.get(e)||e}function o(e,t){const a=[],o=t.trim().split(/\s*,\s*/g);let s;for(const t of o)if(isNaN(t)){if(!(s=t.match(n)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);a.push(s[2].replace(r,((e,t,n)=>t?i(t):n)))}else a.push(Number(t));return a}function s(e){t.lastIndex=0;const n=[];let r;for(;null!==(r=t.exec(e));){const e=r[1];if(r[2]){const t=o(e,r[2]);n.push([e].concat(t))}else n.push([e])}return n}function u(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const e of Object.keys(n))if(Array.isArray(n[e])){if(!(e in r))throw new Error(`Unknown Chalk style: ${e}`);r=n[e].length>0?r[e].apply(r,n[e]):r[e]}return r}return kM=(t,n)=>{const r=[],a=[];let o=[];if(n.replace(e,((e,n,l,c,p,d)=>{if(n)o.push(i(n));else if(c){const e=o.join("");o=[],a.push(0===r.length?e:u(t,r)(e)),r.push({inverse:l,styles:s(c)})}else if(p){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");a.push(u(t,r)(o.join(""))),o=[],r.pop()}else o.push(d)})),a.push(o.join("")),r.length>0){const e=`Chalk template literal is missing ${r.length} closing bracket${1===r.length?"":"s"} (\`}\`)`;throw new Error(e)}return a.join("")},kM}(),i="win32"===process.platform&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),o=["ansi","ansi","ansi256","ansi16m"],s=new Set(["gray"]),u=Object.create(null);function l(e,t){t=t||{};const n=r?r.level:0;e.level=void 0===t.level?n:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function c(e){if(!this||!(this instanceof c)||this.template){const t={};return l(t,e),t.template=function(){const e=[].slice.call(arguments);return m.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,c.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=c,t.template}l(this,e)}i&&(n.blue.open="[94m");for(const e of Object.keys(n))n[e].closeRe=new RegExp(t(n[e].close),"g"),u[e]={get(){const t=n[e];return d.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};u.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},n.color.closeRe=new RegExp(t(n.color.close),"g");for(const e of Object.keys(n.color.ansi))s.has(e)||(u[e]={get(){const t=this.level;return function(){const r={open:n.color[o[t]][e].apply(null,arguments),close:n.color.close,closeRe:n.color.closeRe};return d.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}});n.bgColor.closeRe=new RegExp(t(n.bgColor.close),"g");for(const e of Object.keys(n.bgColor.ansi)){if(s.has(e))continue;u["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const r={open:n.bgColor[o[t]][e].apply(null,arguments),close:n.bgColor.close,closeRe:n.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}}}const p=Object.defineProperties((()=>{}),u);function d(e,t,n){const r=function(){return f.apply(r,arguments)};r._styles=e,r._empty=t;const a=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>a.level,set(e){a.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>a.enabled,set(e){a.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=p,r}function f(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n<t;n++)r+=" "+e[n];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const a=n.dim.open;i&&this.hasGrey&&(n.dim.open="");for(const e of this._styles.slice().reverse())r=e.open+r.replace(e.closeRe,e.open)+e.close,r=r.replace(/\r?\n/g,`${e.close}$&${e.open}`);return n.dim.open=a,r}function m(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const n=[].slice.call(arguments,2),r=[t.raw[0]];for(let e=1;e<t.length;e++)r.push(String(n[e-1]).replace(/[{}\\]/g,"\\$&")),r.push(String(t.raw[e]));return a(e,r.join(""))}Object.defineProperties(c.prototype,u),e.exports=c(),e.exports.supportsColor=r,e.exports.default=e.exports}(jM)),jM.exports}function zM(){if(CM)return nM;CM=1,Object.defineProperty(nM,"__esModule",{value:!0}),nM.default=function(e,t={}){if(""!==e&&s(t)){const n=function(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}(u(t));return function(e,t){let n="";for(const{type:r,value:i}of o(t)){const t=e[r];n+=t?i.split(a).map((e=>t(e))).join("\n"):i}return n}(n,e)}return e},nM.getChalk=u,nM.shouldHighlight=s;var e=(eM||(eM=1,Object.defineProperty(rM,"__esModule",{value:!0}),rM.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,rM.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}),rM),t=cM(),n=FM();const r=new Set(["as","async","from","get","of","set"]);const a=/\r\n|[\n\r\u2028\u2029]/,i=/^[()[\]{}]$/;let o;{const n=/^[a-z][\w-]*$/i,a=function(e,a,o){if("name"===e.type){if((0,t.isKeyword)(e.value)||(0,t.isStrictReservedWord)(e.value,!0)||r.has(e.value))return"keyword";if(n.test(e.value)&&("<"===o[a-1]||"</"==o.slice(a-2,a)))return"jsxIdentifier";if(e.value[0]!==e.value[0].toLowerCase())return"capitalized"}return"punctuator"===e.type&&i.test(e.value)?"bracket":"invalid"!==e.type||"@"!==e.value&&"#"!==e.value?e.type:"punctuator"};o=function*(t){let n;for(;n=e.default.exec(t);){const r=e.matchToToken(n);yield{type:a(r,n.index,t),value:r.value}}}}function s(e){return!!n.supportsColor||e.forceColor}function u(e){return e.forceColor?new n.constructor({enabled:!0,level:1}):n}return nM}function BM(){if(DM)return tM;DM=1,Object.defineProperty(tM,"__esModule",{value:!0}),tM.codeFrameColumns=r,tM.default=function(e,n,a,i={}){if(!t){t=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(e,"DeprecationWarning");else{new Error(e).name="DeprecationWarning",console.warn(new Error(e))}}a=Math.max(a,0);return r(e,{start:{column:a,line:n}},i)};var e=zM();let t=!1;const n=/\r\n|[\n\r\u2028\u2029]/;function r(t,r,a={}){const i=(a.highlightCode||a.forceColor)&&(0,e.shouldHighlight)(a),o=(0,e.getChalk)(a),s=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(o),u=(e,t)=>i?e(t):t,l=t.split(n),{start:c,end:p,markerLines:d}=function(e,t,n){const r=Object.assign({column:0,line:-1},e.start),a=Object.assign({},r,e.end),{linesAbove:i=2,linesBelow:o=3}=n||{},s=r.line,u=r.column,l=a.line,c=a.column;let p=Math.max(s-(i+1),0),d=Math.min(t.length,l+o);-1===s&&(p=0),-1===l&&(d=t.length);const f=l-s,m={};if(f)for(let e=0;e<=f;e++){const n=e+s;if(u)if(0===e){const e=t[n-1].length;m[n]=[u,e-u+1]}else if(e===f)m[n]=[0,c];else{const r=t[n-e].length;m[n]=[0,r]}else m[n]=!0}else m[s]=u===c?!u||[u,0]:[u,c-u];return{start:p,end:d,markerLines:m}}(r,l,a),f=r.start&&"number"==typeof r.start.column,m=String(p).length;let h=(i?(0,e.default)(t,a):t).split(n,p).slice(c,p).map(((e,t)=>{const n=c+1+t,r=` ${` ${n}`.slice(-m)} |`,i=d[n],o=!d[n+1];if(i){let t="";if(Array.isArray(i)){const n=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),l=i[1]||1;t=["\n ",u(s.gutter,r.replace(/\d/g," "))," ",n,u(s.marker,"^").repeat(l)].join(""),o&&a.message&&(t+=" "+u(s.message,a.message))}return[u(s.marker,">"),u(s.gutter,r),e.length>0?` ${e}`:"",t].join("")}return` ${u(s.gutter,r)}${e.length>0?` ${e}`:""}`})).join("\n");return a.message&&!f&&(h=`${" ".repeat(m+1)}${a.message}\n${h}`),i?o.reset(h):h}return tM}function UM(){if(NM)return OM;NM=1;const e=function(){if(VI)return $I;VI=1;var e=L.default,t=QI(),n=function(n,r){n&&n.constructor===String||(r=n||{},n=Error.name);var a=function e(i){if(!this)return new e(i);i=i instanceof Error?i.message:i||this.message,Error.call(this,i),Error.captureStackTrace(this,a),this.name=n,Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,get:function(){var e=i.split(/\r?\n/g);for(var n in r)if(r.hasOwnProperty(n)){var a=r[n];"message"in a&&(e=a.message(this[n],e)||e,t(e)||(e=[e]))}return e.join("\n")},set:function(e){i=e}});var o=null,s=Object.getOwnPropertyDescriptor(this,"stack"),u=s.get,l=s.value;delete s.value,delete s.writable,s.set=function(e){o=e},s.get=function(){var e=(o||(u?u.call(this):l)).split(/\r?\n+/g);o||(e[0]=this.name+": "+this.message);var t=1;for(var n in r)if(r.hasOwnProperty(n)){var a=r[n];if("line"in a){var i=a.line(this[n]);i&&e.splice(t++,0," "+i)}"stack"in a&&a.stack(this[n],e)}return e.join("\n")},Object.defineProperty(this,"stack",s)};return Object.setPrototypeOf?(Object.setPrototypeOf(a.prototype,Error.prototype),Object.setPrototypeOf(a,Error)):e.inherits(a,Error),a};return n.append=function(e,t){return{message:function(n,r){return(n=n||t)&&(r[0]+=" "+e.replace("%s",n.toString())),r}}},n.line=function(e,t){return{line:function(n){return(n=n||t)?e.replace("%s",n.toString()):null}}},$I=n}(),t=XI(),{default:n}=(JI||(JI=1,function(e){e.__esModule=!0,e.LinesAndColumns=void 0;var t="\n",n="\r",r=function(){function e(e){this.string=e;for(var r=[0],a=0;a<e.length;)switch(e[a]){case t:a+=t.length,r.push(a);break;case n:e[a+=n.length]===t&&(a+=t.length),r.push(a);break;default:a++}this.offsets=r}return e.prototype.locationForIndex=function(e){if(e<0||e>this.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}();e.LinesAndColumns=r,e.default=r}(ZI)),ZI),{codeFrameColumns:r}=BM(),a=e("JSONError",{fileName:e.append("in %s"),codeFrame:e.append("\n\n%s\n")}),i=(e,i,o)=>{"string"==typeof i&&(o=i,i=null);try{try{return JSON.parse(e,i)}catch(n){throw t(e,i),n}}catch(t){t.message=t.message.replace(/\n/g,"");const i=t.message.match(/in JSON at position (\d+) while parsing/),s=new a(t);if(o&&(s.fileName=o),i&&i.length>0){const t=new n(e),a=Number(i[1]),o=t.locationForIndex(a),u=r(e,{start:{line:o.line+1,column:o.column+1}},{highlightCode:!0});s.codeFrame=u}throw s}};return i.JSONError=a,OM=i}var qM,$M,VM={},HM={},WM={};function GM(){if(qM)return WM;qM=1;const e={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},t={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"};function n(e){const t=[0];let n=e.indexOf("\n");for(;-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function r(e){let t,r;return"string"==typeof e?(t=n(e),r=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=n(e.context.src)),t=e.lineStarts,r=e.context.src)),{lineStarts:t,src:r}}function a(e,t){if("number"!=typeof e||e<0)return null;const{lineStarts:n,src:a}=r(t);if(!n||!a||e>a.length)return null;for(let t=0;t<n.length;++t){const r=n[t];if(e<r)return{line:t,col:e-n[t-1]+1};if(e===r)return{line:t+1,col:1}}const i=n.length;return{line:i,col:e-n[i-1]+1}}function i({start:e,end:t},n,a=80){let i=function(e,t){const{lineStarts:n,src:a}=r(t);if(!n||!(e>=1)||e>n.length)return null;const i=n[e-1];let o=n[e];for(;o&&o>i&&"\n"===a[o-1];)--o;return a.slice(i,o)}(e.line,n);if(!i)return null;let{col:o}=e;if(i.length>a)if(o<=a-10)i=i.substr(0,a-1)+"…";else{const e=Math.round(a/2);i.length>o+e&&(i=i.substr(0,o+e-1)+"…"),o-=i.length-a,i="…"+i.substr(1-a)}let s=1,u="";t&&(t.line===e.line&&o+(t.col-e.col)<=a+1?s=t.col-e.col:(s=Math.min(i.length+1,a)-o,u="…"));return`${i}\n${o>1?" ".repeat(o-1):""}${"^".repeat(s)}${u}`}class o{static copy(e){return new o(e.start,e.end)}constructor(e,t){this.start=e,this.end=t||e}isEmpty(){return"number"!=typeof this.start||!this.end||this.end<=this.start}setOrigRange(e,t){const{start:n,end:r}=this;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;let a=t;for(;a<e.length&&!(e[a]>n);)++a;this.origStart=n+a;const i=a;for(;a<e.length&&!(e[a]>=r);)++a;return this.origEnd=r+a,i}}class s{static addStringTerminator(e,t,n){if("\n"===n[n.length-1])return n;const r=s.endOfWhiteSpace(e,t);return r>=e.length||"\n"===e[r]?n+"\n":n}static atDocumentBoundary(t,n,r){const a=t[n];if(!a)return!0;const i=t[n-1];if(i&&"\n"!==i)return!1;if(r){if(a!==r)return!1}else if(a!==e.DIRECTIVES_END&&a!==e.DOCUMENT_END)return!1;const o=t[n+1],s=t[n+2];if(o!==a||s!==a)return!1;const u=t[n+3];return!u||"\n"===u||"\t"===u||" "===u}static endOfIdentifier(e,t){let n=e[t];const r="<"===n,a=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];for(;n&&-1===a.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}static endOfIndent(e,t){let n=e[t];for(;" "===n;)n=e[t+=1];return t}static endOfLine(e,t){let n=e[t];for(;n&&"\n"!==n;)n=e[t+=1];return t}static endOfWhiteSpace(e,t){let n=e[t];for(;"\t"===n||" "===n;)n=e[t+=1];return t}static startOfLine(e,t){let n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}static endOfBlockIndent(e,t,n){const r=s.endOfIndent(e,n);if(r>n+t)return r;{const t=s.endOfWhiteSpace(e,r),n=e[t];if(!n||"\n"===n)return t}return null}static atBlank(e,t,n){const r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}static nextNodeIsIndented(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}static normalizeOffset(e,t){const n=e[t];return n?"\n"!==n&&"\n"===e[t-1]?t-1:s.endOfWhiteSpace(e,t):t}static foldNewline(e,t,n){let r=0,a=!1,i="",o=e[t+1];for(;" "===o||"\t"===o||"\n"===o;){switch(o){case"\n":r=0,t+=1,i+="\n";break;case"\t":r<=n&&(a=!0),t=s.endOfWhiteSpace(e,t+2)-1;break;case" ":r+=1,t+=1}o=e[t+1]}return i||(i=" "),o&&r<=n&&(a=!0),{fold:i,offset:t,error:a}}constructor(e,t,n){Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=t||[],this.type=e,this.value=null}getPropValue(e,t,n){if(!this.context)return null;const{src:r}=this.context,a=this.props[e];return a&&r[a.start]===t?r.slice(a.start+(n?1:0),a.end):null}get anchor(){for(let t=0;t<this.props.length;++t){const n=this.getPropValue(t,e.ANCHOR,!0);if(null!=n)return n}return null}get comment(){const t=[];for(let n=0;n<this.props.length;++n){const r=this.getPropValue(n,e.COMMENT,!0);null!=r&&t.push(r)}return t.length>0?t.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return!1;if(!this.valueRange)return!1;const{end:n}=this.valueRange;return e!==n||s.atBlank(t,n-1)}get hasComment(){if(this.context){const{src:t}=this.context;for(let n=0;n<this.props.length;++n)if(t[this.props[n].start]===e.COMMENT)return!0}return!1}get hasProps(){if(this.context){const{src:t}=this.context;for(let n=0;n<this.props.length;++n)if(t[this.props[n].start]!==e.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return-1!==[t.FLOW_MAP,t.FLOW_SEQ,t.QUOTE_DOUBLE,t.QUOTE_SINGLE].indexOf(this.type)}get rangeAsLinePos(){if(!this.range||!this.context)return;const e=a(this.range.start,this.context.root);if(!e)return;return{start:e,end:a(this.range.end,this.context.root)}}get rawValue(){if(!this.valueRange||!this.context)return null;const{start:e,end:t}=this.valueRange;return this.context.src.slice(e,t)}get tag(){for(let t=0;t<this.props.length;++t){const n=this.getPropValue(t,e.TAG,!1);if(null!=n){if("<"===n[1])return{verbatim:n.slice(2,-1)};{const[e,t,r]=n.match(/^(.*!)([^!]*)$/);return{handle:t,suffix:r}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;const{start:e,end:t}=this.valueRange,{src:n}=this.context;for(let r=e;r<t;++r)if("\n"===n[r])return!0;return!1}parseComment(t){const{src:n}=this.context;if(n[t]===e.COMMENT){const e=s.endOfLine(n,t+1),r=new o(t,e);return this.props.push(r),e}return t}setOrigRanges(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach((n=>n.setOrigRange(e,t))),t}toString(){const{context:{src:e},range:t,value:n}=this;if(null!=n)return n;const r=e.slice(t.start,t.end);return s.addStringTerminator(e,t.end,r)}}class u extends Error{constructor(e,t,n){if(!(n&&t instanceof s))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=n,this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new o(this.offset,this.offset+1);const t=e&&a(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){const{line:t,col:n}=this.linePos.start;this.message+=` at line ${t}, column ${n}`;const r=e&&i(this.linePos,e);r&&(this.message+=`:\n\n${r}\n`)}delete this.source}}class l extends u{constructor(e,t){super("YAMLSemanticError",e,t)}}class c extends s{static endOfLine(e,t,n){let r=e[t],a=t;for(;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){const t=e[a+1];if(":"===r&&(!t||"\n"===t||"\t"===t||" "===t||n&&","===t))break;if((" "===r||"\t"===r)&&"#"===t)break;a+=1,r=t}return a}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:n}=this.context;let r=n[t-1];for(;e<t&&("\n"===r||"\t"===r||" "===r);)r=n[--t-1];let a="";for(let r=e;r<t;++r){const e=n[r];if("\n"===e){const{fold:e,offset:t}=s.foldNewline(n,r,-1);a+=e,r=t}else if(" "===e||"\t"===e){const i=r;let o=n[r+1];for(;r<t&&(" "===o||"\t"===o);)r+=1,o=n[r+1];"\n"!==o&&(a+=r>i?n.slice(i,r+1):e)}else a+=e}const i=n[e];switch(i){case"\t":return{errors:[new l(this,"Plain value cannot start with a tab character")],str:a};case"@":case"`":return{errors:[new l(this,`Plain value cannot start with reserved character ${i}`)],str:a};default:return a}}parseBlockValue(e){const{indent:t,inFlow:n,src:r}=this.context;let a=e,i=e;for(let e=r[a];"\n"===e&&!s.atDocumentBoundary(r,a+1);e=r[a]){const e=s.endOfBlockIndent(r,t,a+1);if(null===e||"#"===r[e])break;"\n"===r[e]?a=e:(i=c.endOfLine(r,e,n),a=i)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=i,i}parse(e,t){this.context=e;const{inFlow:n,src:r}=e;let a=t;const i=r[a];return i&&"#"!==i&&"\n"!==i&&(a=c.endOfLine(r,t,n)),this.valueRange=new o(t,a),a=s.endOfWhiteSpace(r,a),a=this.parseComment(a),this.hasComment&&!this.valueRange.isEmpty()||(a=this.parseBlockValue(a)),a}}return WM.Char=e,WM.Node=s,WM.PlainValue=c,WM.Range=o,WM.Type=t,WM.YAMLError=u,WM.YAMLReferenceError=class extends u{constructor(e,t){super("YAMLReferenceError",e,t)}},WM.YAMLSemanticError=l,WM.YAMLSyntaxError=class extends u{constructor(e,t){super("YAMLSyntaxError",e,t)}},WM.YAMLWarning=class extends u{constructor(e,t){super("YAMLWarning",e,t)}},WM._defineProperty=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},WM.defaultTagPrefix="tag:yaml.org,2002:",WM.defaultTags={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"},WM}function KM(){if($M)return HM;$M=1;var e=GM();class t extends e.Node{constructor(){super(e.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(t,n){return this.context=t,this.range=new e.Range(n,n+1),n+1}}class n extends e.Node{constructor(e,t){super(e,t),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(n,r){this.context=n;const{parseNode:a,src:i}=n;let{atLineStart:o,lineStart:s}=n;o||this.type!==e.Type.SEQ_ITEM||(this.error=new e.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));const u=o?r-s:n.indent;let l=e.Node.endOfWhiteSpace(i,r+1),c=i[l];const p="#"===c,d=[];let f=null;for(;"\n"===c||"#"===c;){if("#"===c){const t=e.Node.endOfLine(i,l+1);d.push(new e.Range(l,t)),l=t}else{o=!0,s=l+1;"\n"===i[e.Node.endOfWhiteSpace(i,s)]&&0===d.length&&(f=new t,s=f.parse({src:i},s)),l=e.Node.endOfIndent(i,s)}c=i[l]}if(e.Node.nextNodeIsIndented(c,l-(s+u),this.type!==e.Type.SEQ_ITEM)?this.node=a({atLineStart:o,inCollection:!1,indent:u,lineStart:s,parent:this},l):c&&s>r+1&&(l=s-1),this.node){if(f){const e=n.parent.items||n.parent.contents;e&&e.push(f)}d.length&&Array.prototype.push.apply(this.props,d),l=this.node.range.end}else if(p){const e=d[0];this.props.push(e),l=e.end}else l=e.Node.endOfLine(i,r+1);const m=this.node?this.node.valueRange.end:l;return this.valueRange=new e.Range(r,m),l}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:t},node:n,range:r,value:a}=this;if(null!=a)return a;const i=n?t.slice(r.start,n.range.start)+String(n):t.slice(r.start,r.end);return e.Node.addStringTerminator(t,r.end,i)}}class r extends e.Node{constructor(){super(e.Type.COMMENT)}parse(t,n){this.context=t;const r=this.parseComment(n);return this.range=new e.Range(n,r),r}}function a(t){let r=t;for(;r instanceof n;)r=r.node;if(!(r instanceof i))return null;const a=r.items.length;let o=-1;for(let t=a-1;t>=0;--t){const n=r.items[t];if(n.type===e.Type.COMMENT){const{indent:e,lineStart:r}=n.context;if(e>0&&n.range.start>=r+e)break;o=t}else{if(n.type!==e.Type.BLANK_LINE)break;o=t}}if(-1===o)return null;const s=r.items.splice(o,a-o),u=s[0].range.start;for(;r.range.end=u,r.valueRange&&r.valueRange.end>u&&(r.valueRange.end=u),r!==t;)r=r.context.parent;return s}class i extends e.Node{static nextContentHasIndent(t,n,r){const a=e.Node.endOfLine(t,n)+1,o=t[n=e.Node.endOfWhiteSpace(t,a)];return!!o&&(n>=a+r||("#"===o||"\n"===o)&&i.nextContentHasIndent(t,n,r))}constructor(t){super(t.type===e.Type.SEQ_ITEM?e.Type.SEQ:e.Type.MAP);for(let e=t.props.length-1;e>=0;--e)if(t.props[e].start<t.context.lineStart){this.props=t.props.slice(0,e+1),t.props=t.props.slice(e+1);const n=t.props[0]||t.valueRange;t.range.start=n.start;break}this.items=[t];const n=a(t);n&&Array.prototype.push.apply(this.items,n)}get includesTrailingLines(){return this.items.length>0}parse(n,o){this.context=n;const{parseNode:s,src:u}=n;let l=e.Node.startOfLine(u,o);const c=this.items[0];c.context.parent=this,this.valueRange=e.Range.copy(c.valueRange);const p=c.range.start-c.context.lineStart;let d=o;d=e.Node.normalizeOffset(u,d);let f=u[d],m=e.Node.endOfWhiteSpace(u,l)===d,h=!1;for(;f;){for(;"\n"===f||"#"===f;){if(m&&"\n"===f&&!h){const e=new t;if(d=e.parse({src:u},d),this.valueRange.end=d,d>=u.length){f=null;break}this.items.push(e),d-=1}else if("#"===f){if(d<l+p&&!i.nextContentHasIndent(u,d,p))return d;const e=new r;if(d=e.parse({indent:p,lineStart:l,src:u},d),this.items.push(e),this.valueRange.end=d,d>=u.length){f=null;break}}if(l=d+1,d=e.Node.endOfIndent(u,l),e.Node.atBlank(u,d)){const t=e.Node.endOfWhiteSpace(u,d),n=u[t];n&&"\n"!==n&&"#"!==n||(d=t)}f=u[d],m=!0}if(!f)break;if(d!==l+p&&(m||":"!==f)){if(d<l+p){l>o&&(d=l);break}if(!this.error){const t="All collection items must start at the same column";this.error=new e.YAMLSyntaxError(this,t)}}if(c.type===e.Type.SEQ_ITEM){if("-"!==f){l>o&&(d=l);break}}else if("-"===f&&!this.error){const t=u[d+1];if(!t||"\n"===t||"\t"===t||" "===t){const t="A collection cannot be both a mapping and a sequence";this.error=new e.YAMLSyntaxError(this,t)}}const n=s({atLineStart:m,inCollection:!0,indent:p,lineStart:l,parent:this},d);if(!n)return d;if(this.items.push(n),this.valueRange.end=n.valueRange.end,d=e.Node.normalizeOffset(u,n.range.end),f=u[d],m=!1,h=n.includesTrailingLines,f){let e=d-1,t=u[e];for(;" "===t||"\t"===t;)t=u[--e];"\n"===t&&(l=e+1,m=!0)}const g=a(n);g&&Array.prototype.push.apply(this.items,g)}return d}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach((n=>{t=n.setOrigRanges(e,t)})),t}toString(){const{context:{src:t},items:n,range:r,value:a}=this;if(null!=a)return a;let i=t.slice(r.start,n[0].range.start)+String(n[0]);for(let e=1;e<n.length;++e){const t=n[e],{atLineStart:r,indent:a}=t.context;if(r)for(let e=0;e<a;++e)i+=" ";i+=String(t)}return e.Node.addStringTerminator(t,r.end,i)}}class o extends e.Node{constructor(){super(e.Type.DIRECTIVE),this.name=null}get parameters(){const e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}parseName(e){const{src:t}=this.context;let n=e,r=t[n];for(;r&&"\n"!==r&&"\t"!==r&&" "!==r;)r=t[n+=1];return this.name=t.slice(e,n),n}parseParameters(t){const{src:n}=this.context;let r=t,a=n[r];for(;a&&"\n"!==a&&"#"!==a;)a=n[r+=1];return this.valueRange=new e.Range(t,r),r}parse(t,n){this.context=t;let r=this.parseName(n+1);return r=this.parseParameters(r),r=this.parseComment(r),this.range=new e.Range(n,r),r}}class s extends e.Node{static startCommentOrEndBlankLine(t,n){const r=e.Node.endOfWhiteSpace(t,n),a=t[r];return"#"===a||"\n"===a?r:n}constructor(){super(e.Type.DOCUMENT),this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(n){const{src:a}=this.context;this.directives=[];let i=!0,u=!1,l=n;for(;!e.Node.atDocumentBoundary(a,l,e.Char.DIRECTIVES_END);)switch(l=s.startCommentOrEndBlankLine(a,l),a[l]){case"\n":if(i){const e=new t;l=e.parse({src:a},l),l<a.length&&this.directives.push(e)}else l+=1,i=!0;break;case"#":{const e=new r;l=e.parse({src:a},l),this.directives.push(e),i=!1}break;case"%":{const e=new o;l=e.parse({parent:this,src:a},l),this.directives.push(e),u=!0,i=!1}break;default:return u?this.error=new e.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l}return a[l]?(this.directivesEndMarker=new e.Range(l,l+3),l+3):(u?this.error=new e.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l)}parseContents(n){const{parseNode:i,src:o}=this.context;this.contents||(this.contents=[]);let u=n;for(;"-"===o[u-1];)u-=1;let l=e.Node.endOfWhiteSpace(o,n),c=u===n;for(this.valueRange=new e.Range(l);!e.Node.atDocumentBoundary(o,l,e.Char.DOCUMENT_END);){switch(o[l]){case"\n":if(c){const e=new t;l=e.parse({src:o},l),l<o.length&&this.contents.push(e)}else l+=1,c=!0;u=l;break;case"#":{const e=new r;l=e.parse({src:o},l),this.contents.push(e),c=!1}break;default:{const t=e.Node.endOfIndent(o,l),n=i({atLineStart:c,indent:-1,inFlow:!1,inCollection:!1,lineStart:u,parent:this},t);if(!n)return this.valueRange.end=t;this.contents.push(n),l=n.range.end,c=!1;const r=a(n);r&&Array.prototype.push.apply(this.contents,r)}}l=s.startCommentOrEndBlankLine(o,l)}if(this.valueRange.end=l,o[l]&&(this.documentEndMarker=new e.Range(l,l+3),l+=3,o[l])){if(l=e.Node.endOfWhiteSpace(o,l),"#"===o[l]){const e=new r;l=e.parse({src:o},l),this.contents.push(e)}switch(o[l]){case"\n":l+=1;break;case void 0:break;default:this.error=new e.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return l}parse(e,t){e.root=this,this.context=e;const{src:n}=e;let r=65279===n.charCodeAt(t)?t+1:t;return r=this.parseDirectives(r),r=this.parseContents(r),r}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.directives.forEach((n=>{t=n.setOrigRanges(e,t)})),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach((n=>{t=n.setOrigRanges(e,t)})),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}toString(){const{contents:t,directives:n,value:r}=this;if(null!=r)return r;let a=n.join("");return t.length>0&&((n.length>0||t[0].type===e.Type.COMMENT)&&(a+="---\n"),a+=t.join("")),"\n"!==a[a.length-1]&&(a+="\n"),a}}class u extends e.Node{parse(t,n){this.context=t;const{src:r}=t;let a=e.Node.endOfIdentifier(r,n+1);return this.valueRange=new e.Range(n+1,a),a=e.Node.endOfWhiteSpace(r,a),a=this.parseComment(a),a}}const l="CLIP",c="KEEP",p="STRIP";class d extends e.Node{constructor(e,t){super(e,t),this.blockIndent=null,this.chomping=l,this.header=null}get includesTrailingLines(){return this.chomping===c}get strValue(){if(!this.valueRange||!this.context)return null;let{start:t,end:n}=this.valueRange;const{indent:r,src:a}=this.context;if(this.valueRange.isEmpty())return"";let i=null,o=a[n-1];for(;"\n"===o||"\t"===o||" "===o;){if(n-=1,n<=t){if(this.chomping===c)break;return""}"\n"===o&&(i=n),o=a[n-1]}let s=n+1;i&&(this.chomping===c?(s=i,n=this.valueRange.end):n=i);const u=r+this.blockIndent,l=this.type===e.Type.BLOCK_FOLDED;let d=!0,f="",m="",h=!1;for(let r=t;r<n;++r){for(let e=0;e<u&&" "===a[r];++e)r+=1;const t=a[r];if("\n"===t)"\n"===m?f+="\n":m="\n";else{const i=e.Node.endOfLine(a,r),o=a.slice(r,i);r=i,l&&(" "===t||"\t"===t)&&r<s?(" "===m?m="\n":h||d||"\n"!==m||(m="\n\n"),f+=m+o,m=i<n&&a[i]||"",h=!0):(f+=m+o,m=l&&r<s?" ":"\n",h=!1),d&&""!==o&&(d=!1)}}return this.chomping===p?f:f+"\n"}parseBlockHeader(t){const{src:n}=this.context;let r=t+1,a="";for(;;){const i=n[r];switch(i){case"-":this.chomping=p;break;case"+":this.chomping=c;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":a+=i;break;default:return this.blockIndent=Number(a)||null,this.header=new e.Range(t,r),r}r+=1}}parseBlockValue(t){const{indent:n,src:r}=this.context,a=!!this.blockIndent;let i=t,o=t,s=1;for(let t=r[i];"\n"===t&&(i+=1,!e.Node.atDocumentBoundary(r,i));t=r[i]){const t=e.Node.endOfBlockIndent(r,n,i);if(null===t)break;const u=r[t],l=t-(i+n);if(this.blockIndent){if(u&&"\n"!==u&&l<this.blockIndent){if("#"===r[t])break;if(!this.error){const t=`Block scalars must not be less indented than their ${a?"explicit indentation indicator":"first line"}`;this.error=new e.YAMLSemanticError(this,t)}}}else if("\n"!==r[t]){if(l<s){const t="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new e.YAMLSemanticError(this,t)}this.blockIndent=l}else l>s&&(s=l);i="\n"===r[t]?t:o=e.Node.endOfLine(r,t)}return this.chomping!==c&&(i=r[o]?o+1:o),this.valueRange=new e.Range(t+1,i),i}parse(t,n){this.context=t;const{src:r}=t;let a=this.parseBlockHeader(n);return a=e.Node.endOfWhiteSpace(r,a),a=this.parseComment(a),a=this.parseBlockValue(a),a}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.header?this.header.setOrigRange(e,t):t}}class f extends e.Node{constructor(e,t){super(e,t),this.items=null}prevNodeIsJsonLike(t=this.items.length){const n=this.items[t-1];return!!n&&(n.jsonLike||n.type===e.Type.COMMENT&&this.prevNodeIsJsonLike(t-1))}parse(n,a){this.context=n;const{parseNode:i,src:o}=n;let{indent:s,lineStart:u}=n,l=o[a];this.items=[{char:l,offset:a}];let c=e.Node.endOfWhiteSpace(o,a+1);for(l=o[c];l&&"]"!==l&&"}"!==l;){switch(l){case"\n":u=c+1;if("\n"===o[e.Node.endOfWhiteSpace(o,u)]){const e=new t;u=e.parse({src:o},u),this.items.push(e)}if(c=e.Node.endOfIndent(o,u),c<=u+s&&(l=o[c],c<u+s||"]"!==l&&"}"!==l)){const t="Insufficient indentation in flow collection";this.error=new e.YAMLSemanticError(this,t)}break;case",":this.items.push({char:l,offset:c}),c+=1;break;case"#":{const e=new r;c=e.parse({src:o},c),this.items.push(e)}break;case"?":case":":{const e=o[c+1];if("\n"===e||"\t"===e||" "===e||","===e||":"===l&&this.prevNodeIsJsonLike()){this.items.push({char:l,offset:c}),c+=1;break}}default:{const t=i({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:u,parent:this},c);if(!t)return this.valueRange=new e.Range(a,c),c;this.items.push(t),c=e.Node.normalizeOffset(o,t.range.end)}}c=e.Node.endOfWhiteSpace(o,c),l=o[c]}return this.valueRange=new e.Range(a,c+1),l&&(this.items.push({char:l,offset:c}),c=e.Node.endOfWhiteSpace(o,c+1),c=this.parseComment(c)),c}setOrigRanges(t,n){return n=super.setOrigRanges(t,n),this.items.forEach((r=>{if(r instanceof e.Node)n=r.setOrigRanges(t,n);else if(0===t.length)r.origOffset=r.offset;else{let e=n;for(;e<t.length&&!(t[e]>r.offset);)++e;r.origOffset=r.offset+e,n=e}})),n}toString(){const{context:{src:t},items:n,range:r,value:a}=this;if(null!=a)return a;const i=n.filter((t=>t instanceof e.Node));let o="",s=r.start;return i.forEach((e=>{const n=t.slice(s,e.range.start);s=e.range.end,o+=n+String(e),"\n"===o[o.length-1]&&"\n"!==t[s-1]&&"\n"===t[s]&&(s+=1)})),o+=t.slice(s,r.end),e.Node.addStringTerminator(t,r.end,o)}}class m extends e.Node{static endOfQuote(e,t){let n=e[t];for(;n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const t=[],{start:n,end:r}=this.valueRange,{indent:a,src:i}=this.context;'"'!==i[r-1]&&t.push(new e.YAMLSyntaxError(this,'Missing closing "quote'));let o="";for(let s=n+1;s<r-1;++s){const n=i[s];if("\n"===n){e.Node.atDocumentBoundary(i,s+1)&&t.push(new e.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));const{fold:n,offset:r,error:u}=e.Node.foldNewline(i,s,a);o+=n,s=r,u&&t.push(new e.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===n)switch(s+=1,i[s]){case"0":o+="\0";break;case"a":o+="";break;case"b":o+="\b";break;case"e":o+="";break;case"f":o+="\f";break;case"n":o+="\n";break;case"r":o+="\r";break;case"t":case"\t":o+="\t";break;case"v":o+="\v";break;case"N":o+="
";break;case"_":o+=" ";break;case"L":o+="\u2028";break;case"P":o+="\u2029";break;case" ":o+=" ";break;case'"':o+='"';break;case"/":o+="/";break;case"\\":o+="\\";break;case"x":o+=this.parseCharCode(s+1,2,t),s+=2;break;case"u":o+=this.parseCharCode(s+1,4,t),s+=4;break;case"U":o+=this.parseCharCode(s+1,8,t),s+=8;break;case"\n":for(;" "===i[s+1]||"\t"===i[s+1];)s+=1;break;default:t.push(new e.YAMLSyntaxError(this,`Invalid escape sequence ${i.substr(s-1,2)}`)),o+="\\"+i[s]}else if(" "===n||"\t"===n){const e=s;let t=i[s+1];for(;" "===t||"\t"===t;)s+=1,t=i[s+1];"\n"!==t&&(o+=s>e?i.slice(e,s+1):n)}else o+=n}return t.length>0?{errors:t,str:o}:o}parseCharCode(t,n,r){const{src:a}=this.context,i=a.substr(t,n),o=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;return isNaN(o)?(r.push(new e.YAMLSyntaxError(this,`Invalid escape sequence ${a.substr(t-2,n+2)}`)),a.substr(t-2,n+2)):String.fromCodePoint(o)}parse(t,n){this.context=t;const{src:r}=t;let a=m.endOfQuote(r,n+1);return this.valueRange=new e.Range(n,a),a=e.Node.endOfWhiteSpace(r,a),a=this.parseComment(a),a}}class h extends e.Node{static endOfQuote(e,t){let n=e[t];for(;n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const t=[],{start:n,end:r}=this.valueRange,{indent:a,src:i}=this.context;"'"!==i[r-1]&&t.push(new e.YAMLSyntaxError(this,"Missing closing 'quote"));let o="";for(let s=n+1;s<r-1;++s){const n=i[s];if("\n"===n){e.Node.atDocumentBoundary(i,s+1)&&t.push(new e.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));const{fold:n,offset:r,error:u}=e.Node.foldNewline(i,s,a);o+=n,s=r,u&&t.push(new e.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===n)o+=n,s+=1,"'"!==i[s]&&t.push(new e.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(" "===n||"\t"===n){const e=s;let t=i[s+1];for(;" "===t||"\t"===t;)s+=1,t=i[s+1];"\n"!==t&&(o+=s>e?i.slice(e,s+1):n)}else o+=n}return t.length>0?{errors:t,str:o}:o}parse(t,n){this.context=t;const{src:r}=t;let a=h.endOfQuote(r,n+1);return this.valueRange=new e.Range(n,a),a=e.Node.endOfWhiteSpace(r,a),a=this.parseComment(a),a}}class g{static parseType(t,n,r){switch(t[n]){case"*":return e.Type.ALIAS;case">":return e.Type.BLOCK_FOLDED;case"|":return e.Type.BLOCK_LITERAL;case"{":return e.Type.FLOW_MAP;case"[":return e.Type.FLOW_SEQ;case"?":return!r&&e.Node.atBlank(t,n+1,!0)?e.Type.MAP_KEY:e.Type.PLAIN;case":":return!r&&e.Node.atBlank(t,n+1,!0)?e.Type.MAP_VALUE:e.Type.PLAIN;case"-":return!r&&e.Node.atBlank(t,n+1,!0)?e.Type.SEQ_ITEM:e.Type.PLAIN;case'"':return e.Type.QUOTE_DOUBLE;case"'":return e.Type.QUOTE_SINGLE;default:return e.Type.PLAIN}}constructor(t={},{atLineStart:r,inCollection:a,inFlow:o,indent:s,lineStart:l,parent:c}={}){e._defineProperty(this,"parseNode",((t,r)=>{if(e.Node.atDocumentBoundary(this.src,r))return null;const a=new g(this,t),{props:o,type:s,valueStart:l}=a.parseProps(r),c=function(t,r){switch(t){case e.Type.ALIAS:return new u(t,r);case e.Type.BLOCK_FOLDED:case e.Type.BLOCK_LITERAL:return new d(t,r);case e.Type.FLOW_MAP:case e.Type.FLOW_SEQ:return new f(t,r);case e.Type.MAP_KEY:case e.Type.MAP_VALUE:case e.Type.SEQ_ITEM:return new n(t,r);case e.Type.COMMENT:case e.Type.PLAIN:return new e.PlainValue(t,r);case e.Type.QUOTE_DOUBLE:return new m(t,r);case e.Type.QUOTE_SINGLE:return new h(t,r);default:return null}}(s,o);let p=c.parse(a,l);if(c.range=new e.Range(r,p),p<=r&&(c.error=new Error("Node#parse consumed no characters"),c.error.parseEnd=p,c.error.source=c,c.range.end=r+1),a.nodeStartsCollection(c)){c.error||a.atLineStart||a.parent.type!==e.Type.DOCUMENT||(c.error=new e.YAMLSyntaxError(c,"Block collection must not have preceding content here (e.g. directives-end indicator)"));const t=new i(c);return p=t.parse(new g(a),p),t.range=new e.Range(r,p),t}return c})),this.atLineStart=null!=r?r:t.atLineStart||!1,this.inCollection=null!=a?a:t.inCollection||!1,this.inFlow=null!=o?o:t.inFlow||!1,this.indent=null!=s?s:t.indent,this.lineStart=null!=l?l:t.lineStart,this.parent=null!=c?c:t.parent||{},this.root=t.root,this.src=t.src}nodeStartsCollection(t){const{inCollection:r,inFlow:a,src:i}=this;if(r||a)return!1;if(t instanceof n)return!0;let o=t.range.end;return"\n"!==i[o]&&"\n"!==i[o-1]&&(o=e.Node.endOfWhiteSpace(i,o),":"===i[o])}parseProps(t){const{inFlow:n,parent:r,src:a}=this,i=[];let o=!1,s=a[t=this.atLineStart?e.Node.endOfIndent(a,t):e.Node.endOfWhiteSpace(a,t)];for(;s===e.Char.ANCHOR||s===e.Char.COMMENT||s===e.Char.TAG||"\n"===s;){if("\n"===s){let n,i=t;do{n=i+1,i=e.Node.endOfIndent(a,n)}while("\n"===a[i]);const s=i-(n+this.indent),u=r.type===e.Type.SEQ_ITEM&&r.context.atLineStart;if("#"!==a[i]&&!e.Node.nextNodeIsIndented(a[i],s,!u))break;this.atLineStart=!0,this.lineStart=n,o=!1,t=i}else if(s===e.Char.COMMENT){const n=e.Node.endOfLine(a,t+1);i.push(new e.Range(t,n)),t=n}else{let n=e.Node.endOfIdentifier(a,t+1);s===e.Char.TAG&&","===a[n]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(a.slice(t+1,n+13))&&(n=e.Node.endOfIdentifier(a,n+5)),i.push(new e.Range(t,n)),o=!0,t=e.Node.endOfWhiteSpace(a,n)}s=a[t]}o&&":"===s&&e.Node.atBlank(a,t+1,!0)&&(t-=1);return{props:i,type:g.parseType(a,t,n),valueStart:t}}}return HM.parse=function(e){const t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,((e,n)=>(e.length>1&&t.push(n),"\n"))));const n=[];let r=0;do{const t=new s,a=new g({src:e});r=t.parse(a,r),n.push(t)}while(r<e.length);return n.setOrigRanges=()=>{if(0===t.length)return!1;for(let e=1;e<t.length;++e)t[e]-=e;let e=0;for(let r=0;r<n.length;++r)e=n[r].setOrigRanges(t,e);return t.splice(0,t.length),!0},n.toString=()=>n.join("...\n"),n},HM}var YM,QM={},XM={};function JM(){if(YM)return XM;YM=1;var e=GM();function t(e,t,n){return n?-1===n.indexOf("\n")?`${e} #${n}`:`${e}\n`+n.replace(/^/gm,`${t||""}#`):e}class n{}function r(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>r(e,String(t),n)));if(e&&"function"==typeof e.toJSON){const r=n&&n.anchors&&n.anchors.get(e);r&&(n.onCreate=e=>{r.res=e,delete n.onCreate});const a=e.toJSON(t,n);return r&&n.onCreate&&n.onCreate(a),a}return n&&n.keep||"bigint"!=typeof e?e:Number(e)}class a extends n{constructor(e){super(),this.value=e}toJSON(e,t){return t&&t.keep?this.value:r(this.value,e,t)}toString(){return String(this.value)}}function i(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if(Number.isInteger(n)&&n>=0){const e=[];e[n]=r,r=e}else{const e={};Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=e}}return e.createNode(r,!1)}const o=e=>null==e||"object"==typeof e&&e[Symbol.iterator]().next().done;class s extends n{constructor(t){super(),e._defineProperty(this,"items",[]),this.schema=t}addIn(e,t){if(o(e))this.add(t);else{const[n,...r]=e,a=this.get(n,!0);if(a instanceof s)a.addIn(r,t);else{if(void 0!==a||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,i(this.schema,r,t))}}}deleteIn([e,...t]){if(0===t.length)return this.delete(e);const n=this.get(e,!0);if(n instanceof s)return n.deleteIn(t);throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}getIn([e,...t],n){const r=this.get(e,!0);return 0===t.length?!n&&r instanceof a?r.value:r:r instanceof s?r.getIn(t,n):void 0}hasAllNullValues(){return this.items.every((e=>{if(!e||"PAIR"!==e.type)return!1;const t=e.value;return null==t||t instanceof a&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}hasIn([e,...t]){if(0===t.length)return this.has(e);const n=this.get(e,!0);return n instanceof s&&n.hasIn(t)}setIn([e,...t],n){if(0===t.length)this.set(e,n);else{const r=this.get(e,!0);if(r instanceof s)r.setIn(t,n);else{if(void 0!==r||!this.schema)throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`);this.set(e,i(this.schema,t,n))}}}toJSON(){return null}toString(n,{blockItem:r,flowChars:a,isMap:i,itemIndent:o},u,l){const{indent:c,indentStep:p,stringify:d}=n,f=this.type===e.Type.FLOW_MAP||this.type===e.Type.FLOW_SEQ||n.inFlow;f&&(o+=p);const m=i&&this.hasAllNullValues();n=Object.assign({},n,{allNullValues:m,indent:o,inFlow:f,type:null});let h=!1,g=!1;const y=this.items.reduce(((e,r,a)=>{let i;r&&(!h&&r.spaceBefore&&e.push({type:"comment",str:""}),r.commentBefore&&r.commentBefore.match(/^.*$/gm).forEach((t=>{e.push({type:"comment",str:`#${t}`})})),r.comment&&(i=r.comment),f&&(!h&&r.spaceBefore||r.commentBefore||r.comment||r.key&&(r.key.commentBefore||r.key.comment)||r.value&&(r.value.commentBefore||r.value.comment))&&(g=!0)),h=!1;let s=d(r,n,(()=>i=null),(()=>h=!0));return f&&!g&&s.includes("\n")&&(g=!0),f&&a<this.items.length-1&&(s+=","),s=t(s,o,i),h&&(i||f)&&(h=!1),e.push({type:"item",str:s}),e}),[]);let v;if(0===y.length)v=a.start+a.end;else if(f){const{start:e,end:t}=a,n=y.map((e=>e.str));if(g||n.reduce(((e,t)=>e+t.length+2),2)>s.maxFlowStringSingleLineLength){v=e;for(const e of n)v+=e?`\n${p}${c}${e}`:"\n";v+=`\n${c}${t}`}else v=`${e} ${n.join(" ")} ${t}`}else{const e=y.map(r);v=e.shift();for(const t of e)v+=t?`\n${c}${t}`:"\n"}return this.comment?(v+="\n"+this.comment.replace(/^/gm,`${c}#`),u&&u()):h&&l&&l(),v}}function u(e){let t=e instanceof a?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}e._defineProperty(s,"maxFlowStringSingleLineLength",60);class l extends s{add(e){this.items.push(e)}delete(e){const t=u(e);if("number"!=typeof t)return!1;return this.items.splice(t,1).length>0}get(e,t){const n=u(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&r instanceof a?r.value:r}has(e){const t=u(e);return"number"==typeof t&&t<this.items.length}set(e,t){const n=u(e);if("number"!=typeof n)throw new Error(`Expected a valid index, not ${e}.`);this.items[n]=t}toJSON(e,t){const n=[];t&&t.onCreate&&t.onCreate(n);let a=0;for(const e of this.items)n.push(r(e,String(a++),t));return n}toString(e,t,n){return e?super.toString(e,{blockItem:e=>"comment"===e.type?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},t,n):JSON.stringify(this)}}class c extends n{constructor(e,t=null){super(),this.key=e,this.value=t,this.type=c.Type.PAIR}get commentBefore(){return this.key instanceof n?this.key.commentBefore:void 0}set commentBefore(e){if(null==this.key&&(this.key=new a(null)),!(this.key instanceof n)){throw new Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.")}this.key.commentBefore=e}addToJSMap(e,t){const a=r(this.key,"",e);if(t instanceof Map){const n=r(this.value,a,e);t.set(a,n)}else if(t instanceof Set)t.add(a);else{const i=((e,t,r)=>null===t?"":"object"!=typeof t?String(t):e instanceof n&&r&&r.doc?e.toString({anchors:Object.create(null),doc:r.doc,indent:"",indentStep:r.indentStep,inFlow:!0,inStringifyKey:!0,stringify:r.stringify}):JSON.stringify(t))(this.key,a,e),o=r(this.value,i,e);i in t?Object.defineProperty(t,i,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[i]=o}return t}toJSON(e,t){const n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(r,i,o){if(!r||!r.doc)return JSON.stringify(this);const{indent:u,indentSeq:c,simpleKeys:p}=r.doc.options;let{key:d,value:f}=this,m=d instanceof n&&d.comment;if(p){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(d instanceof s){throw new Error("With simple keys, collection cannot be used as a key value")}}let h=!p&&(!d||m||(d instanceof n?d instanceof s||d.type===e.Type.BLOCK_FOLDED||d.type===e.Type.BLOCK_LITERAL:"object"==typeof d));const{doc:g,indent:y,indentStep:v,stringify:b}=r;r=Object.assign({},r,{implicitKey:!h,indent:y+v});let w=!1,_=b(d,r,(()=>m=null),(()=>w=!0));if(_=t(_,r.indent,m),!h&&_.length>1024){if(p)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");h=!0}if(r.allNullValues&&!p)return this.comment?(_=t(_,r.indent,this.comment),i&&i()):w&&!m&&o&&o(),r.inFlow&&!h?_:`? ${_}`;_=h?`? ${_}\n${y}:`:`${_}:`,this.comment&&(_=t(_,r.indent,this.comment),i&&i());let x="",k=null;if(f instanceof n){if(f.spaceBefore&&(x="\n"),f.commentBefore){x+=`\n${f.commentBefore.replace(/^/gm,`${r.indent}#`)}`}k=f.comment}else f&&"object"==typeof f&&(f=g.schema.createNode(f,!0));r.implicitKey=!1,!h&&!this.comment&&f instanceof a&&(r.indentAtStart=_.length+1),w=!1,!c&&u>=2&&!r.inFlow&&!h&&f instanceof l&&f.type!==e.Type.FLOW_SEQ&&!f.tag&&!g.anchors.getName(f)&&(r.indent=r.indent.substr(2));const S=b(f,r,(()=>k=null),(()=>w=!0));let E=" ";if(x||this.comment)E=`${x}\n${r.indent}`;else if(!h&&f instanceof s){("["===S[0]||"{"===S[0])&&!S.includes("\n")||(E=`\n${r.indent}`)}else"\n"===S[0]&&(E="");return w&&!k&&o&&o(),t(_+E+S,r.indent,k)}}e._defineProperty(c,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});const p=(e,t)=>{if(e instanceof d){const n=t.get(e.source);return n.count*n.aliasCount}if(e instanceof s){let n=0;for(const r of e.items){const e=p(r,t);e>n&&(n=e)}return n}if(e instanceof c){const n=p(e.key,t),r=p(e.value,t);return Math.max(n,r)}return 1};class d extends n{static stringify({range:e,source:t},{anchors:n,doc:r,implicitKey:a,inStringifyKey:i}){let o=Object.keys(n).find((e=>n[e]===t));if(!o&&i&&(o=r.anchors.getName(t)||r.anchors.newName()),o)return`*${o}${a?" ":""}`;const s=r.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${s} [${e}]`)}constructor(t){super(),this.source=t,this.type=e.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(t,n){if(!n)return r(this.source,t,n);const{anchors:a,maxAliasCount:i}=n,o=a.get(this.source);if(!o||void 0===o.res){const t="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new e.YAMLReferenceError(this.cstNode,t):new ReferenceError(t)}if(i>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=p(this.source,a)),o.count*o.aliasCount>i)){const t="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new e.YAMLReferenceError(this.cstNode,t):new ReferenceError(t)}return o.res}toString(e){return d.stringify(this,e)}}function f(e,t){const n=t instanceof a?t.value:t;for(const r of e)if(r instanceof c){if(r.key===t||r.key===n)return r;if(r.key&&r.key.value===n)return r}}e._defineProperty(d,"default",!0);class m extends s{add(e,t){e?e instanceof c||(e=new c(e.key||e,e.value)):e=new c(e);const n=f(this.items,e.key),r=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error(`Key ${e.key} already set`);n.value=e.value}else if(r){const t=this.items.findIndex((t=>r(e,t)<0));-1===t?this.items.push(e):this.items.splice(t,0,e)}else this.items.push(e)}delete(e){const t=f(this.items,e);if(!t)return!1;return this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=f(this.items,e),r=n&&n.value;return!t&&r instanceof a?r.value:r}has(e){return!!f(this.items,e)}set(e,t){this.add(new c(e,t),!0)}toJSON(e,t,n){const r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);for(const e of this.items)e.addToJSMap(t,r);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!(e instanceof c))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,n)}}const h="<<";class g extends c{constructor(e){if(e instanceof c){let t=e.value;t instanceof l||(t=new l,t.items.push(e.value),t.range=e.value.range),super(e.key,t),this.range=e.range}else super(new a(h),new l);this.type=c.Type.MERGE_PAIR}addToJSMap(e,t){for(const{source:n}of this.value.items){if(!(n instanceof m))throw new Error("Merge sources must be maps");const r=n.toJSON(null,e,Map);for(const[e,n]of r)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}return t}toString(e,t){const n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];const r=super.toString(e,t);return this.value=n,r}}const y={defaultType:e.Type.BLOCK_LITERAL,lineWidth:76},v={defaultType:e.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function b(e,t,n){for(const{format:n,test:r,resolve:i}of t)if(r){const t=e.match(r);if(t){let e=i.apply(null,t);return e instanceof a||(e=new a(e)),n&&(e.format=n),e}}return n&&(e=n(e)),new a(e)}const w="flow",_="block",x="quoted",k=(e,t)=>{let n=e[t+1];for(;" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t};function S(e,t,n,{indentAtStart:r,lineWidth:a=80,minContentWidth:i=20,onFold:o,onOverflow:s}){if(!a||a<0)return e;const u=Math.max(1+i,1+a-t.length);if(e.length<=u)return e;const l=[],c={};let p,d,f=a-t.length;"number"==typeof r&&(r>a-Math.max(2,i)?l.push(0):f=a-r);let m=!1,h=-1,g=-1,y=-1;n===_&&(h=k(e,h),-1!==h&&(f=h+u));for(let t;t=e[h+=1];){if(n===x&&"\\"===t){switch(g=h,e[h+1]){case"x":h+=3;break;case"u":h+=5;break;case"U":h+=9;break;default:h+=1}y=h}if("\n"===t)n===_&&(h=k(e,h)),f=h+u,p=void 0;else{if(" "===t&&d&&" "!==d&&"\n"!==d&&"\t"!==d){const t=e[h+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(p=h)}if(h>=f)if(p)l.push(p),f=p+u,p=void 0;else if(n===x){for(;" "===d||"\t"===d;)d=t,t=e[h+=1],m=!0;const n=h>y+1?h-2:g-1;if(c[n])return e;l.push(n),c[n]=!0,f=n+u,p=void 0}else m=!0}d=t}if(m&&s&&s(),0===l.length)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r<l.length;++r){const a=l[r],i=l[r+1]||e.length;0===a?v=`\n${t}${e.slice(0,i)}`:(n===x&&c[a]&&(v+=`${e[a]}\\`),v+=`\n${t}${e.slice(a+1,i)}`)}return v}const E=({indentAtStart:e})=>e?Object.assign({indentAtStart:e},v.fold):v.fold,C=e=>/^(%|---|\.\.\.)/m.test(e);function D(e,t){const{implicitKey:n}=t,{jsonEncoding:r,minMultiLineLength:a}=v.doubleQuoted,i=JSON.stringify(e);if(r)return i;const o=t.indent||(C(e)?" ":"");let s="",u=0;for(let e=0,t=i[e];t;t=i[++e])if(" "===t&&"\\"===i[e+1]&&"n"===i[e+2]&&(s+=i.slice(u,e)+"\\ ",e+=1,u=e,t="\\"),"\\"===t)switch(i[e+1]){case"u":{s+=i.slice(u,e);const t=i.substr(e+2,4);switch(t){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:"00"===t.substr(0,2)?s+="\\x"+t.substr(2):s+=i.substr(e,6)}e+=5,u=e+1}break;case"n":if(n||'"'===i[e+2]||i.length<a)e+=1;else{for(s+=i.slice(u,e)+"\n\n";"\\"===i[e+2]&&"n"===i[e+3]&&'"'!==i[e+4];)s+="\n",e+=2;s+=o," "===i[e+2]&&(s+="\\"),e+=1,u=e+1}break;default:e+=1}return s=u?s+i.slice(u):i,n?s:S(s,o,x,E(t))}function O(e,t){if(t.implicitKey){if(/\n/.test(e))return D(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return D(e,t);const n=t.indent||(C(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${n}`)+"'";return t.implicitKey?r:S(r,n,w,E(t))}function N({comment:t,type:n,value:r},a,i,o){if(/\n[\t ]+$/.test(r)||/^\s*$/.test(r))return D(r,a);const s=a.indent||(a.forceBlockIndent||C(r)?" ":""),u=s?"2":"1",l=n!==e.Type.BLOCK_FOLDED&&(n===e.Type.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;const r=t-n,a=e.length;if(a<=r)return!1;for(let t=0,n=0;t<a;++t)if("\n"===e[t]){if(t-n>r)return!0;if(n=t+1,a-n<=r)return!1}return!0}(r,v.fold.lineWidth,s.length));let c=l?"|":">";if(!r)return c+"\n";let p="",d="";if(r=r.replace(/[\n\t ]*$/,(e=>{const t=e.indexOf("\n");return-1===t?c+="-":r!==e&&t===e.length-1||(c+="+",o&&o()),d=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(e=>{-1!==e.indexOf(" ")&&(c+=u);const t=e.match(/ +$/);return t?(p=e.slice(0,-t[0].length),t[0]):(p=e,"")})),d&&(d=d.replace(/\n+(?!\n|$)/g,`$&${s}`)),p&&(p=p.replace(/\n+/g,`$&${s}`)),t&&(c+=" #"+t.replace(/ ?[\r\n]+/g," "),i&&i()),!r)return`${c}${u}\n${s}${d}`;if(l)return r=r.replace(/\n+/g,`$&${s}`),`${c}\n${s}${p}${r}${d}`;r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${s}`);const f=S(`${p}${r}${d}`,s,_,v.fold);return`${c}\n${s}${f}`}function j(t,n){let r,a,i;switch(n.type){case e.Type.FLOW_MAP:r="}",a="flow map";break;case e.Type.FLOW_SEQ:r="]",a="flow sequence";break;default:return void t.push(new e.YAMLSemanticError(n,"Not a flow collection!?"))}for(let t=n.items.length-1;t>=0;--t){const r=n.items[t];if(!r||r.type!==e.Type.COMMENT){i=r;break}}if(i&&i.char!==r){const o=`Expected ${a} to end with ${r}`;let s;"number"==typeof i.offset?(s=new e.YAMLSemanticError(n,o),s.offset=i.offset+1):(s=new e.YAMLSemanticError(i,o),i.range&&i.range.end&&(s.offset=i.range.end-i.range.start)),t.push(s)}}function P(t,n){const r=n.context.src[n.range.start-1];if("\n"!==r&&"\t"!==r&&" "!==r){const r="Comments must be separated from other tokens by white space characters";t.push(new e.YAMLSemanticError(n,r))}}function T(t,n){const r=String(n),a=r.substr(0,8)+"..."+r.substr(-8);return new e.YAMLSemanticError(t,`The "${a}" key is too long`)}function A(e,t){for(const{afterKey:n,before:r,comment:a}of t){let t=e.items[r];t?(n&&t.value&&(t=t.value),void 0===a?!n&&t.commentBefore||(t.spaceBefore=!0):t.commentBefore?t.commentBefore+="\n"+a:t.commentBefore=a):void 0!==a&&(e.comment?e.comment+="\n"+a:e.comment=a)}}function R(e,t){const n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach((n=>{n.source||(n.source=t),e.errors.push(n)})),n.str):""}function I(t,n){const{tag:r,type:a}=n;let i=!1;if(r){const{handle:a,suffix:o,verbatim:s}=r;if(s){if("!"!==s&&"!!"!==s)return s;const r=`Verbatim tags aren't resolved, so ${s} is invalid.`;t.errors.push(new e.YAMLSemanticError(n,r))}else if("!"!==a||o)try{return function(t,n){const{handle:r,suffix:a}=n.tag;let i=t.tagPrefixes.find((e=>e.handle===r));if(!i){const a=t.getDefaults().tagPrefixes;if(a&&(i=a.find((e=>e.handle===r))),!i)throw new e.YAMLSemanticError(n,`The ${r} tag handle is non-default and was not declared.`)}if(!a)throw new e.YAMLSemanticError(n,`The ${r} tag has no suffix.`);if("!"===r&&"1.0"===(t.version||t.options.version)){if("^"===a[0])return t.warnings.push(new e.YAMLWarning(n,"YAML 1.0 ^ tag expansion is not supported")),a;if(/[:/]/.test(a)){const e=a.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${a}`}}return i.prefix+decodeURIComponent(a)}(t,n)}catch(e){t.errors.push(e)}else i=!0}switch(a){case e.Type.BLOCK_FOLDED:case e.Type.BLOCK_LITERAL:case e.Type.QUOTE_DOUBLE:case e.Type.QUOTE_SINGLE:return e.defaultTags.STR;case e.Type.FLOW_MAP:case e.Type.MAP:return e.defaultTags.MAP;case e.Type.FLOW_SEQ:case e.Type.SEQ:return e.defaultTags.SEQ;case e.Type.PLAIN:return i?e.defaultTags.STR:null;default:return null}}function M(e,t,n){const{tags:r}=e.schema,i=[];for(const o of r)if(o.tag===n){if(!o.test){const n=o.resolve(e,t);return n instanceof s?n:new a(n)}i.push(o)}const o=R(e,t);return"string"==typeof o&&i.length>0?b(o,i,r.scalarFallback):null}function L(t,n,r){try{const e=M(t,n,r);if(e)return r&&n.tag&&(e.tag=r),e}catch(e){return e.source||(e.source=n),t.errors.push(e),null}try{const a=function({type:t}){switch(t){case e.Type.FLOW_MAP:case e.Type.MAP:return e.defaultTags.MAP;case e.Type.FLOW_SEQ:case e.Type.SEQ:return e.defaultTags.SEQ;default:return e.defaultTags.STR}}(n);if(!a)throw new Error(`The tag ${r} is unavailable`);const i=`The tag ${r} is unavailable, falling back to ${a}`;t.warnings.push(new e.YAMLWarning(n,i));const o=M(t,n,a);return o.tag=r,o}catch(r){const a=new e.YAMLReferenceError(n,r.message);return a.stack=r.stack,t.errors.push(a),null}}const F=t=>{if(!t)return!1;const{type:n}=t;return n===e.Type.MAP_KEY||n===e.Type.MAP_VALUE||n===e.Type.SEQ_ITEM};function z(t,n){if(!n)return null;n.error&&t.errors.push(n.error);const{comments:r,hasAnchor:a,hasTag:i}=function(t,n){const r={before:[],after:[]};let a=!1,i=!1;const o=F(n.context.parent)?n.context.parent.props.concat(n.props):n.props;for(const{start:s,end:u}of o)switch(n.context.src[s]){case e.Char.COMMENT:{if(!n.commentHasRequiredWhitespace(s)){const r="Comments must be separated from other tokens by white space characters";t.push(new e.YAMLSemanticError(n,r))}const{header:a,valueRange:i}=n;(i&&(s>i.start||a&&s>a.start)?r.after:r.before).push(n.context.src.slice(s+1,u));break}case e.Char.ANCHOR:if(a){const r="A node can have at most one anchor";t.push(new e.YAMLSemanticError(n,r))}a=!0;break;case e.Char.TAG:if(i){const r="A node can have at most one tag";t.push(new e.YAMLSemanticError(n,r))}i=!0}return{comments:r,hasAnchor:a,hasTag:i}}(t.errors,n);if(a){const{anchors:e}=t,r=n.anchor,a=e.getNode(r);a&&(e.map[e.newName(r)]=a),e.map[r]=n}if(n.type===e.Type.ALIAS&&(a||i)){const r="An alias node must not specify any properties";t.errors.push(new e.YAMLSemanticError(n,r))}const o=function(t,n){const{anchors:r,errors:a,schema:i}=t;if(n.type===e.Type.ALIAS){const t=n.rawValue,i=r.getNode(t);if(!i){const r=`Aliased anchor not found: ${t}`;return a.push(new e.YAMLReferenceError(n,r)),null}const o=new d(i);return r._cstAliases.push(o),o}const o=I(t,n);if(o)return L(t,n,o);if(n.type!==e.Type.PLAIN){const t=`Failed to resolve ${n.type} node here`;return a.push(new e.YAMLSyntaxError(n,t)),null}try{return b(R(t,n),i.tags,i.tags.scalarFallback)}catch(e){return e.source||(e.source=n),a.push(e),null}}(t,n);if(o){o.range=[n.range.start,n.range.end],t.options.keepCstNodes&&(o.cstNode=n),t.options.keepNodeTypes&&(o.type=n.type);const e=r.before.join("\n");e&&(o.commentBefore=o.commentBefore?`${o.commentBefore}\n${e}`:e);const a=r.after.join("\n");a&&(o.comment=o.comment?`${o.comment}\n${a}`:a)}return n.resolved=o}const B=({context:{lineStart:t,node:n,src:r},props:a})=>{if(0===a.length)return!1;const{start:i}=a[0];if(n&&i>n.valueRange.start)return!1;if(r[i]!==e.Char.COMMENT)return!1;for(let e=t;e<i;++e)if("\n"===r[e])return!1;return!0};function U(t,n){if(!B(t))return;const r=t.getPropValue(0,e.Char.COMMENT,!0);let a=!1;const i=n.value.commentBefore;if(i&&i.startsWith(r))n.value.commentBefore=i.substr(r.length+1),a=!0;else{const e=n.value.comment;!t.node&&e&&e.startsWith(r)&&(n.value.comment=e.substr(r.length+1),a=!0)}a&&(n.comment=r)}return XM.Alias=d,XM.Collection=s,XM.Merge=g,XM.Node=n,XM.Pair=c,XM.Scalar=a,XM.YAMLMap=m,XM.YAMLSeq=l,XM.addComment=t,XM.binaryOptions=y,XM.boolOptions={trueStr:"true",falseStr:"false"},XM.findPair=f,XM.intOptions={asBigInt:!1},XM.isEmptyPath=o,XM.nullOptions={nullStr:"null"},XM.resolveMap=function(t,n){if(n.type!==e.Type.MAP&&n.type!==e.Type.FLOW_MAP){const r=`A ${n.type} node cannot be resolved as a mapping`;return t.errors.push(new e.YAMLSyntaxError(n,r)),null}const{comments:r,items:a}=n.type===e.Type.FLOW_MAP?function(t,n){const r=[],a=[];let i,o=!1,s="{";for(let u=0;u<n.items.length;++u){const l=n.items[u];if("string"==typeof l.char){const{char:r,offset:p}=l;if("?"===r&&void 0===i&&!o){o=!0,s=":";continue}if(":"===r){if(void 0===i&&(i=null),":"===s){s=",";continue}}else if(o&&(void 0===i&&","!==r&&(i=null),o=!1),void 0!==i&&(a.push(new c(i)),i=void 0,","===r)){s=":";continue}if("}"===r){if(u===n.items.length-1)continue}else if(r===s){s=":";continue}const d=`Flow map contains an unexpected ${r}`,f=new e.YAMLSyntaxError(n,d);f.offset=p,t.errors.push(f)}else l.type===e.Type.BLANK_LINE?r.push({afterKey:!!i,before:a.length}):l.type===e.Type.COMMENT?(P(t.errors,l),r.push({afterKey:!!i,before:a.length,comment:l.comment})):void 0===i?(","===s&&t.errors.push(new e.YAMLSemanticError(l,"Separator , missing in flow map")),i=z(t,l)):(","!==s&&t.errors.push(new e.YAMLSemanticError(l,"Indicator : missing in flow map entry")),a.push(new c(i,z(t,l))),i=void 0,o=!1)}j(t.errors,n),void 0!==i&&a.push(new c(i));return{comments:r,items:a}}(t,n):function(t,n){const r=[],a=[];let i,o=null;for(let s=0;s<n.items.length;++s){const u=n.items[s];switch(u.type){case e.Type.BLANK_LINE:r.push({afterKey:!!i,before:a.length});break;case e.Type.COMMENT:r.push({afterKey:!!i,before:a.length,comment:u.comment});break;case e.Type.MAP_KEY:void 0!==i&&a.push(new c(i)),u.error&&t.errors.push(u.error),i=z(t,u.node),o=null;break;case e.Type.MAP_VALUE:{if(void 0===i&&(i=null),u.error&&t.errors.push(u.error),!u.context.atLineStart&&u.node&&u.node.type===e.Type.MAP&&!u.node.context.atLineStart){const n="Nested mappings are not allowed in compact mappings";t.errors.push(new e.YAMLSemanticError(u.node,n))}let r=u.node;if(!r&&u.props.length>0){r=new e.PlainValue(e.Type.PLAIN,[]),r.context={parent:u,src:u.context.src};const t=u.range.start+1;if(r.range={start:t,end:t},r.valueRange={start:t,end:t},"number"==typeof u.range.origStart){const e=u.range.origStart+1;r.range.origStart=r.range.origEnd=e,r.valueRange.origStart=r.valueRange.origEnd=e}}const s=new c(i,z(t,r));U(u,s),a.push(s),i&&"number"==typeof o&&u.range.start>o+1024&&t.errors.push(T(n,i)),i=void 0,o=null}break;default:void 0!==i&&a.push(new c(i)),i=z(t,u),o=u.range.start,u.error&&t.errors.push(u.error);e:for(let r=s+1;;++r){const a=n.items[r];switch(a&&a.type){case e.Type.BLANK_LINE:case e.Type.COMMENT:continue e;case e.Type.MAP_VALUE:break e;default:{const n="Implicit map keys need to be followed by map values";t.errors.push(new e.YAMLSemanticError(u,n));break e}}}if(u.valueRangeContainsNewline){const n="Implicit map keys need to be on a single line";t.errors.push(new e.YAMLSemanticError(u,n))}}}void 0!==i&&a.push(new c(i));return{comments:r,items:a}}(t,n),i=new m;i.items=a,A(i,r);let o=!1;for(let r=0;r<a.length;++r){const{key:i}=a[r];if(i instanceof s&&(o=!0),t.schema.merge&&i&&i.value===h){a[r]=new g(a[r]);const i=a[r].value.items;let o=null;i.some((t=>{if(t instanceof d){const{type:n}=t.source;return n!==e.Type.MAP&&n!==e.Type.FLOW_MAP&&(o="Merge nodes aliases can only point to maps")}return o="Merge nodes can only have Alias nodes as values"})),o&&t.errors.push(new e.YAMLSemanticError(n,o))}else for(let o=r+1;o<a.length;++o){const{key:r}=a[o];if(i===r||i&&r&&Object.prototype.hasOwnProperty.call(i,"value")&&i.value===r.value){const r=`Map keys must be unique; "${i}" is repeated`;t.errors.push(new e.YAMLSemanticError(n,r));break}}}if(o&&!t.options.mapAsMap){const r="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";t.warnings.push(new e.YAMLWarning(n,r))}return n.resolved=i,i},XM.resolveNode=z,XM.resolveSeq=function(t,n){if(n.type!==e.Type.SEQ&&n.type!==e.Type.FLOW_SEQ){const r=`A ${n.type} node cannot be resolved as a sequence`;return t.errors.push(new e.YAMLSyntaxError(n,r)),null}const{comments:r,items:a}=n.type===e.Type.FLOW_SEQ?function(t,n){const r=[],a=[];let i,o=!1,s=null,u="[",l=null;for(let p=0;p<n.items.length;++p){const d=n.items[p];if("string"==typeof d.char){const{char:r,offset:f}=d;if(":"===r||!o&&void 0===i||(o&&void 0===i&&(i=u?a.pop():null),a.push(new c(i)),o=!1,i=void 0,s=null),r===u)u=null;else if(u||"?"!==r){if("["!==u&&":"===r&&void 0===i){if(","===u){if(i=a.pop(),i instanceof c){const r="Chaining flow sequence pairs is invalid",a=new e.YAMLSemanticError(n,r);a.offset=f,t.errors.push(a)}if(!o&&"number"==typeof s){const r=d.range?d.range.start:d.offset;r>s+1024&&t.errors.push(T(n,i));const{src:a}=l.context;for(let n=s;n<r;++n)if("\n"===a[n]){const n="Implicit keys of flow sequence pairs need to be on a single line";t.errors.push(new e.YAMLSemanticError(l,n));break}}}else i=null;s=null,o=!1,u=null}else if("["===u||"]"!==r||p<n.items.length-1){const a=`Flow sequence contains an unexpected ${r}`,i=new e.YAMLSyntaxError(n,a);i.offset=f,t.errors.push(i)}}else o=!0}else if(d.type===e.Type.BLANK_LINE)r.push({before:a.length});else if(d.type===e.Type.COMMENT)P(t.errors,d),r.push({comment:d.comment,before:a.length});else{if(u){const n=`Expected a ${u} in flow sequence`;t.errors.push(new e.YAMLSemanticError(d,n))}const n=z(t,d);void 0===i?(a.push(n),l=d):(a.push(new c(i,n)),i=void 0),s=d.range.start,u=","}}j(t.errors,n),void 0!==i&&a.push(new c(i));return{comments:r,items:a}}(t,n):function(t,n){const r=[],a=[];for(let i=0;i<n.items.length;++i){const o=n.items[i];switch(o.type){case e.Type.BLANK_LINE:r.push({before:a.length});break;case e.Type.COMMENT:r.push({comment:o.comment,before:a.length});break;case e.Type.SEQ_ITEM:if(o.error&&t.errors.push(o.error),a.push(z(t,o.node)),o.hasProps){const n="Sequence items cannot have tags or anchors before the - indicator";t.errors.push(new e.YAMLSemanticError(o,n))}break;default:o.error&&t.errors.push(o.error),t.errors.push(new e.YAMLSyntaxError(o,`Unexpected ${o.type} node in sequence`))}}return{comments:r,items:a}}(t,n),i=new l;if(i.items=a,A(i,r),!t.options.mapAsMap&&a.some((e=>e instanceof c&&e.key instanceof s))){const r="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";t.warnings.push(new e.YAMLWarning(n,r))}return n.resolved=i,i},XM.resolveString=R,XM.strOptions=v,XM.stringifyNumber=function({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let a=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(a)){let e=a.indexOf(".");e<0&&(e=a.length,a+=".");let n=t-(a.length-e-1);for(;n-- >0;)a+="0"}return a},XM.stringifyString=function(t,n,r,a){const{defaultType:i}=v,{implicitKey:o,inFlow:s}=n;let{type:u,value:l}=t;"string"!=typeof l&&(l=String(l),t=Object.assign({},t,{value:l}));const c=i=>{switch(i){case e.Type.BLOCK_FOLDED:case e.Type.BLOCK_LITERAL:return N(t,n,r,a);case e.Type.QUOTE_DOUBLE:return D(l,n);case e.Type.QUOTE_SINGLE:return O(l,n);case e.Type.PLAIN:return function(t,n,r,a){const{comment:i,type:o,value:s}=t,{actualString:u,implicitKey:l,indent:c,inFlow:p}=n;if(l&&/[\n[\]{},]/.test(s)||p&&/[[\]{},]/.test(s))return D(s,n);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return l||p||-1===s.indexOf("\n")?-1!==s.indexOf('"')&&-1===s.indexOf("'")?O(s,n):D(s,n):N(t,n,r,a);if(!l&&!p&&o!==e.Type.PLAIN&&-1!==s.indexOf("\n"))return N(t,n,r,a);if(""===c&&C(s))return n.forceBlockIndent=!0,N(t,n,r,a);const d=s.replace(/\n+/g,`$&\n${c}`);if(u){const{tags:e}=n.doc.schema;if("string"!=typeof b(d,e,e.scalarFallback).value)return D(s,n)}const f=l?d:S(d,c,w,E(n));return!i||p||-1===f.indexOf("\n")&&-1===i.indexOf("\n")?f:(r&&r(),function(e,t,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${t}#`)}\n${t}${e}`:e}(f,c,i))}(t,n,r,a);default:return null}};u!==e.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(l)?u=e.Type.QUOTE_DOUBLE:!o&&!s||u!==e.Type.BLOCK_FOLDED&&u!==e.Type.BLOCK_LITERAL||(u=e.Type.QUOTE_DOUBLE);let p=c(u);if(null===p&&(p=c(i),null===p))throw new Error(`Unsupported default string type ${i}`);return p},XM.toJSON=r,XM}var ZM,eL,tL,nL,rL,aL,iL={},oL={};function sL(){if(ZM)return oL;ZM=1;var e=GM(),t=JM();const n={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(n,r)=>{const a=t.resolveString(n,r);if("function"==typeof Buffer)return Buffer.from(a,"base64");if("function"==typeof atob){const e=atob(a.replace(/[\n\r]/g,"")),t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}{const t="This environment does not support reading binary tags; either Buffer or atob is required";return n.errors.push(new e.YAMLReferenceError(r,t)),null}},options:t.binaryOptions,stringify:({comment:n,type:r,value:a},i,o,s)=>{let u;if("function"==typeof Buffer)u=a instanceof Buffer?a.toString("base64"):Buffer.from(a.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<a.length;++t)e+=String.fromCharCode(a[t]);u=btoa(e)}}if(r||(r=t.binaryOptions.defaultType),r===e.Type.QUOTE_DOUBLE)a=u;else{const{lineWidth:n}=t.binaryOptions,i=Math.ceil(u.length/n),o=new Array(i);for(let e=0,t=0;e<i;++e,t+=n)o[e]=u.substr(t,n);a=o.join(r===e.Type.BLOCK_LITERAL?"\n":" ")}return t.stringifyString({comment:n,type:r,value:a},i,o,s)}};function r(n,r){const a=t.resolveSeq(n,r);for(let n=0;n<a.items.length;++n){let i=a.items[n];if(!(i instanceof t.Pair)){if(i instanceof t.YAMLMap){if(i.items.length>1){const t="Each pair must have its own sequence indicator";throw new e.YAMLSemanticError(r,t)}const n=i.items[0]||new t.Pair;i.commentBefore&&(n.commentBefore=n.commentBefore?`${i.commentBefore}\n${n.commentBefore}`:i.commentBefore),i.comment&&(n.comment=n.comment?`${i.comment}\n${n.comment}`:i.comment),i=n}a.items[n]=i instanceof t.Pair?i:new t.Pair(i)}}return a}function a(e,n,r){const a=new t.YAMLSeq(e);a.tag="tag:yaml.org,2002:pairs";for(const t of n){let n,i;if(Array.isArray(t)){if(2!==t.length)throw new TypeError(`Expected [key, value] tuple: ${t}`);n=t[0],i=t[1]}else if(t&&t instanceof Object){const e=Object.keys(t);if(1!==e.length)throw new TypeError(`Expected { key: value } tuple: ${t}`);n=e[0],i=t[n]}else n=t;const o=e.createPair(n,i,r);a.items.push(o)}return a}const i={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:r,createNode:a};class o extends t.YAMLSeq{constructor(){super(),e._defineProperty(this,"add",t.YAMLMap.prototype.add.bind(this)),e._defineProperty(this,"delete",t.YAMLMap.prototype.delete.bind(this)),e._defineProperty(this,"get",t.YAMLMap.prototype.get.bind(this)),e._defineProperty(this,"has",t.YAMLMap.prototype.has.bind(this)),e._defineProperty(this,"set",t.YAMLMap.prototype.set.bind(this)),this.tag=o.tag}toJSON(e,n){const r=new Map;n&&n.onCreate&&n.onCreate(r);for(const e of this.items){let a,i;if(e instanceof t.Pair?(a=t.toJSON(e.key,"",n),i=t.toJSON(e.value,a,n)):a=t.toJSON(e,"",n),r.has(a))throw new Error("Ordered maps must not include duplicate keys");r.set(a,i)}return r}}e._defineProperty(o,"tag","tag:yaml.org,2002:omap");const s={identify:e=>e instanceof Map,nodeClass:o,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(n,a){const i=r(n,a),s=[];for(const{key:n}of i.items)if(n instanceof t.Scalar){if(s.includes(n.value)){const t="Ordered maps must not include duplicate keys";throw new e.YAMLSemanticError(a,t)}s.push(n.value)}return Object.assign(new o,i)},createNode:function(e,t,n){const r=a(e,t,n),i=new o;return i.items=r.items,i}};class u extends t.YAMLMap{constructor(){super(),this.tag=u.tag}add(e){const n=e instanceof t.Pair?e:new t.Pair(e);t.findPair(this.items,n.key)||this.items.push(n)}get(e,n){const r=t.findPair(this.items,e);return!n&&r instanceof t.Pair?r.key instanceof t.Scalar?r.key.value:r.key:r}set(e,n){if("boolean"!=typeof n)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof n);const r=t.findPair(this.items,e);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new t.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,n);throw new Error("Set items must all have null values")}}e._defineProperty(u,"tag","tag:yaml.org,2002:set");const l={identify:e=>e instanceof Set,nodeClass:u,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(n,r){const a=t.resolveMap(n,r);if(!a.hasAllNullValues())throw new e.YAMLSemanticError(r,"Set items must all have null values");return Object.assign(new u,a)},createNode:function(e,t,n){const r=new u;for(const a of t)r.items.push(e.createPair(a,null,n));return r}},c=(e,t)=>{const n=t.split(":").reduce(((e,t)=>60*e+Number(t)),0);return"-"===e?-n:n},p=({value:e})=>{if(isNaN(e)||!isFinite(e))return t.stringifyNumber(e);let n="";e<0&&(n="-",e=Math.abs(e));const r=[e%60];return e<60?r.unshift(0):(e=Math.round((e-r[0])/60),r.unshift(e%60),e>=60&&(e=Math.round((e-r[0])/60),r.unshift(e))),n+r.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")},d={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,n)=>c(t,n.replace(/_/g,"")),stringify:p},f={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,n)=>c(t,n.replace(/_/g,"")),stringify:p},m={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(e,t,n,r,a,i,o,s,u)=>{s&&(s=(s+"00").substr(1,3));let l=Date.UTC(t,n-1,r,a||0,i||0,o||0,s||0);if(u&&"Z"!==u){let e=c(u[0],u.slice(1));Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function h(e){const t="undefined"!=typeof process&&process.env||{};return e?"undefined"!=typeof YAML_SILENCE_DEPRECATION_WARNINGS?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:"undefined"!=typeof YAML_SILENCE_WARNINGS?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function g(e,t){if(h(!1)){const n="undefined"!=typeof process&&process.emitWarning;n?n(e,t):console.warn(t?`${t}: ${e}`:e)}}const y={};return oL.binary=n,oL.floatTime=f,oL.intTime=d,oL.omap=s,oL.pairs=i,oL.set=l,oL.timestamp=m,oL.warn=g,oL.warnFileDeprecation=function(e){if(h(!0)){g(`The endpoint 'yaml/${e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/")}' will be removed in a future release.`,"DeprecationWarning")}},oL.warnOptionDeprecation=function(e,t){if(!y[e]&&h(!0)){y[e]=!0;let n=`The option '${e}' will be removed in a future release`;n+=t?`, use '${t}' instead.`:".",g(n,"DeprecationWarning")}},oL}function uL(){if(eL)return iL;eL=1;var e=GM(),t=JM(),n=sL();const r={createNode:function(e,n,r){const a=new t.YAMLMap(e);if(n instanceof Map)for(const[t,i]of n)a.items.push(e.createPair(t,i,r));else if(n&&"object"==typeof n)for(const t of Object.keys(n))a.items.push(e.createPair(t,n[t],r));return"function"==typeof e.sortMapEntries&&a.items.sort(e.sortMapEntries),a},default:!0,nodeClass:t.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:t.resolveMap};const a={createNode:function(e,n,r){const a=new t.YAMLSeq(e);if(n&&n[Symbol.iterator])for(const t of n){const n=e.createNode(t,r.wrapScalars,null,r);a.items.push(n)}return a},default:!0,nodeClass:t.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:t.resolveSeq},i={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:t.resolveString,stringify:(e,n,r,a)=>(n=Object.assign({actualString:!0},n),t.stringifyString(e,n,r,a)),options:t.strOptions},o=[r,a,i],s=e=>"bigint"==typeof e||Number.isInteger(e),u=(e,n,r)=>t.intOptions.asBigInt?BigInt(e):parseInt(n,r);function l(e,n,r){const{value:a}=e;return s(a)&&a>=0?r+a.toString(n):t.stringifyNumber(e)}const c={identify:e=>null==e,createNode:(e,n,r)=>r.wrapScalars?new t.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:t.nullOptions,stringify:()=>t.nullOptions.nullStr},p={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>"t"===e[0]||"T"===e[0],options:t.boolOptions,stringify:({value:e})=>e?t.boolOptions.trueStr:t.boolOptions.falseStr},d={identify:e=>s(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>u(e,t,8),options:t.intOptions,stringify:e=>l(e,8,"0o")},f={identify:s,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>u(e,e,10),options:t.intOptions,stringify:t.stringifyNumber},m={identify:e=>s(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>u(e,t,16),options:t.intOptions,stringify:e=>l(e,16,"0x")},h={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:t.stringifyNumber},g={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()},y={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,n,r){const a=n||r,i=new t.Scalar(parseFloat(e));return a&&"0"===a[a.length-1]&&(i.minFractionDigits=a.length),i},stringify:t.stringifyNumber},v=o.concat([c,p,d,f,m,h,g,y]),b=e=>"bigint"==typeof e||Number.isInteger(e),w=({value:e})=>JSON.stringify(e),_=[r,a,{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:t.resolveString,stringify:w},{identify:e=>null==e,createNode:(e,n,r)=>r.wrapScalars?new t.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:w},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:w},{identify:b,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>t.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>b(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:w}];_.scalarFallback=e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)};const x=({value:e})=>e?t.boolOptions.trueStr:t.boolOptions.falseStr,k=e=>"bigint"==typeof e||Number.isInteger(e);function S(e,n,r){let a=n.replace(/_/g,"");if(t.intOptions.asBigInt){switch(r){case 2:a=`0b${a}`;break;case 8:a=`0o${a}`;break;case 16:a=`0x${a}`}const t=BigInt(a);return"-"===e?BigInt(-1)*t:t}const i=parseInt(a,r);return"-"===e?-1*i:i}function E(e,n,r){const{value:a}=e;if(k(a)){const e=a.toString(n);return a<0?"-"+r+e.substr(1):r+e}return t.stringifyNumber(e)}const C=o.concat([{identify:e=>null==e,createNode:(e,n,r)=>r.wrapScalars?new t.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:t.nullOptions,stringify:()=>t.nullOptions.nullStr},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:t.boolOptions,stringify:x},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:t.boolOptions,stringify:x},{identify:k,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,n)=>S(t,n,2),stringify:e=>E(e,2,"0b")},{identify:k,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,n)=>S(t,n,8),stringify:e=>E(e,8,"0")},{identify:k,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,n)=>S(t,n,10),stringify:t.stringifyNumber},{identify:k,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,n)=>S(t,n,16),stringify:e=>E(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:t.stringifyNumber},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,n){const r=new t.Scalar(parseFloat(e.replace(/_/g,"")));if(n){const e=n.replace(/_/g,"");"0"===e[e.length-1]&&(r.minFractionDigits=e.length)}return r},stringify:t.stringifyNumber}],n.binary,n.omap,n.pairs,n.set,n.intTime,n.floatTime,n.timestamp),D={core:v,failsafe:o,json:_,yaml11:C},O={binary:n.binary,bool:p,float:y,floatExp:g,floatNaN:h,floatTime:n.floatTime,int:f,intHex:m,intOct:d,intTime:n.intTime,map:r,null:c,omap:n.omap,pairs:n.pairs,seq:a,set:n.set,timestamp:n.timestamp};function N(e,n,i){if(e instanceof t.Node)return e;const{defaultPrefix:o,onTagObj:s,prevObjects:u,schema:l,wrapScalars:c}=i;n&&n.startsWith("!!")&&(n=o+n.slice(2));let p=function(e,t,n){if(t){const e=n.filter((e=>e.tag===t)),r=e.find((e=>!e.format))||e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find((t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format))}(e,n,l.tags);if(!p){if("function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e)return c?new t.Scalar(e):e;p=e instanceof Map?r:e[Symbol.iterator]?a:r}s&&(s(p),delete i.onTagObj);const d={value:void 0,node:void 0};if(e&&"object"==typeof e&&u){const n=u.get(e);if(n){const e=new t.Alias(n);return i.aliasNodes.push(e),e}d.value=e,u.set(e,d)}return d.node=p.createNode?p.createNode(i.schema,e,i):c?new t.Scalar(e):e,n&&d.node instanceof t.Node&&(d.node.tag=n),d.node}const j=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class P{constructor({customTags:e,merge:t,schema:r,sortMapEntries:a,tags:i}){this.merge=!!t,this.name=r,this.sortMapEntries=!0===a?j:a||null,!e&&i&&n.warnOptionDeprecation("tags","customTags"),this.tags=function(e,t,n,r){let a=e[r.replace(/\W/g,"")];if(!a){const t=Object.keys(e).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${t}`)}if(Array.isArray(n))for(const e of n)a=a.concat(e);else"function"==typeof n&&(a=n(a.slice()));for(let e=0;e<a.length;++e){const n=a[e];if("string"==typeof n){const r=t[n];if(!r){const e=Object.keys(t).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${e}`)}a[e]=r}}return a}(D,O,e||i,r)}createNode(e,t,n,r){const a={defaultPrefix:P.defaultPrefix,schema:this,wrapScalars:t};return N(e,n,r?Object.assign(r,a):a)}createPair(e,n,r){r||(r={wrapScalars:!0});const a=this.createNode(e,r.wrapScalars,null,r),i=this.createNode(n,r.wrapScalars,null,r);return new t.Pair(a,i)}}return e._defineProperty(P,"defaultPrefix",e.defaultTagPrefix),e._defineProperty(P,"defaultTags",e.defaultTags),iL.Schema=P,iL}function lL(){if(tL)return QM;tL=1;var e=GM(),t=JM(),n=uL();const r={get binary(){return t.binaryOptions},set binary(e){Object.assign(t.binaryOptions,e)},get bool(){return t.boolOptions},set bool(e){Object.assign(t.boolOptions,e)},get int(){return t.intOptions},set int(e){Object.assign(t.intOptions,e)},get null(){return t.nullOptions},set null(e){Object.assign(t.nullOptions,e)},get str(){return t.strOptions},set str(e){Object.assign(t.strOptions,e)}},a={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:e.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:e.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:e.defaultTagPrefix}]}};function i(e,t){if("1.0"===(e.version||e.options.version)){const e=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return"!"+e[1];const n=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?`!${n[1]}/${n[2]}`:`!${t.replace(/^tag:/,"")}`}let n=e.tagPrefixes.find((e=>0===t.indexOf(e.prefix)));if(!n){const r=e.getDefaults().tagPrefixes;n=r&&r.find((e=>0===t.indexOf(e.prefix)))}if(!n)return"!"===t[0]?t:`!<${t}>`;const r=t.substr(n.prefix.length).replace(/[!,[\]{}]/g,(e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e])));return n.handle+r}function o(e,n,r,a){const{anchors:o,schema:s}=n.doc;let u;if(!(e instanceof t.Node)){const t={aliasNodes:[],onTagObj:e=>u=e,prevObjects:new Map};e=s.createNode(e,!0,null,t);for(const e of t.aliasNodes){e.source=e.source.node;let t=o.getName(e.source);t||(t=o.newName(),o.map[t]=e.source)}}if(e instanceof t.Pair)return e.toString(n,r,a);u||(u=function(e,n){if(n instanceof t.Alias)return t.Alias;if(n.tag){const t=e.filter((e=>e.tag===n.tag));if(t.length>0)return t.find((e=>e.format===n.format))||t[0]}let r,a;if(n instanceof t.Scalar){a=n.value;const t=e.filter((e=>e.identify&&e.identify(a)||e.class&&a instanceof e.class));r=t.find((e=>e.format===n.format))||t.find((e=>!e.format))}else a=n,r=e.find((e=>e.nodeClass&&a instanceof e.nodeClass));if(!r){const e=a&&a.constructor?a.constructor.name:typeof a;throw new Error(`Tag not resolved for ${e} value`)}return r}(s.tags,e));const l=function(e,t,{anchors:n,doc:r}){const a=[],o=r.anchors.getName(e);return o&&(n[o]=e,a.push(`&${o}`)),e.tag?a.push(i(r,e.tag)):t.default||a.push(i(r,t.tag)),a.join(" ")}(e,u,n);l.length>0&&(n.indentAtStart=(n.indentAtStart||0)+l.length+1);const c="function"==typeof u.stringify?u.stringify(e,n,r,a):e instanceof t.Scalar?t.stringifyString(e,n,r,a):e.toString(n,r,a);return l?e instanceof t.Scalar||"{"===c[0]||"["===c[0]?`${l} ${c}`:`${l}\n${n.indent}${c}`:c}class s{static validAnchorNode(e){return e instanceof t.Scalar||e instanceof t.YAMLSeq||e instanceof t.YAMLMap}constructor(t){e._defineProperty(this,"map",Object.create(null)),this.prefix=t}createAlias(e,n){return this.setAnchor(e,n),new t.Alias(e)}createMergePair(...e){const n=new t.Merge;return n.value.items=e.map((e=>{if(e instanceof t.Alias){if(e.source instanceof t.YAMLMap)return e}else if(e instanceof t.YAMLMap)return this.createAlias(e);throw new Error("Merge sources must be Map nodes or their Aliases")})),n}getName(e){const{map:t}=this;return Object.keys(t).find((n=>t[n]===e))}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);const t=Object.keys(this.map);for(let n=1;;++n){const r=`${e}${n}`;if(!t.includes(r))return r}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach((t=>{e[t]=e[t].resolved})),t.forEach((e=>{e.source=e.source.resolved})),delete this._cstAliases}setAnchor(e,t){if(null!=e&&!s.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(t&&/[\x00-\x19\s,[\]{}]/.test(t))throw new Error("Anchor names must not contain whitespace or control characters");const{map:n}=this,r=e&&Object.keys(n).find((t=>n[t]===e));if(r){if(!t)return r;r!==t&&(delete n[r],n[t]=e)}else{if(!t){if(!e)return null;t=this.newName()}n[t]=e}return t}}const u=(e,n)=>{if(e&&"object"==typeof e){const{tag:r}=e;e instanceof t.Collection?(r&&(n[r]=!0),e.items.forEach((e=>u(e,n)))):e instanceof t.Pair?(u(e.key,n),u(e.value,n)):e instanceof t.Scalar&&r&&(n[r]=!0)}return n};function l({tagPrefixes:t},n){const[r,a]=n.parameters;if(!r||!a){const t="Insufficient parameters given for %TAG directive";throw new e.YAMLSemanticError(n,t)}if(t.some((e=>e.handle===r))){const t="The %TAG directive must only be given at most once per handle in the same document.";throw new e.YAMLSemanticError(n,t)}return{handle:r,prefix:a}}function c(t,n){let[r]=n.parameters;if("YAML:1.0"===n.name&&(r="1.0"),!r){const t="Insufficient parameters given for %YAML directive";throw new e.YAMLSemanticError(n,t)}if(!a[r]){const a=`Document will be parsed as YAML ${t.version||t.options.version} rather than YAML ${r}`;t.warnings.push(new e.YAMLWarning(n,a))}return r}function p(e){if(e instanceof t.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}class d{constructor(e){this.anchors=new s(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return p(this.contents),this.contents.add(e)}addIn(e,t){p(this.contents),this.contents.addIn(e,t)}delete(e){return p(this.contents),this.contents.delete(e)}deleteIn(e){return t.isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):(p(this.contents),this.contents.deleteIn(e))}getDefaults(){return d.defaults[this.version]||d.defaults[this.options.version]||{}}get(e,n){return this.contents instanceof t.Collection?this.contents.get(e,n):void 0}getIn(e,n){return t.isEmptyPath(e)?!n&&this.contents instanceof t.Scalar?this.contents.value:this.contents:this.contents instanceof t.Collection?this.contents.getIn(e,n):void 0}has(e){return this.contents instanceof t.Collection&&this.contents.has(e)}hasIn(e){return t.isEmptyPath(e)?void 0!==this.contents:this.contents instanceof t.Collection&&this.contents.hasIn(e)}set(e,t){p(this.contents),this.contents.set(e,t)}setIn(e,n){t.isEmptyPath(e)?this.contents=n:(p(this.contents),this.contents.setIn(e,n))}setSchema(e,t){if(!e&&!t&&this.schema)return;"number"==typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"==typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);const r=Object.assign({},this.getDefaults(),this.options);this.schema=new n.Schema(r)}parse(n,r){this.options.keepCstNodes&&(this.cstNode=n),this.options.keepNodeTypes&&(this.type="DOCUMENT");const{directives:a=[],contents:i=[],directivesEndMarker:o,error:s,valueRange:u}=n;if(s&&(s.source||(s.source=this),this.errors.push(s)),function(t,n,r){const a=[];let i=!1;for(const r of n){const{comment:n,name:o}=r;switch(o){case"TAG":try{t.tagPrefixes.push(l(t,r))}catch(e){t.errors.push(e)}i=!0;break;case"YAML":case"YAML:1.0":if(t.version){const n="The %YAML directive must only be given at most once per document.";t.errors.push(new e.YAMLSemanticError(r,n))}try{t.version=c(t,r)}catch(e){t.errors.push(e)}i=!0;break;default:if(o){const n=`YAML only supports %TAG and %YAML directives, and not %${o}`;t.warnings.push(new e.YAMLWarning(r,n))}}n&&a.push(n)}if(r&&!i&&"1.1"===(t.version||r.version||t.options.version)){const e=({handle:e,prefix:t})=>({handle:e,prefix:t});t.tagPrefixes=r.tagPrefixes.map(e),t.version=r.version}t.commentBefore=a.join("\n")||null}(this,a,r),o&&(this.directivesEndMarker=!0),this.range=u?[u.start,u.end]:null,this.setSchema(),this.anchors._cstAliases=[],function(n,r){const a={before:[],after:[]};let i,o=!1;for(const s of r)if(s.valueRange){if(void 0!==i){const t="Document contains trailing content not separated by a ... or --- line";n.errors.push(new e.YAMLSyntaxError(s,t));break}const r=t.resolveNode(n,s);o&&(r.spaceBefore=!0,o=!1),i=r}else null!==s.comment?(void 0===i?a.before:a.after).push(s.comment):s.type===e.Type.BLANK_LINE&&(o=!0,void 0===i&&a.before.length>0&&!n.commentBefore&&(n.commentBefore=a.before.join("\n"),a.before=[]));if(n.contents=i||null,i){const e=a.before.join("\n");if(e){const n=i instanceof t.Collection&&i.items[0]?i.items[0]:i;n.commentBefore=n.commentBefore?`${e}\n${n.commentBefore}`:e}n.comment=a.after.join("\n")||null}else n.comment=a.before.concat(a.after).join("\n")||null}(this,i),this.anchors.resolveNodes(),this.options.prettyErrors){for(const t of this.errors)t instanceof e.YAMLError&&t.makePretty();for(const t of this.warnings)t instanceof e.YAMLError&&t.makePretty()}return this}listNonDefaultTags(){return(e=>Object.keys(u(e,{})))(this.contents).filter((e=>0!==e.indexOf(n.Schema.defaultPrefix)))}setTagPrefix(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){const n=this.tagPrefixes.find((t=>t.handle===e));n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter((t=>t.handle!==e))}toJSON(e,n){const{keepBlobsInJSON:r,mapAsMap:a,maxAliasCount:i}=this.options,s=r&&("string"!=typeof e||!(this.contents instanceof t.Scalar)),u={doc:this,indentStep:" ",keep:s,mapAsMap:s&&!!a,maxAliasCount:i,stringify:o},l=Object.keys(this.anchors.map);l.length>0&&(u.anchors=new Map(l.map((e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}]))));const c=t.toJSON(this.contents,e,u);if("function"==typeof n&&u.anchors)for(const{count:e,res:t}of u.anchors.values())n(t,e);return c}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");const e=this.options.indent;if(!Number.isInteger(e)||e<=0){const t=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${t}`)}this.setSchema();const n=[];let r=!1;if(this.version){let e="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?e="%YAML:1.0":"1.1"===this.version&&(e="%YAML 1.1")),n.push(e),r=!0}const a=this.listNonDefaultTags();this.tagPrefixes.forEach((({handle:e,prefix:t})=>{a.some((e=>0===e.indexOf(t)))&&(n.push(`%TAG ${e} ${t}`),r=!0)})),(r||this.directivesEndMarker)&&n.push("---"),this.commentBefore&&(!r&&this.directivesEndMarker||n.unshift(""),n.unshift(this.commentBefore.replace(/^/gm,"#")));const i={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:o};let s=!1,u=null;if(this.contents){this.contents instanceof t.Node&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&n.push(""),this.contents.commentBefore&&n.push(this.contents.commentBefore.replace(/^/gm,"#")),i.forceBlockIndent=!!this.comment,u=this.contents.comment);const e=u?null:()=>s=!0,a=o(this.contents,i,(()=>u=null),e);n.push(t.addComment(a,"",u))}else void 0!==this.contents&&n.push(o(this.contents,i));return this.comment&&(s&&!u||""===n[n.length-1]||n.push(""),n.push(this.comment.replace(/^/gm,"#"))),n.join("\n")+"\n"}}return e._defineProperty(d,"defaults",a),QM.Document=d,QM.defaultOptions={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},QM.scalarOptions=r,QM}function cL(){return aL||(aL=1,rL=function(){if(nL)return VM;nL=1;var e=KM(),t=lL(),n=uL(),r=GM(),a=sL();JM();class i extends t.Document{constructor(e){super(Object.assign({},t.defaultOptions,e))}}function o(t,n){const a=e.parse(t),o=new i(n).parse(a[0]);if(a.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";o.errors.unshift(new r.YAMLSemanticError(a[1],e))}return o}const s={createNode:function(e,r=!0,a){void 0===a&&"string"==typeof r&&(a=r,r=!0);const i=Object.assign({},t.Document.defaults[t.defaultOptions.version],t.defaultOptions);return new n.Schema(i).createNode(e,r,a)},defaultOptions:t.defaultOptions,Document:i,parse:function(e,t){const n=o(e,t);if(n.warnings.forEach((e=>a.warn(e))),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(t,n){const r=[];let a;for(const o of e.parse(t)){const e=new i(n);e.parse(o,a),r.push(e),a=e}return r},parseCST:e.parse,parseDocument:o,scalarOptions:t.scalarOptions,stringify:function(e,t){const n=new i(t);return n.contents=e,String(n)}};return VM.YAML=s,VM}().YAML),rL}let pL;Object.defineProperty(AI,"__esModule",{value:!0}),AI.loaders=void 0;let dL;let fL;const mL={loadJs:function(e){void 0===pL&&(pL=function(){if(BI)return zI;BI=1;const e=A.default,t=II(),n=YI();return zI=r=>{if("string"!=typeof r)throw new TypeError("Expected a string");const a=n(__filename),i=a?e.dirname(a):__dirname,o=t(i,r),s=require.cache[o];if(s&&s.parent){let e=s.parent.children.length;for(;e--;)s.parent.children[e].id===o&&s.parent.children.splice(e,1)}delete require.cache[o];const u=require.cache[a];return void 0===u?require(o):u.require(o)},zI}());return pL(e)},loadJson:function(e,t){void 0===dL&&(dL=UM());try{return dL(t)}catch(t){throw t.message=`JSON Error in ${e}:\n${t.message}`,t}},loadYaml:function(e,t){void 0===fL&&(fL=cL());try{return fL.parse(t,{prettyErrors:!0})}catch(t){throw t.message=`YAML Error in ${e}:\n${t.message}`,t}}};AI.loaders=mL;var hL={};Object.defineProperty(hL,"__esModule",{value:!0}),hL.getPropertyByPath=function(e,t){if("string"==typeof t&&Object.prototype.hasOwnProperty.call(e,t))return e[t];const n="string"==typeof t?t.split("."):t;return n.reduce(((e,t)=>void 0===e?e:e[t]),e)},Object.defineProperty(TI,"__esModule",{value:!0}),TI.ExplorerBase=void 0,TI.getExtensionDescription=wL;var gL,yL=(gL=A.default)&&gL.__esModule?gL:{default:gL},vL=AI,bL=hL;function wL(e){const t=yL.default.extname(e);return t?`extension "${t}"`:"files without extensions"}TI.ExplorerBase=class{constructor(e){!0===e.cache&&(this.loadCache=new Map,this.searchCache=new Map),this.config=e,this.validateConfig()}clearLoadCache(){this.loadCache&&this.loadCache.clear()}clearSearchCache(){this.searchCache&&this.searchCache.clear()}clearCaches(){this.clearLoadCache(),this.clearSearchCache()}validateConfig(){const e=this.config;e.searchPlaces.forEach((t=>{const n=yL.default.extname(t)||"noExt",r=e.loaders[n];if(!r)throw new Error(`No loader specified for ${wL(t)}, so searchPlaces item "${t}" is invalid`);if("function"!=typeof r)throw new Error(`loader for ${wL(t)} is not a function (type provided: "${typeof r}"), so searchPlaces item "${t}" is invalid`)}))}shouldSearchStopWithResult(e){return null!==e&&(!e.isEmpty||!this.config.ignoreEmptySearchPlaces)}nextDirectoryToSearch(e,t){if(this.shouldSearchStopWithResult(t))return null;const n=(r=e,yL.default.dirname(r));var r;return n===e||e===this.config.stopDir?null:n}loadPackageProp(e,t){const n=vL.loaders.loadJson(e,t);return(0,bL.getPropertyByPath)(n,this.config.packageProp)||null}getLoaderEntryForFile(e){if("package.json"===yL.default.basename(e)){return this.loadPackageProp.bind(this)}const t=yL.default.extname(e)||"noExt",n=this.config.loaders[t];if(!n)throw new Error(`No loader specified for ${wL(e)}`);return n}loadedContentToCosmiconfigResult(e,t){return null===t?null:void 0===t?{filepath:e,config:void 0,isEmpty:!0}:{config:t,filepath:e}}validateFilePath(e){if(!e)throw new Error("load must pass a non-empty string")}};var _L={};Object.defineProperty(_L,"__esModule",{value:!0}),_L.readFile=async function(e,t={}){const n=!0===t.throwNotFound;try{const t=await async function(e,t){return new Promise(((n,r)=>{xL.default.readFile(e,t,((e,t)=>{e?r(e):n(t)}))}))}(e,"utf8");return t}catch(e){if(!1===n&&("ENOENT"===e.code||"EISDIR"===e.code))return null;throw e}},_L.readFileSync=function(e,t={}){const n=!0===t.throwNotFound;try{return xL.default.readFileSync(e,"utf8")}catch(e){if(!1===n&&("ENOENT"===e.code||"EISDIR"===e.code))return null;throw e}};var xL=function(e){return e&&e.__esModule?e:{default:e}}(R.default);var kL={};Object.defineProperty(kL,"__esModule",{value:!0}),kL.cacheWrapper=async function(e,t,n){const r=e.get(t);if(void 0!==r)return r;const a=await n();return e.set(t,a),a},kL.cacheWrapperSync=function(e,t,n){const r=e.get(t);if(void 0!==r)return r;const a=n();return e.set(t,a),a};var SL={};Object.defineProperty(SL,"__esModule",{value:!0}),SL.getDirectory=async function(e){if(!0===await(0,CL.isDirectory)(e))return e;return EL.default.dirname(e)},SL.getDirectorySync=function(e){if(!0===(0,CL.isDirectorySync)(e))return e;return EL.default.dirname(e)};var EL=function(e){return e&&e.__esModule?e:{default:e}}(A.default),CL=ME;Object.defineProperty(PI,"__esModule",{value:!0}),PI.Explorer=void 0;var DL=function(e){return e&&e.__esModule?e:{default:e}}(A.default),OL=TI,NL=_L,jL=kL,PL=SL;class TL extends OL.ExplorerBase{constructor(e){super(e)}async search(e=process.cwd()){const t=await(0,PL.getDirectory)(e);return await this.searchFromDirectory(t)}async searchFromDirectory(e){const t=DL.default.resolve(process.cwd(),e),n=async()=>{const e=await this.searchDirectory(t),n=this.nextDirectoryToSearch(t,e);if(n)return this.searchFromDirectory(n);return await this.config.transform(e)};return this.searchCache?(0,jL.cacheWrapper)(this.searchCache,t,n):n()}async searchDirectory(e){for await(const t of this.config.searchPlaces){const n=await this.loadSearchPlace(e,t);if(!0===this.shouldSearchStopWithResult(n))return n}return null}async loadSearchPlace(e,t){const n=DL.default.join(e,t),r=await(0,NL.readFile)(n);return await this.createCosmiconfigResult(n,r)}async loadFileContent(e,t){if(null===t)return null;if(""===t.trim())return;const n=this.getLoaderEntryForFile(e);return await n(e,t)}async createCosmiconfigResult(e,t){const n=await this.loadFileContent(e,t);return this.loadedContentToCosmiconfigResult(e,n)}async load(e){this.validateFilePath(e);const t=DL.default.resolve(process.cwd(),e),n=async()=>{const e=await(0,NL.readFile)(t,{throwNotFound:!0}),n=await this.createCosmiconfigResult(t,e);return await this.config.transform(n)};return this.loadCache?(0,jL.cacheWrapper)(this.loadCache,t,n):n()}}PI.Explorer=TL;var AL={};Object.defineProperty(AL,"__esModule",{value:!0}),AL.ExplorerSync=void 0;var RL=function(e){return e&&e.__esModule?e:{default:e}}(A.default),IL=TI,ML=_L,LL=kL,FL=SL;class zL extends IL.ExplorerBase{constructor(e){super(e)}searchSync(e=process.cwd()){const t=(0,FL.getDirectorySync)(e);return this.searchFromDirectorySync(t)}searchFromDirectorySync(e){const t=RL.default.resolve(process.cwd(),e),n=()=>{const e=this.searchDirectorySync(t),n=this.nextDirectoryToSearch(t,e);if(n)return this.searchFromDirectorySync(n);return this.config.transform(e)};return this.searchCache?(0,LL.cacheWrapperSync)(this.searchCache,t,n):n()}searchDirectorySync(e){for(const t of this.config.searchPlaces){const n=this.loadSearchPlaceSync(e,t);if(!0===this.shouldSearchStopWithResult(n))return n}return null}loadSearchPlaceSync(e,t){const n=RL.default.join(e,t),r=(0,ML.readFileSync)(n);return this.createCosmiconfigResultSync(n,r)}loadFileContentSync(e,t){if(null===t)return null;if(""===t.trim())return;return this.getLoaderEntryForFile(e)(e,t)}createCosmiconfigResultSync(e,t){const n=this.loadFileContentSync(e,t);return this.loadedContentToCosmiconfigResult(e,n)}loadSync(e){this.validateFilePath(e);const t=RL.default.resolve(process.cwd(),e),n=()=>{const e=(0,ML.readFileSync)(t,{throwNotFound:!0}),n=this.createCosmiconfigResultSync(t,e);return this.config.transform(n)};return this.loadCache?(0,LL.cacheWrapperSync)(this.loadCache,t,n):n()}}AL.ExplorerSync=zL,Object.defineProperty(jI,"__esModule",{value:!0}),jI.cosmiconfig=function(e,t={}){const n=WL(e,t),r=new UL.Explorer(n);return{search:r.search.bind(r),load:r.load.bind(r),clearLoadCache:r.clearLoadCache.bind(r),clearSearchCache:r.clearSearchCache.bind(r),clearCaches:r.clearCaches.bind(r)}},jI.cosmiconfigSync=function(e,t={}){const n=WL(e,t),r=new qL.ExplorerSync(n);return{search:r.searchSync.bind(r),load:r.loadSync.bind(r),clearLoadCache:r.clearLoadCache.bind(r),clearSearchCache:r.clearSearchCache.bind(r),clearCaches:r.clearCaches.bind(r)}},jI.defaultLoaders=void 0;var BL=function(e){return e&&e.__esModule?e:{default:e}}(M.default),UL=PI,qL=AL,$L=AI;const VL=Object.freeze({".cjs":$L.loaders.loadJs,".js":$L.loaders.loadJs,".json":$L.loaders.loadJson,".yaml":$L.loaders.loadYaml,".yml":$L.loaders.loadYaml,noExt:$L.loaders.loadYaml});jI.defaultLoaders=VL;const HL=function(e){return e};function WL(e,t){const n={packageProp:e,searchPlaces:["package.json",`.${e}rc`,`.${e}rc.json`,`.${e}rc.yaml`,`.${e}rc.yml`,`.${e}rc.js`,`.${e}rc.cjs`,`.config/${e}rc`,`.config/${e}rc.json`,`.config/${e}rc.yaml`,`.config/${e}rc.yml`,`.config/${e}rc.js`,`.config/${e}rc.cjs`,`${e}.config.js`,`${e}.config.cjs`],ignoreEmptySearchPlaces:!0,stopDir:BL.default.homedir(),cache:!0,transform:HL,loaders:VL};return{...n,...t,loaders:{...n.loaders,...t.loaders}}}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getConfig",{enumerable:!0,get:()=>i});const t=a(M.default),n=jI,r=Uj;function a(e){return e&&e.__esModule?e:{default:e}}async function i(e){const a=(0,r.getWorkspaceRoot)(e);if(!a)throw new Error("This must be called inside a codebase that is part of a JavaScript workspace.");const i=await(0,n.cosmiconfig)("lage"),o=await i.search(a??e),s=o?.config;return{cacheOptions:s?.cacheOptions??{},ignore:s?.ignore??[],npmClient:s?.npmClient??"npm",pipeline:s?.pipeline??{},priorities:s?.priorities??[],repoWideChanges:s?.repoWideChanges??["lage.config.js","package-lock.json","yarn.lock","pnpm-lock.yaml","lerna.json","rush.json"],loggerOptions:s?.loggerOptions??{},runners:s?.runners??{},workerIdleMemoryLimit:s?.workerIdleMemoryLimit??t.default.totalmem(),concurrency:s?.concurrency??t.default.cpus().length-1,allowNoTargetRuns:s?.allowNoTargetRuns??!1}}}(NI);var GL={},KL={},YL={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LogLevel",{enumerable:!0,get:()=>t});const t={error:10,warn:20,info:30,verbose:40,silly:50}}(YL),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Logger",{enumerable:!0,get:()=>r});const t=YL,n=te.default;class r{log(e,t,n){const r={timestamp:Date.now(),level:e,msg:t,data:n};for(const e of this.reporters)e.log(r)}info(e,n){this.log(t.LogLevel.info,e,n)}warn(e,n){this.log(t.LogLevel.warn,e,n)}error(e,n){this.log(t.LogLevel.error,e,n)}verbose(e,n){this.log(t.LogLevel.verbose,e,n)}silly(e,n){this.log(t.LogLevel.silly,e,n)}stream(e,t,r){const a=(0,n.createInterface)({input:t,crlfDelay:1/0,terminal:!1}),i=t=>{this.log(e,t,r)};return a.on("line",i),()=>{a.off("line",i),a.close()}}addReporter(e){this.reporters.push(e)}constructor(){this.reporters=[]}}}(KL),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{default:()=>r,Logger:()=>t.Logger,LogLevel:()=>n.LogLevel});const t=KL,n=YL;function r(){return new t.Logger}}(GL),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"infoAction",{enumerable:!0,get:()=>l});const t=$e,n=hI,r=DI,a=NI,i=Uj,o=u(GL),s=gI;function u(e){return e&&e.__esModule?e:{default:e}}async function l(e,u){const l=process.cwd(),c=await(0,a.getConfig)(l),p=(0,o.default)(),d=(0,i.getWorkspaceRoot)(process.cwd()),f=(0,i.getPackageInfos)(d),{tasks:m,taskArgs:h}=(0,r.filterArgsForTasks)(u.args),g=(0,n.createTargetGraph)({logger:p,root:d,dependencies:e.dependencies,dependents:e.dependents&&!e.to,ignore:e.ignore.concat(c.ignore),pipeline:c.pipeline,repoWideChanges:c.repoWideChanges,scope:(e.scope??[]).concat(e.to??[]),since:e.since,outputs:c.cacheOptions.outputGlob,tasks:m,packageInfos:f});c.cacheOptions.writeRemoteCache=!1;const{hasher:y}=(0,t.createCache)({root:d,logger:p,cacheOptions:c.cacheOptions,skipLocalCache:!1,cliArgs:h}),{targets:v}=g;for(const e of v.values()){if(e.id===(0,s.getStartTargetId)())continue;const t=e.dependencies.indexOf((0,s.getStartTargetId)());e.dependencies.splice(t,1),process.stdout.write(`${JSON.stringify({...e,hash:await y.hash(e)})}\n`)}}}(qe);var QL={},XL={};!function(e){function t(e,t){const n=new Set;for(const t of e)n.add(t.task);const r={};for(const[e,a]of Object.entries(t??{}))n.has(e)&&(r[e]=a);return r}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"filterPipelineDefinitions",{enumerable:!0,get:()=>t})}(XL);var JL={},ZL={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"findNpmClient",{enumerable:!0,get:()=>a});const t=r(A.default),n=r(R.default);function r(e){return e&&e.__esModule?e:{default:e}}function a(e){const r=function(e){const r=Object.keys(process.env).find((e=>"path"===e.toLowerCase()))??"PATH",a=Object.keys(process.env).find((e=>"pathext"===e.toLowerCase()))??"PATHEXT",i=process.env[r]??"",o=process.env[a]??"";for(const r of i.split(t.default.delimiter)){const a=o.split(t.default.delimiter).map((n=>t.default.join(r,`${e}${n}`))).find((e=>n.default.existsSync(e)));if(a)return a}}(e);if(!r)throw new Error(`npm client not found: ${e}`);return r}}(ZL),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"findNpmClient",{enumerable:!0,get:()=>t.findNpmClient});const t=ZL}(JL);var eF={};!function(e){function t(e,t){const n=new Map;let r=0,a=0,i=0,o=0;for(const[t,a]of Object.entries(e))if(!Array.isArray(a)&&!t.includes("#")){const e=a.maxWorkers??a.options?.maxWorkers;if(void 0===e){r++;continue}let s=0;if("number"!=typeof e)throw new Error(`Invalid maxWorkers value: ${e}`);s=e,n.set(t,s),i++,o+=s}if(i>0&&r>0){const e=o/i;a=Math.max(1,Math.floor(e*r))}const s=o+a;if(s>t){let e=0;for(const[r,a]of n.entries()){const i=Math.max(1,Math.floor(a/s*t));e+=i,n.set(r,i)}if(e>t)throw new Error("Could not adjust maxWorkers per task to fit the concurrency, try reducing the maxWorkers, or increasing the --concurrency CLI argument, or separate the tasks to be run")}return n}function n(e){return new Map([...e.map((e=>{const[t,n]=e.split(/[=:]/);return[t,parseInt(n,10)]}))])}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{getMaxWorkersPerTask:()=>t,getMaxWorkersPerTaskFromOptions:()=>n})}(eF);var tF={},nF={},rF={},aF={},iF={},oF={};!function(e){function t(e){const t=parseFloat(e);if(t>60){const e=Math.floor(t/60);return`${e}m ${(t-60*e).toFixed(2)}s`}return`${t.toFixed(2)}s`}function n(e){return(e[0]+e[1]/1e9).toFixed(2)}function r(e=[0,0],t=[0,0]){const n=t[0]-e[0],r=t[1]-e[1];return r<0?[n-1,1e9+r]:[n,r]}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{formatDuration:()=>t,hrToSeconds:()=>n,hrtimeDiff:()=>r})}(oF),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{formatDuration:()=>t.formatDuration,hrToSeconds:()=>t.hrToSeconds,hrtimeDiff:()=>t.hrtimeDiff});const t=oF}(iF);var sF={};!function(e){function t(e){return void 0!==e&&e.target&&void 0!==e.status}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isTargetStatusLogEntry",{enumerable:!0,get:()=>t})}(sF);var uF={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"slowestTargetRuns",{enumerable:!0,get:()=>n});const t=iF;function n(e){return e.sort(((e,n)=>parseFloat((0,t.hrToSeconds)((0,t.hrtimeDiff)(e.duration,n.duration))))).filter((e=>"skipped"!==e.status&&!e.target.hidden))}}(uF),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AdoReporter",{enumerable:!0,get:()=>d});const t=iF,n=sF,r=GL,a=o(jo),i=uF;function o(e){return e&&e.__esModule?e:{default:e}}const s={[r.LogLevel.info]:a.default.white,[r.LogLevel.verbose]:a.default.gray,[r.LogLevel.warn]:a.default.white,[r.LogLevel.error]:a.default.white,[r.LogLevel.silly]:a.default.green,task:a.default.cyan,pkg:a.default.magenta,ok:a.default.green,error:a.default.red,warn:a.default.yellow},u={[r.LogLevel.info]:"INFO",[r.LogLevel.warn]:"WARN",[r.LogLevel.error]:"ERR!",[r.LogLevel.silly]:"SILLY",[r.LogLevel.verbose]:"VERB"};function l(e,t){return`${s.pkg(e)} ${s.task(t)}`}function c(e,t){if("string"==typeof t){return{prefix:e,message:t}}return{prefix:"",message:e}}function p(e,t,n){return`${u[e]}: ${t} ${n}\n`}class d{log(e){if(!(e.data&&e.data.target&&e.data.target.hidden))return e.data&&e.data.target&&(this.logEntries.has(e.data.target.id)||this.logEntries.set(e.data.target.id,[]),this.logEntries.get(e.data.target.id).push(e)),this.options.logLevel>=e.level?this.options.grouped&&e.data?.target?this.logTargetEntryByGroup(e):this.logTargetEntry(e):void 0}logTargetEntry(e){const r=s[e.level],i=e.data;if((0,n.isTargetStatusLogEntry)(i)){const{target:n,hash:o,duration:u}=i,{packageName:d,task:f}=n,m=this.options.grouped?c(e.msg):c(l(d??"<root>",f),e.msg),h=this.options.grouped?`${a.default.magenta(d)} ${a.default.cyan(f)}`:"";switch(i.status){case"running":return this.logStream.write(p(e.level,m.prefix,r(`${s.ok("➔")} start ${h}`)));case"success":return this.logStream.write(p(e.level,m.prefix,r(`${s.ok("✓")} done ${h} - ${(0,t.formatDuration)((0,t.hrToSeconds)(u))}`)));case"failed":return this.logStream.write(p(e.level,m.prefix,r(`${s.error("✖")} fail ${h}`)));case"skipped":return this.logStream.write(p(e.level,m.prefix,r(`${s.ok("»")} skip ${h} - ${o}`)));case"aborted":return this.logStream.write(p(e.level,m.prefix,r(`${s.warn("-")} aborted ${h}`)));case"queued":return this.logStream.write(p(e.level,m.prefix,r(`${s.warn("…")} aborted ${h}`)))}}else{if(e?.data?.target){const{target:t}=i,{packageName:n,task:a}=t,o=this.options.grouped?c(e.msg):c(l(n??"<root>",a),e.msg);return this.logStream.write(p(e.level,o.prefix,r("| "+o.message)))}if(""!==e?.msg.trim())return this.logStream.write(p(e.level,"",e.msg))}}logTargetEntryByGroup(e){const r=e.data,a=r.target,{id:i}=a;if(this.groupedEntries.set(i,this.groupedEntries.get(i)||[]),this.groupedEntries.get(i)?.push(e),(0,n.isTargetStatusLogEntry)(r)&&("success"===r.status||"failed"===r.status||"skipped"===r.status||"aborted"===r.status)){const{status:e,duration:n}=r;this.logStream.write(`##[group] ${s.pkg(r.target.packageName??"<root>")} ${s.task(r.target.task)} ${e}${n?`, took ${(0,t.formatDuration)((0,t.hrToSeconds)(n))}`:""}\n`);const a=this.groupedEntries.get(i);for(const e of a)this.logTargetEntry(e);this.logStream.write("##[endgroup]\n")}}summarize(e){const{targetRuns:n,targetRunByStatus:o,duration:s}=e,{failed:u,aborted:c,skipped:d,success:f,pending:m}=o,h={success:a.default.greenBright,failed:a.default.redBright,skipped:a.default.gray,running:a.default.yellow,pending:a.default.gray,aborted:a.default.red,queued:a.default.magenta};if(this.logStream.write(a.default.cyanBright("##[section]Summary\n")),n.size>0){const e=(0,i.slowestTargetRuns)([...n.values()]);for(const n of e){const e=h[n.status],a=n.target;this.logStream.write(p(r.LogLevel.info,l(a.packageName||"[GLOBAL]",a.task),e(`${n.status}${n.duration?`, took ${(0,t.formatDuration)((0,t.hrToSeconds)(n.duration))}`:""}`)))}this.logStream.write(`[Tasks Count] success: ${f.length}, skipped: ${d.length}, pending: ${m.length}, aborted: ${c.length}\n`)}else this.logStream.write("Nothing has been run.\n");if(u&&u.length>0){let e="##vso[task.logissue type=error]Your build failed on the following packages => ";for(const t of u){const r=n.get(t)?.target;if(r){const{packageName:n,task:i}=r,o=this.logEntries.get(t);if(e+=`[${n} ${i}], `,this.logStream.write(`##[error] [${a.default.magenta(n)} ${a.default.cyan(i)}] ${a.default.redBright("ERROR DETECTED")}\n`),o)for(const e of o)this.logStream.write(`##[error] ${e.msg}\n`)}}e+="find the error logs above with the prefix '##[error]!'\n",this.logStream.write(e)}this.logStream.write(p(r.LogLevel.info,"",`Took a total of ${(0,t.formatDuration)((0,t.hrToSeconds)(s))} to complete`))}constructor(e){this.options=e,this.logStream=process.stdout,this.logEntries=new Map,this.groupedEntries=new Map,e.logLevel=e.logLevel||r.LogLevel.info}}}(aF);var lF={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"JsonReporter",{enumerable:!0,get:()=>n});const t=iF;class n{log(e){e.data&&e.data.target&&e.data.target.hidden||this.options.logLevel>=e.level&&console.log(JSON.stringify(e))}summarize(e){const{duration:n,targetRuns:r,targetRunByStatus:a}=e,i={},o=[];for(const e of r.values())o.push({package:e.target.packageName,task:e.target.task,duration:(0,t.hrToSeconds)(e.duration),status:e.status});for(const e of Object.keys(a))a[e]&&a[e].length.length>0&&(i[`${e}Targets`]=a[e].length);i.duration=(0,t.hrToSeconds)(n),i.taskStats=o,console.log(JSON.stringify({summary:i}))}constructor(e){this.options=e}}}(lF);var cF={},pF=({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")},dF={exports:{}},fF={exports:{}};fF.exports=function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t=/^\s+/,n=/\s+$/;function r(e,t){if(t=t||{},(e=e||"")instanceof r)return e;if(!(this instanceof r))return new r(e,t);var n=a(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function a(t){var n={r:0,g:0,b:0},r=1,a=null,o=null,u=null,c=!1,p=!1;return"string"==typeof t&&(t=$(t)),"object"==e(t)&&(q(t.r)&&q(t.g)&&q(t.b)?(n=i(t.r,t.g,t.b),c=!0,p="%"===String(t.r).substr(-1)?"prgb":"rgb"):q(t.h)&&q(t.s)&&q(t.v)?(a=I(t.s),o=I(t.v),n=l(t.h,a,o),c=!0,p="hsv"):q(t.h)&&q(t.s)&&q(t.l)&&(a=I(t.s),u=I(t.l),n=s(t.h,a,u),c=!0,p="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=O(r),{ok:c,format:t.format||p,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}function i(e,t,n){return{r:255*N(e,255),g:255*N(t,255),b:255*N(n,255)}}function o(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,a,i=Math.max(e,t,n),o=Math.min(e,t,n),s=(i+o)/2;if(i==o)r=a=0;else{var u=i-o;switch(a=s>.5?u/(2-i-o):u/(i+o),i){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:a,l:s}}function s(e,t,n){var r,a,i;function o(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)r=a=i=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=o(u,s,e+1/3),a=o(u,s,e),i=o(u,s,e-1/3)}return{r:255*r,g:255*a,b:255*i}}function u(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,a,i=Math.max(e,t,n),o=Math.min(e,t,n),s=i,u=i-o;if(a=0===i?0:u/i,i==o)r=0;else{switch(i){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:a,v:s}}function l(e,t,n){e=6*N(e,360),t=N(t,100),n=N(n,100);var r=Math.floor(e),a=e-r,i=n*(1-t),o=n*(1-a*t),s=n*(1-(1-a)*t),u=r%6;return{r:255*[n,o,i,i,s,n][u],g:255*[s,n,n,o,i,i][u],b:255*[i,i,s,n,n,o][u]}}function c(e,t,n,r){var a=[R(Math.round(e).toString(16)),R(Math.round(t).toString(16)),R(Math.round(n).toString(16))];return r&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function p(e,t,n,r,a){var i=[R(Math.round(e).toString(16)),R(Math.round(t).toString(16)),R(Math.round(n).toString(16)),R(M(r))];return a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function d(e,t,n,r){return[R(M(r)),R(Math.round(e).toString(16)),R(Math.round(t).toString(16)),R(Math.round(n).toString(16))].join("")}function f(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s-=t/100,n.s=j(n.s),r(n)}function m(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s+=t/100,n.s=j(n.s),r(n)}function h(e){return r(e).desaturate(100)}function g(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l+=t/100,n.l=j(n.l),r(n)}function y(e,t){t=0===t?0:t||10;var n=r(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),r(n)}function v(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l-=t/100,n.l=j(n.l),r(n)}function b(e,t){var n=r(e).toHsl(),a=(n.h+t)%360;return n.h=a<0?360+a:a,r(n)}function w(e){var t=r(e).toHsl();return t.h=(t.h+180)%360,r(t)}function _(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=r(e).toHsl(),a=[r(e)],i=360/t,o=1;o<t;o++)a.push(r({h:(n.h+o*i)%360,s:n.s,l:n.l}));return a}function x(e){var t=r(e).toHsl(),n=t.h;return[r(e),r({h:(n+72)%360,s:t.s,l:t.l}),r({h:(n+216)%360,s:t.s,l:t.l})]}function k(e,t,n){t=t||6,n=n||30;var a=r(e).toHsl(),i=360/n,o=[r(e)];for(a.h=(a.h-(i*t>>1)+720)%360;--t;)a.h=(a.h+i)%360,o.push(r(a));return o}function S(e,t){t=t||6;for(var n=r(e).toHsv(),a=n.h,i=n.s,o=n.v,s=[],u=1/t;t--;)s.push(r({h:a,s:i,v:o})),o=(o+u)%1;return s}r.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=O(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=u(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=u(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=o(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=o(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return c(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return p(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*N(this._r,255))+"%",g:Math.round(100*N(this._g,255))+"%",b:Math.round(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*N(this._r,255))+"%, "+Math.round(100*N(this._g,255))+"%, "+Math.round(100*N(this._b,255))+"%)":"rgba("+Math.round(100*N(this._r,255))+"%, "+Math.round(100*N(this._g,255))+"%, "+Math.round(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(C[c(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+d(this._r,this._g,this._b,this._a),n=t,a=this._gradientType?"GradientType = 1, ":"";if(e){var i=r(e);n="#"+d(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return r(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(g,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(v,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(_,[3])},tetrad:function(){return this._applyCombination(_,[4])}},r.fromRatio=function(t,n){if("object"==e(t)){var a={};for(var i in t)t.hasOwnProperty(i)&&(a[i]="a"===i?t[i]:I(t[i]));t=a}return r(t,n)},r.equals=function(e,t){return!(!e||!t)&&r(e).toRgbString()==r(t).toRgbString()},r.random=function(){return r.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},r.mix=function(e,t,n){n=0===n?0:n||50;var a=r(e).toRgb(),i=r(t).toRgb(),o=n/100;return r({r:(i.r-a.r)*o+a.r,g:(i.g-a.g)*o+a.g,b:(i.b-a.b)*o+a.b,a:(i.a-a.a)*o+a.a})},r.readability=function(e,t){var n=r(e),a=r(t);return(Math.max(n.getLuminance(),a.getLuminance())+.05)/(Math.min(n.getLuminance(),a.getLuminance())+.05)},r.isReadable=function(e,t,n){var a,i,o=r.readability(e,t);switch(i=!1,(a=V(n)).level+a.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},r.mostReadable=function(e,t,n){var a,i,o,s,u=null,l=0;i=(n=n||{}).includeFallbackColors,o=n.level,s=n.size;for(var c=0;c<t.length;c++)(a=r.readability(e,t[c]))>l&&(l=a,u=r(t[c]));return r.isReadable(e,u,{level:o,size:s})||!i?u:(n.includeFallbackColors=!1,r.mostReadable(e,["#fff","#000"],n))};var E=r.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},C=r.hexNames=D(E);function D(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function O(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){T(e)&&(e="100%");var n=A(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function j(e){return Math.min(1,Math.max(0,e))}function P(e){return parseInt(e,16)}function T(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)}function A(e){return"string"==typeof e&&-1!=e.indexOf("%")}function R(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function M(e){return Math.round(255*parseFloat(e)).toString(16)}function L(e){return P(e)/255}var F,z,B,U=(z="[\\s|\\(]+("+(F="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",B="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",{CSS_UNIT:new RegExp(F),rgb:new RegExp("rgb"+z),rgba:new RegExp("rgba"+B),hsl:new RegExp("hsl"+z),hsla:new RegExp("hsla"+B),hsv:new RegExp("hsv"+z),hsva:new RegExp("hsva"+B),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function q(e){return!!U.CSS_UNIT.exec(e)}function $(e){e=e.replace(t,"").replace(n,"").toLowerCase();var r,a=!1;if(E[e])e=E[e],a=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(r=U.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=U.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=U.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=U.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=U.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=U.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=U.hex8.exec(e))?{r:P(r[1]),g:P(r[2]),b:P(r[3]),a:L(r[4]),format:a?"name":"hex8"}:(r=U.hex6.exec(e))?{r:P(r[1]),g:P(r[2]),b:P(r[3]),format:a?"name":"hex"}:(r=U.hex4.exec(e))?{r:P(r[1]+""+r[1]),g:P(r[2]+""+r[2]),b:P(r[3]+""+r[3]),a:L(r[4]+""+r[4]),format:a?"name":"hex8"}:!!(r=U.hex3.exec(e))&&{r:P(r[1]+""+r[1]),g:P(r[2]+""+r[2]),b:P(r[3]+""+r[3]),format:a?"name":"hex"}}function V(e){var t,n;return"AA"!==(t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==t&&(t="AA"),"small"!==(n=(e.size||"small").toLowerCase())&&"large"!==n&&(n="small"),{level:t,size:n}}return r}();const mF=fF.exports,hF={r:256,g:256,b:256,a:1},gF={h:360,s:1,v:1,a:1};function yF(e,t,n){let r={};for(let a in e)e.hasOwnProperty(a)&&(r[a]=0===n?0:(t[a]-e[a])/n);return r}function vF(e,t,n,r){let a={};for(let i in t)t.hasOwnProperty(i)&&(a[i]=e[i]*n+t[i],a[i]=a[i]<0?a[i]+r[i]:1!==r[i]?a[i]%r[i]:a[i]);return a}function bF(e,t,n){const r=e.color.toRgb(),a=yF(r,t.color.toRgb(),n);let i=[e.color];for(let e=1;e<n;e++){const t=vF(a,r,e,hF);i.push(mF(t))}return i}function wF(e,t,n,r){const a=e.color.toHsv(),i=t.color.toHsv();if(0===a.s||0===i.s)return bF(e,t,n);let o;if("boolean"==typeof r)o=r;else{const e=a.h<i.h&&i.h-a.h<180||a.h>i.h&&a.h-i.h>180;o="long"===r&&e||"short"===r&&!e}const s=yF(a,i,n);let u,l=[e.color];u=a.h<=i.h&&!o||a.h>=i.h&&o?i.h-a.h:o?360-i.h+a.h:360-a.h+i.h,s.h=Math.pow(-1,o?1:0)*Math.abs(u)/n;for(let e=1;e<n;e++){const t=vF(s,a,e,gF);l.push(mF(t))}return l}function _F(e,t){const n=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<n)throw new Error("Number of steps cannot be inferior to number of stops");let r=[];for(let a=1;a<n;a++){const n=(t-1)*(e[a].pos-e[a-1].pos);r.push(Math.max(1,Math.round(n)))}let a=1;for(let e=n-1;e--;)a+=r[e];for(;a!==t;)if(a<t){const e=Math.min.apply(null,r);r[r.indexOf(e)]++,a++}else{const e=Math.max.apply(null,r);r[r.indexOf(e)]--,a--}return r}function xF(e,t,n,r){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let a,i;for(let n=0,r=e.length;n<r-1;n++)if(t>=e[n].pos&&t<e[n+1].pos){a=e[n],i=e[n+1];break}a||(a=i=e[e.length-1]);const o=vF(yF(a.color[n](),i.color[n](),100*(i.pos-a.pos)),a.color[n](),100*(t-a.pos),r);return mF(o)}class kF{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");const t=void 0!==e[0].pos;let n=e.length,r=-1,a=!1;this.stops=e.map(((e,i)=>{const o=void 0!==e.pos;if(t^o)throw new Error("Cannot mix positionned and not posionned color stops");if(o){const t=void 0!==e.color;if(!t&&(a||0===i||i===n-1))throw new Error("Cannot define two consecutive position-only stops");if(a=!t,(e={color:t?mF(e.color):null,colorLess:!t,pos:e.pos}).pos<0||e.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(e.pos<r)throw new Error("Color stops positions are not ordered");r=e.pos}else e={color:mF(void 0!==e.color?e.color:e),pos:i/(n-1)};return e})),0!==this.stops[0].pos&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),1!==this.stops[n-1].pos&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach((function(t){e.push({color:t.color,pos:1-t.pos})})),new kF(e.reverse())}loop(){let e=[],t=[];return this.stops.forEach((t=>{e.push({color:t.color,pos:t.pos/2})})),this.stops.slice(0,-1).forEach((e=>{t.push({color:e.color,pos:1-e.pos/2})})),new kF(e.concat(t.reverse()))}rgb(e){const t=_F(this.stops,e);let n=[];this.stops.forEach(((e,t)=>{e.colorLess&&(e.color=bF(this.stops[t-1],this.stops[t+1],2)[1])}));for(let e=0,r=this.stops.length;e<r-1;e++){const r=bF(this.stops[e],this.stops[e+1],t[e]);n.splice(n.length,0,...r)}return n.push(this.stops[this.stops.length-1].color),n}hsv(e,t){const n=_F(this.stops,e);let r=[];this.stops.forEach(((e,n)=>{e.colorLess&&(e.color=wF(this.stops[n-1],this.stops[n+1],2,t)[1])}));for(let e=0,a=this.stops.length;e<a-1;e++){const a=wF(this.stops[e],this.stops[e+1],n[e],t);r.splice(r.length,0,...a)}return r.push(this.stops[this.stops.length-1].color),r}css(e,t){let n=(e=e||"linear")+"-gradient("+(t=t||("linear"===e?"to right":"ellipse at center"));return this.stops.forEach((function(e){n+=", "+(e.colorLess?"":e.color.toRgbString()+" ")+100*e.pos+"%"})),n+=")",n}rgbAt(e){return xF(this.stops,e,"toRgb",hF)}hsvAt(e){return xF(this.stops,e,"toHsv",gF)}}var SF=function(e){if(1===arguments.length){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new kF(e)};!function(e){const t=jo,n=SF,r=/\s/g;function a(...e){const a=n.apply(this,e),s=(e,n)=>function(e,n,a){const s=o(a),u=Math.max(e.replace(r,"").length,n.stops.length),l=i(n,s,u);let c="";for(const n of e)c+=n.match(r)?n:t.hex(l.shift().toHex())(n);return c}(e?e.toString():"",a,n);return s.multiline=(e,n)=>function(e,n,r){const a=o(r),s=e.split("\n"),u=Math.max.apply(null,s.map((e=>e.length)).concat([n.stops.length])),l=i(n,a,u),c=[];for(const e of s){const n=l.slice(0);let r="";for(const a of e)r+=t.hex(n.shift().toHex())(a);c.push(r)}return c.join("\n")}(e?e.toString():"",a,n),s}const i=(e,t,n)=>"hsv"===t.interpolation.toLowerCase()?e.hsv(n,t.hsvSpin.toLowerCase()):e.rgb(n);function o(e){const t={interpolation:"rgb",hsvSpin:"short",...e};if(void 0!==e&&"object"!=typeof e)throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof e}\``);if("string"!=typeof t.interpolation)throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof t.interpolation}\``);if("hsv"===t.interpolation.toLowerCase()&&"string"!=typeof t.hsvSpin)throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof t.hsvSpin}\``);return t}const s={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};e.exports=a;for(const t in s)e.exports[t]=e=>new a(s[t].colors)(e,s[t].options),e.exports[t].multiline=e=>new a(s[t].colors).multiline(e,s[t].options)}(dF);var EF={};!function(e){function t(e){return`${(e/1024/1024).toFixed(2)} MB`}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"formatBytes",{enumerable:!0,get:()=>t})}(EF),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LogReporter",{enumerable:!0,get:()=>y});const t=iF,n=sF,r=GL,a=c(pF),i=c(jo),o=c(dF.exports),s=c(q.default),u=EF,l=uF;function c(e){return e&&e.__esModule?e:{default:e}}const p={[r.LogLevel.info]:i.default.white,[r.LogLevel.verbose]:i.default.gray,[r.LogLevel.warn]:i.default.white,[r.LogLevel.error]:i.default.hex("#FF1010"),[r.LogLevel.silly]:i.default.green,task:i.default.hex("#00DDDD"),pkg:i.default.hex("#FFD66B"),ok:i.default.green,error:i.default.red,warn:i.default.yellow},d=[i.default.hex("#e5b567"),i.default.hex("#b4d273"),i.default.hex("#e87d3e"),i.default.hex("#9e86c8"),i.default.hex("#b05279"),i.default.hex("#6c99bb")];const f=new Map;function m(e){if(!f.has(e)){const t=function(e){const t=s.default.createHash("md5");t.update(e);const n=t.digest("hex").substring(0,6);return parseInt(n,16)}(e)%d.length;f.set(e,t)}return d[f.get(e)]}const h=(0,a.default)();function g(e,t){return`${m(e)(e)} ${p.task(t)}`}class y{log(e){if(!(e?.data?.target?.hidden||(e.data?.target?.id&&(this.logEntries.has(e.data.target.id)||this.logEntries.set(e.data.target.id,[]),this.logEntries.get(e.data.target.id).push(e)),this.options.logLevel<e.level)))return this.options.grouped&&e.data?.target?this.logTargetEntryByGroup(e):e.data&&e.data.target?this.logTargetEntry(e):e.msg?this.print(e.msg):void 0}printEntry(e,t){let n="",r=t;if(e?.data?.target){const{packageName:t,task:a}=e.data.target,i=function(e,t){if("string"==typeof t)return{prefix:e,message:t};return{prefix:"",message:e}}(g(t??"<root>",a),r);n=i.prefix,r=i.message}this.print(`${n?n+" ":""}${r}`)}print(e){this.logStream.write(e+"\n")}logTargetEntry(e){const r=p[e.level],a=e.data;if(!(0,n.isTargetStatusLogEntry)(a))return this.printEntry(e,r(": "+e.msg.replace(h,"")));{const{hash:n,duration:i}=a;switch(a.status){case"running":return this.printEntry(e,r(`${p.ok("➔")} start`));case"success":return this.printEntry(e,r(`${p.ok("✓")} done - ${(0,t.formatDuration)((0,t.hrToSeconds)(i))}`));case"failed":return this.printEntry(e,r(`${p.error("✖")} fail`));case"skipped":return this.printEntry(e,r(`${p.ok("»")} skip - ${n}`));case"aborted":return this.printEntry(e,r(`${p.warn("-")} aborted`));case"queued":return this.printEntry(e,r(`${p.warn("…")} queued`))}}}logTargetEntryByGroup(e){const t=e.data,r=t.target,{id:a}=r;if((0,n.isTargetStatusLogEntry)(t)&&("success"===t.status||"failed"===t.status||"skipped"===t.status||"aborted"===t.status)){const e=this.logEntries.get(a);for(const t of e)this.logTargetEntry(t);e.length>2&&this.hr()}}hr(){this.print("┈".repeat(80))}summarize(e){const{targetRuns:n,targetRunByStatus:a,duration:s}=e,{failed:c,aborted:d,skipped:f,success:m,pending:h}=a,y={success:i.default.greenBright,failed:i.default.redBright,skipped:i.default.gray,running:i.default.yellow,pending:i.default.gray,aborted:i.default.red,queued:i.default.magenta};if(n.size>0){this.print(i.default.cyanBright("\nSummary")),this.hr();const r=(0,l.slowestTargetRuns)([...n.values()]);for(const e of r){if(e.target.hidden)continue;const n=y[e.status]??i.default.white,r=e.target,a=!!e.duration&&!!e.queueTime,o=a?(0,t.hrtimeDiff)(e.queueTime,e.startTime):[0,0];this.print(`${g(r.packageName||"<root>",r.task)} ${n(`${"running"===e.status?"running - incomplete":e.status}${a?`, took ${(0,t.formatDuration)((0,t.hrToSeconds)(e.duration))}, queued for ${(0,t.formatDuration)((0,t.hrToSeconds)(o))}`:""}`)}`)}this.print(`success: ${m.length}, skipped: ${f.length}, pending: ${h.length}, aborted: ${d.length}, failed: ${c.length}`),this.print(`worker restarts: ${e.workerRestarts}, max worker memory usage: ${(0,u.formatBytes)(e.maxWorkerMemoryUsage)}`)}else this.print("Nothing has been run.");if(this.hr(),c&&c.length>0)for(const e of c){const t=n.get(e)?.target;if(t){const{packageName:n,task:a}=t,i=this.logEntries.get(e);if(this.print(`[${p.pkg(n??"<root>")} ${p.task(a)}] ${p[r.LogLevel.error]("ERROR DETECTED")}`),i)for(const e of i)this.print(e.msg);this.hr()}}const v=[...n.values()].filter((e=>!e.target.hidden)).length===f.length,b=v?(0,o.default)({r:237,g:178,b:77},"cyan")("All targets skipped!"):"";this.print(`Took a total of ${(0,t.formatDuration)((0,t.hrToSeconds)(s))} to complete. ${b}`)}resetLogEntries(){this.logEntries.clear()}constructor(e){this.options=e,this.logStream=process.stdout,this.logEntries=new Map,this.groupedEntries=new Map,e.logLevel=e.logLevel||r.LogLevel.info}}}(cF);var CF={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ChromeTraceEventsReporter",{enumerable:!0,get:()=>o});const t=a(jo),n=a(R.default),r=a(A.default);function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return 1e6*e[0]+.001*e[1]}class o{log(){}summarize(e){const{targetRuns:n,startTime:r}=e,{categorize:a}=this.options;for(const e of n.values()){if(e.target.hidden||"skipped"===e.status)continue;const t={name:e.target.id,cat:`${e.status}#${e.target.task}`,ph:"X",ts:i(e.startTime)-i(r),dur:i(e.duration??[0,1e3]),pid:1,tid:e.threadId};a&&(t.cat+=`,${a(e)}`),this.events.traceEvents.push(t)}this.logStream.write(JSON.stringify(this.events,null,2)),this.consoleLogStream.write(t.default.blueBright(`\nProfiler output written to ${t.default.underline(this.outputFile)}, open it with chrome://tracing or edge://tracing\n`))}constructor(e){var t;this.options=e,this.consoleLogStream=process.stdout,this.events={traceEvents:[],displayTimeUnit:"ms"},this.outputFile=e.outputFile??`${(t="profile")?t+"-":""}${(new Date).toISOString().split(".")[0].replace(/-|:/g,"")}.json`,n.default.existsSync(r.default.dirname(this.outputFile))||n.default.mkdirSync(r.default.dirname(this.outputFile),{recursive:!0}),this.logStream=n.default.createWriteStream(this.outputFile,{flags:"w"})}}}(CF);var DF,OF={},NF={},jF={},PF={},TF={},AF={exports:{}},RF={};function IF(){if(DF)return RF;DF=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),p=Symbol.iterator;var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,m={};function h(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||d}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||d}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=h.prototype;var v=y.prototype=new g;v.constructor=y,f(v,h.prototype),v.isPureReactComponent=!0;var b=Array.isArray,w=Object.prototype.hasOwnProperty,_={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function k(t,n,r){var a,i={},o=null,s=null;if(null!=n)for(a in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(o=""+n.key),n)w.call(n,a)&&!x.hasOwnProperty(a)&&(i[a]=n[a]);var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(a in u=t.defaultProps)void 0===i[a]&&(i[a]=u[a]);return{$$typeof:e,type:t,key:o,ref:s,props:i,_owner:_.current}}function S(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var E=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function D(n,r,a,i,o){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var u=!1;if(null===n)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(n.$$typeof){case e:case t:u=!0}}if(u)return o=o(u=n),n=""===i?"."+C(u,0):i,b(o)?(a="",null!=n&&(a=n.replace(E,"$&/")+"/"),D(o,r,a,"",(function(e){return e}))):null!=o&&(S(o)&&(o=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(o,a+(!o.key||u&&u.key===o.key?"":(""+o.key).replace(E,"$&/")+"/")+n)),r.push(o)),1;if(u=0,i=""===i?".":i+":",b(n))for(var l=0;l<n.length;l++){var c=i+C(s=n[l],l);u+=D(s,r,a,c,o)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),l=0;!(s=n.next()).done;)u+=D(s=s.value,r,a,c=i+C(s,l++),o);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return u}function O(e,t,n){if(null==e)return e;var r=[],a=0;return D(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var j={current:null},P={transition:null},T={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:P,ReactCurrentOwner:_};return RF.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},RF.Component=h,RF.Fragment=n,RF.Profiler=a,RF.PureComponent=y,RF.StrictMode=r,RF.Suspense=u,RF.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,RF.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var a=f({},t.props),i=t.key,o=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(o=n.ref,s=_.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var u=t.type.defaultProps;for(l in n)w.call(n,l)&&!x.hasOwnProperty(l)&&(a[l]=void 0===n[l]&&void 0!==u?u[l]:n[l])}var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){u=Array(l);for(var c=0;c<l;c++)u[c]=arguments[c+2];a.children=u}return{$$typeof:e,type:t.type,key:i,ref:o,props:a,_owner:s}},RF.createContext=function(e){return(e={$$typeof:o,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},RF.createElement=k,RF.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},RF.createRef=function(){return{current:null}},RF.forwardRef=function(e){return{$$typeof:s,render:e}},RF.isValidElement=S,RF.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:N}},RF.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},RF.startTransition=function(e){var t=P.transition;P.transition={};try{e()}finally{P.transition=t}},RF.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},RF.useCallback=function(e,t){return j.current.useCallback(e,t)},RF.useContext=function(e){return j.current.useContext(e)},RF.useDebugValue=function(){},RF.useDeferredValue=function(e){return j.current.useDeferredValue(e)},RF.useEffect=function(e,t){return j.current.useEffect(e,t)},RF.useId=function(){return j.current.useId()},RF.useImperativeHandle=function(e,t,n){return j.current.useImperativeHandle(e,t,n)},RF.useInsertionEffect=function(e,t){return j.current.useInsertionEffect(e,t)},RF.useLayoutEffect=function(e,t){return j.current.useLayoutEffect(e,t)},RF.useMemo=function(e,t){return j.current.useMemo(e,t)},RF.useReducer=function(e,t,n){return j.current.useReducer(e,t,n)},RF.useRef=function(e){return j.current.useRef(e)},RF.useState=function(e){return j.current.useState(e)},RF.useSyncExternalStore=function(e,t,n){return j.current.useSyncExternalStore(e,t,n)},RF.useTransition=function(){return j.current.useTransition()},RF.version="18.2.0",RF}var MF,LF={exports:{}};
|
|
552
552
|
/**
|
|
553
553
|
* @license React
|
|
554
554
|
* react.development.js
|
|
@@ -629,5 +629,5 @@ function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterat
|
|
|
629
629
|
* This source code is licensed under the MIT license found in the
|
|
630
630
|
* LICENSE file in the root directory of this source tree.
|
|
631
631
|
*/
|
|
632
|
-
function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var a=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.debug_trace_mode"),v=Symbol.for("react.offscreen"),b=Symbol.for("react.cache"),w=Symbol.for("react.default_value"),_=Symbol.iterator;var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,S={};function E(e,t,n){this.props=e,this.context=t,this.refs=S,this.updater=n||x}function C(){}function D(e,t,n){this.props=e,this.context=t,this.refs=S,this.updater=n||x}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!==r(e)&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=E.prototype;var O=D.prototype=new C;O.constructor=D,k(O,E.prototype),O.isPureReactComponent=!0;var N=Array.isArray,j=Object.prototype.hasOwnProperty,P={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var r,i={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)j.call(t,r)&&!T.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:a,type:e,key:o,ref:s,props:i,_owner:P.current}}function R(e){return"object"===r(e)&&null!==e&&e.$$typeof===a}var I=/\/+/g;function M(e,t){return"object"===r(e)&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function L(e,t,n,o,s){var u=r(e);"undefined"!==u&&"boolean"!==u||(e=null);var l=!1;if(null===e)l=!0;else switch(u){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case a:case i:l=!0}}if(l)return s=s(l=e),e=""===o?"."+M(l,0):o,N(s)?(n="",null!=e&&(n=e.replace(I,"$&/")+"/"),L(s,t,n,"",(function(e){return e}))):null!=s&&(R(s)&&(s=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,n+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(I,"$&/")+"/")+e)),t.push(s)),1;if(l=0,o=""===o?".":o+":",N(e))for(var c=0;c<e.length;c++){var p=o+M(u=e[c],c);l+=L(u,t,n,p,s)}else if(p=function(e){return null===e||"object"!==r(e)?null:"function"==typeof(e=_&&e[_]||e["@@iterator"])?e:null}(e),"function"==typeof p)for(e=p.call(e),c=0;!(u=e.next()).done;)l+=L(u=u.value,t,n,p=o+M(u,c++),s);else if("object"===u)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function F(e,t,n){if(null==e)return e;var r=[],a=0;return L(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function z(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var B={current:null};function U(){return new WeakMap}var q={current:null},$={transition:null},V={ReactCurrentDispatcher:q,ReactCurrentCache:B,ReactCurrentBatchConfig:$,ReactCurrentOwner:P,ContextRegistry:{}},H=V.ContextRegistry;t.Children={map:F,forEach:function(e,t,n){F(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return F(e,(function(){t++})),t},toArray:function(e){return F(e,(function(e){return e}))||[]},only:function(e){if(!R(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=E,t.Fragment=o,t.Profiler=u,t.PureComponent=D,t.StrictMode=s,t.Suspense=f,t.SuspenseList=m,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,t.cache=function(e){return function(){var t=B.current;if(!t)return e.apply(null,arguments);var n=t.getCacheForType(U);void 0===(t=n.get(e))&&(t={s:0,v:void 0,o:null,p:null},n.set(e,t)),n=0;for(var a=arguments.length;n<a;n++){var i=arguments[n];if("function"==typeof i||"object"===r(i)&&null!==i){var o=t.o;null===o&&(t.o=o=new WeakMap),void 0===(t=o.get(i))&&(t={s:0,v:void 0,o:null,p:null},o.set(i,t))}else null===(o=t.p)&&(t.p=o=new Map),void 0===(t=o.get(i))&&(t={s:0,v:void 0,o:null,p:null},o.set(i,t))}if(1===t.s)return t.v;if(2===t.s)throw t.v;try{var s=e.apply(null,arguments);return(n=t).s=1,n.v=s}catch(e){throw(s=t).s=2,s.v=e,e}}},t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=k({},e.props),i=e.key,o=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,s=P.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)j.call(t,l)&&!T.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==u?u[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){u=Array(l);for(var c=0;c<l;c++)u[c]=arguments[c+2];r.children=u}return{$$typeof:a,type:e.type,key:i,ref:o,props:r,_owner:s}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=A,t.createFactory=function(e){var t=A.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.createServerContext=function(e,t){var n=!0;if(!H[e]){n=!1;var r={$$typeof:p,_currentValue:t,_currentValue2:t,_defaultValue:t,_threadCount:0,Provider:null,Consumer:null,_globalName:e};r.Provider={$$typeof:l,_context:r},H[e]=r}if((r=H[e])._defaultValue===w)r._defaultValue=t,r._currentValue===w&&(r._currentValue=t),r._currentValue2===w&&(r._currentValue2=t);else if(n)throw Error("ServerContext: "+e+" already defined");return r},t.experimental_useEffectEvent=function(e){return q.current.useEffectEvent(e)},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=R,t.lazy=function(e){return{$$typeof:g,_payload:{_status:-1,_result:e},_init:z}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=$.transition;$.transition={};try{e()}finally{$.transition=t}},t.unstable_Cache=b,t.unstable_DebugTracingMode=y,t.unstable_Offscreen=v,t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.unstable_getCacheForType=function(e){var t=B.current;return t?t.getCacheForType(e):e()},t.unstable_getCacheSignal=function(){var e=B.current;return e?e.getCacheSignal():((e=new AbortController).abort(Error("This CacheSignal was requested outside React which means that it is immediately aborted.")),e.signal)},t.unstable_useCacheRefresh=function(){return q.current.useCacheRefresh()},t.unstable_useMemoCache=function(e){return q.current.useMemoCache(e)},t.use=function(e){return q.current.use(e)},t.useCallback=function(e,t){return q.current.useCallback(e,t)},t.useContext=function(e){return q.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return q.current.useDeferredValue(e)},t.useEffect=function(e,t){return q.current.useEffect(e,t)},t.useId=function(){return q.current.useId()},t.useImperativeHandle=function(e,t,n){return q.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return q.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return q.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return q.current.useMemo(e,t)},t.useReducer=function(e,t,n){return q.current.useReducer(e,t,n)},t.useRef=function(e){return q.current.useRef(e)},t.useState=function(e){return q.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return q.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return q.current.useTransition()},t.version="18.3.0-experimental-53b1f69ba-20230209"},function(e,t,n){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.r(t),n.d(t,"connectToDevTools",(function(){return Xe}));var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"listenersMap",new Map)}var t,n,a;return t=e,n=[{key:"addListener",value:function(e,t){var n=this.listenersMap.get(e);void 0===n?this.listenersMap.set(e,[t]):n.indexOf(t)<0&&n.push(t)}},{key:"emit",value:function(e){var t=this.listenersMap.get(e);if(void 0!==t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];if(1===t.length)t[0].apply(null,r);else{for(var i=!1,o=null,s=Array.from(t),u=0;u<s.length;u++){var l=s[u];try{l.apply(null,r)}catch(e){null===o&&(i=!0,o=e)}}if(i)throw o}}}},{key:"removeAllListeners",value:function(){this.listenersMap.clear()}},{key:"removeListener",value:function(e,t){var n=this.listenersMap.get(e);if(void 0!==n){var r=n.indexOf(t);r>=0&&n.splice(r,1)}}}],n&&r(t.prototype,n),a&&r(t,a),e}(),i=n(13),o=n.n(i),s=n(2),u=n(5),l=function(e,t){return e===t},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,n=void 0,r=[],a=void 0,i=!1,o=function(e,n){return t(e,r[n])};return function(){for(var t=arguments.length,s=Array(t),u=0;u<t;u++)s[u]=arguments[u];return i&&n===this&&s.length===r.length&&s.every(o)?a:(i=!0,n=this,r=s,a=e.apply(this,s))}};function p(e){return e.ownerDocument?e.ownerDocument.defaultView:null}function d(e){var t=p(e);return t?t.frameElement:null}function f(e){var t=g(e);return m([e.getBoundingClientRect(),{top:t.borderTop,left:t.borderLeft,bottom:t.borderBottom,right:t.borderRight,width:0,height:0}])}function m(e){return e.reduce((function(e,t){return null==e?t:{top:e.top+t.top,left:e.left+t.left,width:e.width,height:e.height,bottom:e.bottom+t.bottom,right:e.right+t.right}}))}function h(e,t){var n=d(e);if(n&&n!==t){for(var r=[e.getBoundingClientRect()],a=n,i=!1;a;){var o=f(a);if(r.push(o),a=d(a),i)break;a&&p(a)===t&&(i=!0)}return m(r)}return e.getBoundingClientRect()}function g(e){var t=window.getComputedStyle(e);return{borderLeft:parseInt(t.borderLeftWidth,10),borderRight:parseInt(t.borderRightWidth,10),borderTop:parseInt(t.borderTopWidth,10),borderBottom:parseInt(t.borderBottomWidth,10),marginLeft:parseInt(t.marginLeft,10),marginRight:parseInt(t.marginRight,10),marginTop:parseInt(t.marginTop,10),marginBottom:parseInt(t.marginBottom,10),paddingLeft:parseInt(t.paddingLeft,10),paddingRight:parseInt(t.paddingRight,10),paddingTop:parseInt(t.paddingTop,10),paddingBottom:parseInt(t.paddingBottom,10)}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}var w=Object.assign,_=function(){function e(t,n){y(this,e),this.node=t.createElement("div"),this.border=t.createElement("div"),this.padding=t.createElement("div"),this.content=t.createElement("div"),this.border.style.borderColor=E.border,this.padding.style.borderColor=E.padding,this.content.style.backgroundColor=E.background,w(this.node.style,{borderColor:E.margin,pointerEvents:"none",position:"fixed"}),this.node.style.zIndex="10000000",this.node.appendChild(this.border),this.border.appendChild(this.padding),this.padding.appendChild(this.content),n.appendChild(this.node)}return b(e,[{key:"remove",value:function(){this.node.parentNode&&this.node.parentNode.removeChild(this.node)}},{key:"update",value:function(e,t){S(t,"margin",this.node),S(t,"border",this.border),S(t,"padding",this.padding),w(this.content.style,{height:e.height-t.borderTop-t.borderBottom-t.paddingTop-t.paddingBottom+"px",width:e.width-t.borderLeft-t.borderRight-t.paddingLeft-t.paddingRight+"px"}),w(this.node.style,{top:e.top-t.marginTop+"px",left:e.left-t.marginLeft+"px"})}}]),e}(),x=function(){function e(t,n){y(this,e),this.tip=t.createElement("div"),w(this.tip.style,{display:"flex",flexFlow:"row nowrap",backgroundColor:"#333740",borderRadius:"2px",fontFamily:'"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace',fontWeight:"bold",padding:"3px 5px",pointerEvents:"none",position:"fixed",fontSize:"12px",whiteSpace:"nowrap"}),this.nameSpan=t.createElement("span"),this.tip.appendChild(this.nameSpan),w(this.nameSpan.style,{color:"#ee78e6",borderRight:"1px solid #aaaaaa",paddingRight:"0.5rem",marginRight:"0.5rem"}),this.dimSpan=t.createElement("span"),this.tip.appendChild(this.dimSpan),w(this.dimSpan.style,{color:"#d7d7d7"}),this.tip.style.zIndex="10000000",n.appendChild(this.tip)}return b(e,[{key:"remove",value:function(){this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip)}},{key:"updateText",value:function(e,t,n){this.nameSpan.textContent=e,this.dimSpan.textContent=Math.round(t)+"px × "+Math.round(n)+"px"}},{key:"updatePosition",value:function(e,t){var n=this.tip.getBoundingClientRect(),r=function(e,t,n){var r,a=Math.max(n.height,20),i=Math.max(n.width,60),o=5;r=e.top+e.height+a<=t.top+t.height?e.top+e.height<t.top+0?t.top+o:e.top+e.height+o:e.top-a<=t.top+t.height?e.top-a-o<t.top+o?t.top+o:e.top-a-o:t.top+t.height-a-o;var s=e.left+o;e.left<t.left&&(s=t.left+o);e.left+i>t.left+t.width&&(s=t.left+t.width-i-o);return{style:{top:r+="px",left:s+="px"}}}(e,t,{width:n.width,height:n.height});w(this.tip.style,r.style)}}]),e}(),k=function(){function e(t){y(this,e);var n=window.__REACT_DEVTOOLS_TARGET_WINDOW__||window;this.window=n;var r=window.__REACT_DEVTOOLS_TARGET_WINDOW__||window;this.tipBoundsWindow=r;var a=n.document;this.container=a.createElement("div"),this.container.style.zIndex="10000000",this.tip=new x(a,this.container),this.rects=[],this.agent=t,a.body.appendChild(this.container)}return b(e,[{key:"remove",value:function(){this.tip.remove(),this.rects.forEach((function(e){e.remove()})),this.rects.length=0,this.container.parentNode&&this.container.parentNode.removeChild(this.container)}},{key:"inspect",value:function(e,t){for(var n=this,r=e.filter((function(e){return e.nodeType===Node.ELEMENT_NODE}));this.rects.length>r.length;){this.rects.pop().remove()}if(0!==r.length){for(;this.rects.length<r.length;)this.rects.push(new _(this.window.document,this.container));var a={top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,left:Number.POSITIVE_INFINITY};if(r.forEach((function(e,t){var r=h(e,n.window),i=g(e);a.top=Math.min(a.top,r.top-i.marginTop),a.right=Math.max(a.right,r.left+r.width+i.marginRight),a.bottom=Math.max(a.bottom,r.top+r.height+i.marginBottom),a.left=Math.min(a.left,r.left-i.marginLeft),n.rects[t].update(r,i)})),!t){t=r[0].nodeName.toLowerCase();var i=r[0],o=this.agent.getBestMatchingRendererInterface(i);if(o){var s=o.getFiberIDForNative(i,!0);if(s){var u=o.getDisplayNameForFiberID(s,!0);u&&(t+=" (in "+u+")")}}}this.tip.updateText(t,a.right-a.left,a.bottom-a.top);var l=h(this.tipBoundsWindow.document.documentElement,this.window);this.tip.updatePosition({top:a.top,left:a.left,height:a.bottom-a.top,width:a.right-a.left},{top:l.top+this.tipBoundsWindow.scrollY,left:l.left+this.tipBoundsWindow.scrollX,height:this.tipBoundsWindow.innerHeight,width:this.tipBoundsWindow.innerWidth})}}}]),e}();function S(e,t,n){w(n.style,{borderTopWidth:e[t+"Top"]+"px",borderLeftWidth:e[t+"Left"]+"px",borderRightWidth:e[t+"Right"]+"px",borderBottomWidth:e[t+"Bottom"]+"px",borderStyle:"solid"})}var E={background:"rgba(120, 170, 210, 0.7)",padding:"rgba(77, 200, 0, 0.3)",margin:"rgba(255, 155, 0, 0.3)",border:"rgba(255, 200, 50, 0.3)"},C=2e3,D=null,O=null;function N(e){null!=window.document?(D=null,null!==O&&(O.remove(),O=null)):e.emit("hideNativeHighlight")}function j(e,t,n,r){null!=window.document?(null!==D&&clearTimeout(D),null!=e&&(null===O&&(O=new k(n)),O.inspect(e,t),r&&(D=setTimeout((function(){return N(n)}),C)))):null!=e&&null!=e[0]&&n.emit("showNativeHighlight",e[0])}var P=new Set;var T="#f0f0f0",A=["#37afa9","#63b19e","#80b393","#97b488","#abb67d","#beb771","#cfb965","#dfba57","#efbb49","#febc38"],R=null;function I(e,t){if(null==window.document){var n=[];return M(e,(function(e,t,r){n.push({node:r,color:t})})),void t.emit("drawTraceUpdates",n)}null===R&&function(){(R=window.document.createElement("canvas")).style.cssText="\n xx-background-color: red;\n xx-opacity: 0.5;\n bottom: 0;\n left: 0;\n pointer-events: none;\n position: fixed;\n right: 0;\n top: 0;\n z-index: 1000000000;\n ";var e=window.document.documentElement;e.insertBefore(R,e.firstChild)}();var r=R;r.width=window.innerWidth,r.height=window.innerHeight;var a=r.getContext("2d");a.clearRect(0,0,r.width,r.height),M(e,(function(e,t){null!==e&&function(e,t,n){var r=t.height,a=t.left,i=t.top,o=t.width;e.lineWidth=1,e.strokeStyle=T,e.strokeRect(a-1,i-1,o+2,r+2),e.lineWidth=1,e.strokeStyle=T,e.strokeRect(a+1,i+1,o-1,r-1),e.strokeStyle=n,e.setLineDash([0]),e.lineWidth=1,e.strokeRect(a,i,o-1,r-1),e.setLineDash([0])}(a,e,t)}))}function M(e,t){e.forEach((function(e,n){var r=e.count,a=e.rect,i=Math.min(A.length-1,r-1),o=A[i];t(a,o,n)}))}function L(e){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},L(e)}var F=250,z=3e3,B=250,U="object"===("undefined"==typeof performance?"undefined":L(performance))&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()},q=new Map,$=null,V=null,H=!1,W=null;function G(e){var t;(H=e)||(q.clear(),null!==V&&(cancelAnimationFrame(V),V=null),null!==W&&(clearTimeout(W),W=null),t=$,null!=window.document?null!==R&&(null!=R.parentNode&&R.parentNode.removeChild(R),R=null):t.emit("disableTraceUpdates"))}function K(e){H&&(e.forEach((function(e){var t=q.get(e),n=U(),r=null!=t?t.lastMeasuredAt:0,a=null!=t?t.rect:null;(null===a||r+B<n)&&(r=n,a=function(e){if(!e||"function"!=typeof e.getBoundingClientRect)return null;var t=window.__REACT_DEVTOOLS_TARGET_WINDOW__||window;return h(e,t)}(e)),q.set(e,{count:null!=t?t.count+1:1,expirationTime:null!=t?Math.min(n+z,t.expirationTime+F):n+F,lastMeasuredAt:r,rect:a})})),null!==W&&(clearTimeout(W),W=null),null===V&&(V=requestAnimationFrame(Y)))}function Y(){V=null,W=null;var e=U(),t=Number.MAX_VALUE;q.forEach((function(n,r){n.expirationTime<e?q.delete(r):t=Math.min(t,n.expirationTime)})),I(q,$),t!==Number.MAX_VALUE&&(W=setTimeout(Y,t-e))}var Q=n(8);function X(e){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(e)}function J(e){return function(e){if(Array.isArray(e))return Z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function te(e,t){return te=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},te(e,t)}function ne(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ae(e);if(t){var a=ae(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===X(t)||"function"==typeof t))return t;return re(e)}(this,n)}}function re(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ae(e){return ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ae(e)}function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oe=100,se=[{version:0,minNpmVersion:'"<4.11.0"',maxNpmVersion:'"<4.11.0"'},{version:1,minNpmVersion:"4.13.0",maxNpmVersion:"4.21.0"},{version:2,minNpmVersion:"4.22.0",maxNpmVersion:null}],ue=se[se.length-1],le=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&te(e,t)}(i,e);var t,n,r,a=ne(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),ie(re(t=a.call(this)),"_isShutdown",!1),ie(re(t),"_messageQueue",[]),ie(re(t),"_timeoutID",null),ie(re(t),"_wallUnlisten",null),ie(re(t),"_flush",(function(){if(null!==t._timeoutID&&(clearTimeout(t._timeoutID),t._timeoutID=null),t._messageQueue.length){for(var e=0;e<t._messageQueue.length;e+=2){var n;(n=t._wall).send.apply(n,[t._messageQueue[e]].concat(J(t._messageQueue[e+1])))}t._messageQueue.length=0,t._timeoutID=setTimeout(t._flush,oe)}})),ie(re(t),"overrideValueAtPath",(function(e){var n=e.id,r=e.path,a=e.rendererID,i=e.type,o=e.value;switch(i){case"context":t.send("overrideContext",{id:n,path:r,rendererID:a,wasForwarded:!0,value:o});break;case"hooks":t.send("overrideHookState",{id:n,path:r,rendererID:a,wasForwarded:!0,value:o});break;case"props":t.send("overrideProps",{id:n,path:r,rendererID:a,wasForwarded:!0,value:o});break;case"state":t.send("overrideState",{id:n,path:r,rendererID:a,wasForwarded:!0,value:o})}})),t._wall=e,t._wallUnlisten=e.listen((function(e){e&&e.event&&re(t).emit(e.event,e.payload)}))||null,t.addListener("overrideValueAtPath",t.overrideValueAtPath),t}return t=i,n=[{key:"send",value:function(e){if(this._isShutdown)console.warn('Cannot send message "'.concat(e,'" through a Bridge that has been shutdown.'));else{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this._messageQueue.push(e,n),this._timeoutID||(this._timeoutID=setTimeout(this._flush,0))}}},{key:"shutdown",value:function(){if(this._isShutdown)console.warn("Bridge was already shutdown.");else{this.send("shutdown"),this._isShutdown=!0,this.addListener=function(){},this.emit=function(){},this.removeAllListeners();var e=this._wallUnlisten;e&&e();do{this._flush()}while(this._messageQueue.length);null!==this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}}},{key:"wall",get:function(){return this._wall}}],n&&ee(t.prototype,n),r&&ee(t,r),i}(a),ce=le,pe=n(4);function de(e){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(e)}function fe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function me(e,t){return me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},me(e,t)}function he(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ye(e);if(t){var a=ye(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===de(t)||"function"==typeof t))return t;return ge(e)}(this,n)}}function ge(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ye(e){return ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ye(e)}function ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var be=function(e){if(s.s){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];(t=console).log.apply(t,["%cAgent %c".concat(e),"color: purple; font-weight: bold;","font-weight: bold;"].concat(r))}},we=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&me(e,t)}(i,e);var t,n,r,a=he(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),ve(ge(t=a.call(this)),"_isProfiling",!1),ve(ge(t),"_recordChangeDescriptions",!1),ve(ge(t),"_rendererInterfaces",{}),ve(ge(t),"_persistedSelection",null),ve(ge(t),"_persistedSelectionMatch",null),ve(ge(t),"_traceUpdatesEnabled",!1),ve(ge(t),"clearErrorsAndWarnings",(function(e){var n=e.rendererID,r=t._rendererInterfaces[n];null==r?console.warn('Invalid renderer id "'.concat(n,'"')):r.clearErrorsAndWarnings()})),ve(ge(t),"clearErrorsForFiberID",(function(e){var n=e.id,r=e.rendererID,a=t._rendererInterfaces[r];null==a?console.warn('Invalid renderer id "'.concat(r,'"')):a.clearErrorsForFiberID(n)})),ve(ge(t),"clearWarningsForFiberID",(function(e){var n=e.id,r=e.rendererID,a=t._rendererInterfaces[r];null==a?console.warn('Invalid renderer id "'.concat(r,'"')):a.clearWarningsForFiberID(n)})),ve(ge(t),"copyElementPath",(function(e){var n=e.id,r=e.path,a=e.rendererID,i=t._rendererInterfaces[a];null==i?console.warn('Invalid renderer id "'.concat(a,'" for element "').concat(n,'"')):i.copyElementPath(n,r)})),ve(ge(t),"deletePath",(function(e){var n=e.hookID,r=e.id,a=e.path,i=e.rendererID,o=e.type,s=t._rendererInterfaces[i];null==s?console.warn('Invalid renderer id "'.concat(i,'" for element "').concat(r,'"')):s.deletePath(o,r,n,a)})),ve(ge(t),"getBackendVersion",(function(){t._bridge.send("backendVersion","4.27.2-7f747b80e")})),ve(ge(t),"getBridgeProtocol",(function(){t._bridge.send("bridgeProtocol",ue)})),ve(ge(t),"getProfilingData",(function(e){var n=e.rendererID,r=t._rendererInterfaces[n];null==r&&console.warn('Invalid renderer id "'.concat(n,'"')),t._bridge.send("profilingData",r.getProfilingData())})),ve(ge(t),"getProfilingStatus",(function(){t._bridge.send("profilingStatus",t._isProfiling)})),ve(ge(t),"getOwnersList",(function(e){var n=e.id,r=e.rendererID,a=t._rendererInterfaces[r];if(null==a)console.warn('Invalid renderer id "'.concat(r,'" for element "').concat(n,'"'));else{var i=a.getOwnersList(n);t._bridge.send("ownersList",{id:n,owners:i})}})),ve(ge(t),"inspectElement",(function(e){var n=e.forceFullData,r=e.id,a=e.path,i=e.rendererID,o=e.requestID,s=t._rendererInterfaces[i];null==s?console.warn('Invalid renderer id "'.concat(i,'" for element "').concat(r,'"')):(t._bridge.send("inspectedElement",s.inspectElement(o,r,a,n)),null!==t._persistedSelectionMatch&&t._persistedSelectionMatch.id===r||(t._persistedSelection=null,t._persistedSelectionMatch=null,s.setTrackedPath(null),t._throttledPersistSelection(i,r)))})),ve(ge(t),"logElementToConsole",(function(e){var n=e.id,r=e.rendererID,a=t._rendererInterfaces[r];null==a?console.warn('Invalid renderer id "'.concat(r,'" for element "').concat(n,'"')):a.logElementToConsole(n)})),ve(ge(t),"overrideError",(function(e){var n=e.id,r=e.rendererID,a=e.forceError,i=t._rendererInterfaces[r];null==i?console.warn('Invalid renderer id "'.concat(r,'" for element "').concat(n,'"')):i.overrideError(n,a)})),ve(ge(t),"overrideSuspense",(function(e){var n=e.id,r=e.rendererID,a=e.forceFallback,i=t._rendererInterfaces[r];null==i?console.warn('Invalid renderer id "'.concat(r,'" for element "').concat(n,'"')):i.overrideSuspense(n,a)})),ve(ge(t),"overrideValueAtPath",(function(e){var n=e.hookID,r=e.id,a=e.path,i=e.rendererID,o=e.type,s=e.value,u=t._rendererInterfaces[i];null==u?console.warn('Invalid renderer id "'.concat(i,'" for element "').concat(r,'"')):u.overrideValueAtPath(o,r,n,a,s)})),ve(ge(t),"overrideContext",(function(e){var n=e.id,r=e.path,a=e.rendererID,i=e.wasForwarded,o=e.value;i||t.overrideValueAtPath({id:n,path:r,rendererID:a,type:"context",value:o})})),ve(ge(t),"overrideHookState",(function(e){var n=e.id;e.hookID;var r=e.path,a=e.rendererID,i=e.wasForwarded,o=e.value;i||t.overrideValueAtPath({id:n,path:r,rendererID:a,type:"hooks",value:o})})),ve(ge(t),"overrideProps",(function(e){var n=e.id,r=e.path,a=e.rendererID,i=e.wasForwarded,o=e.value;i||t.overrideValueAtPath({id:n,path:r,rendererID:a,type:"props",value:o})})),ve(ge(t),"overrideState",(function(e){var n=e.id,r=e.path,a=e.rendererID,i=e.wasForwarded,o=e.value;i||t.overrideValueAtPath({id:n,path:r,rendererID:a,type:"state",value:o})})),ve(ge(t),"reloadAndProfile",(function(e){Object(u.e)(s.k,"true"),Object(u.e)(s.j,e?"true":"false"),t._bridge.send("reloadAppForProfiling")})),ve(ge(t),"renamePath",(function(e){var n=e.hookID,r=e.id,a=e.newPath,i=e.oldPath,o=e.rendererID,s=e.type,u=t._rendererInterfaces[o];null==u?console.warn('Invalid renderer id "'.concat(o,'" for element "').concat(r,'"')):u.renamePath(s,r,n,i,a)})),ve(ge(t),"setTraceUpdatesEnabled",(function(e){for(var n in t._traceUpdatesEnabled=e,G(e),t._rendererInterfaces){t._rendererInterfaces[n].setTraceUpdatesEnabled(e)}})),ve(ge(t),"syncSelectionFromNativeElementsPanel",(function(){var e=window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0;null!=e&&t.selectNode(e)})),ve(ge(t),"shutdown",(function(){t.emit("shutdown")})),ve(ge(t),"startProfiling",(function(e){for(var n in t._recordChangeDescriptions=e,t._isProfiling=!0,t._rendererInterfaces){t._rendererInterfaces[n].startProfiling(e)}t._bridge.send("profilingStatus",t._isProfiling)})),ve(ge(t),"stopProfiling",(function(){for(var e in t._isProfiling=!1,t._recordChangeDescriptions=!1,t._rendererInterfaces){t._rendererInterfaces[e].stopProfiling()}t._bridge.send("profilingStatus",t._isProfiling)})),ve(ge(t),"stopInspectingNative",(function(e){t._bridge.send("stopInspectingNative",e)})),ve(ge(t),"storeAsGlobal",(function(e){var n=e.count,r=e.id,a=e.path,i=e.rendererID,o=t._rendererInterfaces[i];null==o?console.warn('Invalid renderer id "'.concat(i,'" for element "').concat(r,'"')):o.storeAsGlobal(r,a,n)})),ve(ge(t),"updateConsolePatchSettings",(function(e){var t=e.appendComponentStack,n=e.breakOnConsoleErrors,r=e.showInlineWarningsAndErrors,a=e.hideConsoleLogsInStrictMode,i=e.browserTheme;Object(Q.a)({appendComponentStack:t,breakOnConsoleErrors:n,showInlineWarningsAndErrors:r,hideConsoleLogsInStrictMode:a,browserTheme:i})})),ve(ge(t),"updateComponentFilters",(function(e){for(var n in t._rendererInterfaces){t._rendererInterfaces[n].updateComponentFilters(e)}})),ve(ge(t),"viewAttributeSource",(function(e){var n=e.id,r=e.path,a=e.rendererID,i=t._rendererInterfaces[a];null==i?console.warn('Invalid renderer id "'.concat(a,'" for element "').concat(n,'"')):i.prepareViewAttributeSource(n,r)})),ve(ge(t),"viewElementSource",(function(e){var n=e.id,r=e.rendererID,a=t._rendererInterfaces[r];null==a?console.warn('Invalid renderer id "'.concat(r,'" for element "').concat(n,'"')):a.prepareViewElementSource(n)})),ve(ge(t),"onTraceUpdates",(function(e){t.emit("traceUpdates",e)})),ve(ge(t),"onFastRefreshScheduled",(function(){s.s&&be("onFastRefreshScheduled"),t._bridge.send("fastRefreshScheduled")})),ve(ge(t),"onHookOperations",(function(e){if(s.s&&be("onHookOperations","(".concat(e.length,") [").concat(e.join(", "),"]")),t._bridge.send("operations",e),null!==t._persistedSelection){var n=e[0];if(t._persistedSelection.rendererID===n){var r=t._rendererInterfaces[n];if(null==r)console.warn('Invalid renderer id "'.concat(n,'"'));else{var a=t._persistedSelectionMatch,i=r.getBestMatchForTrackedPath();t._persistedSelectionMatch=i;var o=null!==a?a.id:null,u=null!==i?i.id:null;o!==u&&null!==u&&t._bridge.send("selectFiber",u),null!==i&&i.isFullMatch&&(t._persistedSelection=null,t._persistedSelectionMatch=null,r.setTrackedPath(null))}}}})),ve(ge(t),"_throttledPersistSelection",o()((function(e,n){var r=t._rendererInterfaces[e],a=null!=r?r.getPathForElement(n):null;null!==a?Object(u.e)(s.i,JSON.stringify({rendererID:e,path:a})):Object(u.d)(s.i)}),1e3)),"true"===Object(u.c)(s.k)&&(t._recordChangeDescriptions="true"===Object(u.c)(s.j),t._isProfiling=!0,Object(u.d)(s.j),Object(u.d)(s.k));var n=Object(u.c)(s.i);null!=n&&(t._persistedSelection=JSON.parse(n)),t._bridge=e,e.addListener("clearErrorsAndWarnings",t.clearErrorsAndWarnings),e.addListener("clearErrorsForFiberID",t.clearErrorsForFiberID),e.addListener("clearWarningsForFiberID",t.clearWarningsForFiberID),e.addListener("copyElementPath",t.copyElementPath),e.addListener("deletePath",t.deletePath),e.addListener("getBackendVersion",t.getBackendVersion),e.addListener("getBridgeProtocol",t.getBridgeProtocol),e.addListener("getProfilingData",t.getProfilingData),e.addListener("getProfilingStatus",t.getProfilingStatus),e.addListener("getOwnersList",t.getOwnersList),e.addListener("inspectElement",t.inspectElement),e.addListener("logElementToConsole",t.logElementToConsole),e.addListener("overrideError",t.overrideError),e.addListener("overrideSuspense",t.overrideSuspense),e.addListener("overrideValueAtPath",t.overrideValueAtPath),e.addListener("reloadAndProfile",t.reloadAndProfile),e.addListener("renamePath",t.renamePath),e.addListener("setTraceUpdatesEnabled",t.setTraceUpdatesEnabled),e.addListener("startProfiling",t.startProfiling),e.addListener("stopProfiling",t.stopProfiling),e.addListener("storeAsGlobal",t.storeAsGlobal),e.addListener("syncSelectionFromNativeElementsPanel",t.syncSelectionFromNativeElementsPanel),e.addListener("shutdown",t.shutdown),e.addListener("updateConsolePatchSettings",t.updateConsolePatchSettings),e.addListener("updateComponentFilters",t.updateComponentFilters),e.addListener("viewAttributeSource",t.viewAttributeSource),e.addListener("viewElementSource",t.viewElementSource),e.addListener("overrideContext",t.overrideContext),e.addListener("overrideHookState",t.overrideHookState),e.addListener("overrideProps",t.overrideProps),e.addListener("overrideState",t.overrideState),t._isProfiling&&e.send("profilingStatus",!0);t._bridge.send("backendVersion","4.27.2-7f747b80e"),t._bridge.send("bridgeProtocol",ue);var r,l=!1;try{localStorage.getItem("test"),l=!0}catch(e){}return e.send("isBackendStorageAPISupported",l),e.send("isSynchronousXHRSupported",Object(pe.k)()),function(e,t){function n(e){e&&"function"==typeof e.addEventListener?(e.addEventListener("click",i,!0),e.addEventListener("mousedown",s,!0),e.addEventListener("mouseover",s,!0),e.addEventListener("mouseup",s,!0),e.addEventListener("pointerdown",u,!0),e.addEventListener("pointerover",l,!0),e.addEventListener("pointerup",p,!0)):t.emit("startInspectingNative")}function r(){N(t),a(window),P.forEach((function(e){try{a(e.contentWindow)}catch(e){}})),P=new Set}function a(e){e&&"function"==typeof e.removeEventListener?(e.removeEventListener("click",i,!0),e.removeEventListener("mousedown",s,!0),e.removeEventListener("mouseover",s,!0),e.removeEventListener("mouseup",s,!0),e.removeEventListener("pointerdown",u,!0),e.removeEventListener("pointerover",l,!0),e.removeEventListener("pointerup",p,!0)):t.emit("stopInspectingNative")}function i(t){t.preventDefault(),t.stopPropagation(),r(),e.send("stopInspectingNative",!0)}function s(e){e.preventDefault(),e.stopPropagation()}function u(e){e.preventDefault(),e.stopPropagation(),d(e.target)}function l(e){e.preventDefault(),e.stopPropagation();var r=e.target;if("IFRAME"===r.tagName){var a=r;try{P.has(a)||(n(a.contentWindow),P.add(a))}catch(e){}}j([r],null,t,!1),d(r)}function p(e){e.preventDefault(),e.stopPropagation()}e.addListener("clearNativeElementHighlight",(function(){N(t)})),e.addListener("highlightNativeElement",(function(n){var r=n.displayName,a=n.hideAfterTimeout,i=n.id,o=n.openNativeElementsPanel,s=n.rendererID,u=n.scrollIntoView,l=t.rendererInterfaces[s];null==l&&console.warn('Invalid renderer id "'.concat(s,'" for element "').concat(i,'"'));var c=null;if(null!=l&&(c=l.findNativeNodesForFiberID(i)),null!=c&&null!=c[0]){var p=c[0];u&&"function"==typeof p.scrollIntoView&&p.scrollIntoView({block:"nearest",inline:"nearest"}),j(c,r,t,a),o&&(window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0=p,e.send("syncSelectionToNativeElementsPanel"))}else N(t)})),e.addListener("shutdown",r),e.addListener("startInspectingNative",(function(){n(window)})),e.addListener("stopInspectingNative",r);var d=o()(c((function(n){var r=t.getIDForNode(n);null!==r&&e.send("selectFiber",r)})),200,{leading:!1})}(e,ge(t)),r=ge(t),($=r).addListener("traceUpdates",K),t}return t=i,n=[{key:"getInstanceAndStyle",value:function(e){var t=e.id,n=e.rendererID,r=this._rendererInterfaces[n];return null==r?(console.warn('Invalid renderer id "'.concat(n,'"')),null):r.getInstanceAndStyle(t)}},{key:"getBestMatchingRendererInterface",value:function(e){var t=null;for(var n in this._rendererInterfaces){var r=this._rendererInterfaces[n],a=r.getFiberForNative(e);if(null!==a){if(a.stateNode===e)return r;null===t&&(t=r)}}return t}},{key:"getIDForNode",value:function(e){var t=this.getBestMatchingRendererInterface(e);if(null!=t)try{return t.getFiberIDForNative(e,!0)}catch(e){}return null}},{key:"selectNode",value:function(e){var t=this.getIDForNode(e);null!==t&&this._bridge.send("selectFiber",t)}},{key:"setRendererInterface",value:function(e,t){this._rendererInterfaces[e]=t,this._isProfiling&&t.startProfiling(this._recordChangeDescriptions),t.setTraceUpdatesEnabled(this._traceUpdatesEnabled);var n=this._persistedSelection;null!==n&&n.rendererID===e&&t.setTrackedPath(n.path)}},{key:"onUnsupportedRenderer",value:function(e){this._bridge.send("unsupportedRendererVersion",e)}},{key:"rendererInterfaces",get:function(){return this._rendererInterfaces}}],n&&fe(t.prototype,n),r&&fe(t,r),i}(a);function _e(e){return _e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(e)}function xe(e){return function(e){if(Array.isArray(e))return ke(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ke(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ke(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Se=n(14),Ee=n(1),Ce=n(0);function De(e,t,n){var r=e[t];return e[t]=function(e){return n.call(this,r,arguments)},r}function Oe(e,t){for(var n in t)e[n]=t[n]}function Ne(e){"function"==typeof e.forceUpdate?e.forceUpdate():null!=e.updater&&"function"==typeof e.updater.enqueueForceUpdate&&e.updater.enqueueForceUpdate(this,(function(){}),"forceUpdate")}function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){Te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ae(e){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ae(e)}function Re(e){var t=null,n=null;if(null!=e._currentElement){e._currentElement.key&&(n=String(e._currentElement.key));var r=e._currentElement.type;"string"==typeof r?t=r:"function"==typeof r&&(t=Object(Ce.h)(r))}return{displayName:t,key:n}}function Ie(e){if(null!=e._currentElement){var t=e._currentElement.type;if("function"==typeof t)return null!==e.getPublicInstance()?Ee.e:Ee.h;if("string"==typeof t)return Ee.i}return Ee.k}function Me(e){var t=[];if("object"!==Ae(e));else if(null===e._currentElement||!1===e._currentElement);else if(e._renderedComponent){var n=e._renderedComponent;Ie(n)!==Ee.k&&t.push(n)}else if(e._renderedChildren){var r=e._renderedChildren;for(var a in r){var i=r[a];Ie(i)!==Ee.k&&t.push(i)}}return t}function Le(e,t,n,r){var a,i=new Map,o=new WeakMap,u=new WeakMap,l=null,c=function(e){return null};function p(e){if("object"!==Ae(e)||null===e)throw new Error("Invalid internal instance: "+e);if(!o.has(e)){var t=Object(Ce.k)();o.set(e,t),i.set(t,e)}return o.get(e)}function d(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n.ComponentTree?(l=function(e,t){var r=n.ComponentTree.getClosestInstanceFromNode(e);return o.get(r)||null},a=function(e){var t=i.get(e);return n.ComponentTree.getNodeFromInstance(t)},c=function(e){return n.ComponentTree.getClosestInstanceFromNode(e)}):n.Mount.getID&&n.Mount.getNode&&(l=function(e,t){return null},a=function(e){return null});var f=[],m=null;function h(e,t,n){var r=0===n;if(s.s&&console.log("%crecordMount()","color: green; font-weight: bold;",t,Re(e).displayName),r){var a=null!=e._currentElement&&null!=e._currentElement._owner;S(s.l),S(t),S(Ee.m),S(0),S(0),S(0),S(a?1:0)}else{var i=Ie(e),o=Re(e),u=o.displayName,l=o.key,c=null!=e._currentElement&&null!=e._currentElement._owner?p(e._currentElement._owner):0,d=E(u),f=E(l);S(s.l),S(t),S(i),S(n),S(c),S(d),S(f)}}function g(e,t,n){S(s.o),S(t);var r=n.map(p);S(r.length);for(var a=0;a<r.length;a++)S(r[a])}function y(e,t,n){s.s&&console.group("crawlAndRecordInitialMounts() id:",e);var r=i.get(e);null!=r&&(u.set(r,n),h(r,e,t),Me(r).forEach((function(t){return y(p(t),e,n)}))),s.s&&console.groupEnd()}n.Reconciler&&(m=function(e,t){var n={};for(var r in t)n[r]=De(e,r,t[r]);return n}(n.Reconciler,{mountComponent:function(e,t){var n=t[0],r=t[3];if(Ie(n)===Ee.k)return e.apply(this,t);if(void 0===r._topLevelWrapper)return e.apply(this,t);var a=p(n);h(n,a,f.length>0?f[f.length-1]:0),f.push(a),u.set(n,p(r._topLevelWrapper));try{var i=e.apply(this,t);return f.pop(),i}catch(e){throw f=[],e}finally{if(0===f.length){var o=u.get(n);if(void 0===o)throw new Error("Expected to find root ID.");k(o)}}},performUpdateIfNecessary:function(e,t){var n=t[0];if(Ie(n)===Ee.k)return e.apply(this,t);var r=p(n);f.push(r);var a=Me(n);try{var i=e.apply(this,t),o=Me(n);return d(a,o)||g(n,r,o),f.pop(),i}catch(e){throw f=[],e}finally{if(0===f.length){var s=u.get(n);if(void 0===s)throw new Error("Expected to find root ID.");k(s)}}},receiveComponent:function(e,t){var n=t[0];if(Ie(n)===Ee.k)return e.apply(this,t);var r=p(n);f.push(r);var a=Me(n);try{var i=e.apply(this,t),o=Me(n);return d(a,o)||g(n,r,o),f.pop(),i}catch(e){throw f=[],e}finally{if(0===f.length){var s=u.get(n);if(void 0===s)throw new Error("Expected to find root ID.");k(s)}}},unmountComponent:function(e,t){var n=t[0];if(Ie(n)===Ee.k)return e.apply(this,t);var r=p(n);f.push(r);try{var a=e.apply(this,t);return f.pop(),function(e,t){w.push(t),i.delete(t)}(0,r),a}catch(e){throw f=[],e}finally{if(0===f.length){var o=u.get(n);if(void 0===o)throw new Error("Expected to find root ID.");k(o)}}}}));var v=[],b=new Map,w=[],_=0,x=null;function k(n){if(0!==v.length||0!==w.length||null!==x){var r=w.length+(null===x?0:1),a=new Array(3+_+(r>0?2+r:0)+v.length),i=0;if(a[i++]=t,a[i++]=n,a[i++]=_,b.forEach((function(e,t){a[i++]=t.length;for(var n=Object(Ce.p)(t),r=0;r<n.length;r++)a[i+r]=n[r];i+=t.length})),r>0){a[i++]=s.m,a[i++]=r;for(var o=0;o<w.length;o++)a[i++]=w[o];null!==x&&(a[i]=x,i++)}for(var u=0;u<v.length;u++)a[i+u]=v[u];i+=v.length,s.s&&Object(Ce.m)(a),e.emit("operations",a),v.length=0,w=[],x=null,b.clear(),_=0}}function S(e){v.push(e)}function E(e){if(null===e)return 0;var t=b.get(e);if(void 0!==t)return t;var n=b.size+1;return b.set(e,n),_+=e.length+1,n}var C=null,D={};function O(e){return function(t){var n=D[e];if(!n)return!1;for(var r=0;r<t.length;r++)if(!(n=n[t[r]]))return!1;return!0}}function N(e){var t=i.get(e);if(null==t)return null;var n=Re(t),r=n.displayName,a=n.key,o=Ie(t),s=null,u=null,l=null,c=null,d=null,f=t._currentElement;if(null!==f){l=f.props,d=null!=f._source?f._source:null;var m=f._owner;if(m)for(u=[];null!=m;)u.push({displayName:Re(m).displayName||"Unknown",id:p(m),key:f.key,type:Ie(m)}),m._currentElement&&(m=m._currentElement._owner)}var h=t._instance;null!=h&&(s=h.context||null,c=h.state||null);return{id:e,canEditHooks:!1,canEditFunctionProps:!1,canEditHooksAndDeletePaths:!1,canEditHooksAndRenamePaths:!1,canEditFunctionPropsDeletePaths:!1,canEditFunctionPropsRenamePaths:!1,canToggleError:!1,isErrored:!1,targetErrorBoundaryID:null,canToggleSuspense:!1,canViewSource:o===Ee.e||o===Ee.h,hasLegacyContext:!0,displayName:r,type:o,key:null!=a?a:null,context:s,hooks:null,props:l,state:c,errors:[],warnings:[],owners:u,source:d,rootType:null,rendererPackageName:null,rendererVersion:null,plugins:{stylex:null}}}return{clearErrorsAndWarnings:function(){},clearErrorsForFiberID:function(e){},clearWarningsForFiberID:function(e){},cleanup:function(){null!==m&&(n.Component?Oe(n.Component.Mixin,m):Oe(n.Reconciler,m)),m=null},copyElementPath:function(e,t){var n=N(e);null!==n&&Object(pe.b)(Object(Ce.j)(n,t))},deletePath:function(e,t,n,r){var a=i.get(t);if(null!=a){var o=a._instance;if(null!=o)switch(e){case"context":Object(Ce.c)(o.context,r),Ne(o);break;case"hooks":throw new Error("Hooks not supported by this renderer");case"props":var s=a._currentElement;a._currentElement=Pe(Pe({},s),{},{props:Object(pe.c)(s.props,r)}),Ne(o);break;case"state":Object(Ce.c)(o.state,r),Ne(o)}}},flushInitialOperations:function(){var e=n.Mount._instancesByReactRootID||n.Mount._instancesByContainerID;for(var t in e){var r=p(e[t]);y(r,0,r),k(r)}},getBestMatchForTrackedPath:function(){return null},getDisplayNameForFiberID:function(e){var t=i.get(e);return t?Re(t).displayName:null},getFiberForNative:c,getFiberIDForNative:l,getInstanceAndStyle:function(e){var t=null,n=null,r=i.get(e);if(null!=r){t=r._instance||null;var a=r._currentElement;null!=a&&null!=a.props&&(n=a.props.style||null)}return{instance:t,style:n}},findNativeNodesForFiberID:function(e){var t=a(e);return null==t?null:[t]},getOwnersList:function(e){return null},getPathForElement:function(e){return null},getProfilingData:function(){throw new Error("getProfilingData not supported by this renderer")},handleCommitFiberRoot:function(){throw new Error("handleCommitFiberRoot not supported by this renderer")},handleCommitFiberUnmount:function(){throw new Error("handleCommitFiberUnmount not supported by this renderer")},handlePostCommitFiberRoot:function(){throw new Error("handlePostCommitFiberRoot not supported by this renderer")},inspectElement:function(e,t,n,a){(a||C!==t)&&(C=t,D={});var o=N(t);return null===o?{id:t,responseID:e,type:"not-found"}:(null!==n&&function(e){var t=D;e.forEach((function(e){t[e]||(t[e]={}),t=t[e]}))}(n),function(e){var t=i.get(e);if(null!=t)switch(Ie(t)){case Ee.e:r.$r=t._instance;break;case Ee.h:var n=t._currentElement;if(null==n)return void console.warn('Could not find element with id "'.concat(e,'"'));r.$r={props:n.props,type:n.type};break;default:r.$r=null}else console.warn('Could not find instance with id "'.concat(e,'"'))}(t),o.context=Object(pe.a)(o.context,O("context")),o.props=Object(pe.a)(o.props,O("props")),o.state=Object(pe.a)(o.state,O("state")),{id:t,responseID:e,type:"full-data",value:o})},logElementToConsole:function(e){var t=N(e);if(null!==t){var n="function"==typeof console.groupCollapsed;n&&console.groupCollapsed("[Click to expand] %c<".concat(t.displayName||"Component"," />"),"color: var(--dom-tag-name-color); font-weight: normal;"),null!==t.props&&console.log("Props:",t.props),null!==t.state&&console.log("State:",t.state),null!==t.context&&console.log("Context:",t.context);var r=a(e);null!==r&&console.log("Node:",r),(window.chrome||/firefox/i.test(navigator.userAgent))&&console.log("Right-click any value to save it as a global variable for further inspection."),n&&console.groupEnd()}else console.warn('Could not find element with id "'.concat(e,'"'))},overrideError:function(){throw new Error("overrideError not supported by this renderer")},overrideSuspense:function(){throw new Error("overrideSuspense not supported by this renderer")},overrideValueAtPath:function(e,t,n,r,a){var o=i.get(t);if(null!=o){var s=o._instance;if(null!=s)switch(e){case"context":Object(Ce.o)(s.context,r,a),Ne(s);break;case"hooks":throw new Error("Hooks not supported by this renderer");case"props":var u=o._currentElement;o._currentElement=Pe(Pe({},u),{},{props:Object(pe.e)(u.props,r,a)}),Ne(s);break;case"state":Object(Ce.o)(s.state,r,a),Ne(s)}}},renamePath:function(e,t,n,r,a){var o=i.get(t);if(null!=o){var s=o._instance;if(null!=s)switch(e){case"context":Object(Ce.n)(s.context,r,a),Ne(s);break;case"hooks":throw new Error("Hooks not supported by this renderer");case"props":var u=o._currentElement;o._currentElement=Pe(Pe({},u),{},{props:Object(pe.d)(u.props,r,a)}),Ne(s);break;case"state":Object(Ce.n)(s.state,r,a),Ne(s)}}},patchConsoleForStrictMode:function(){},prepareViewAttributeSource:function(e,t){var n=N(e);null!==n&&(window.$attribute=Object(Ce.j)(n,t))},prepareViewElementSource:function(e){var t=i.get(e);if(null!=t){var n=t._currentElement;null!=n?r.$type=n.type:console.warn('Could not find element with id "'.concat(e,'"'))}else console.warn('Could not find instance with id "'.concat(e,'"'))},renderer:n,setTraceUpdatesEnabled:function(e){},setTrackedPath:function(e){},startProfiling:function(){},stopProfiling:function(){},storeAsGlobal:function(e,t,n){var r=N(e);if(null!==r){var a=Object(Ce.j)(r,t),i="$reactTemp".concat(n);window[i]=a,console.log(i),console.log(a)}},unpatchConsoleForStrictMode:function(){},updateComponentFilters:function(e){}}}function Fe(e,t){var n=!1,r={bottom:0,left:0,right:0,top:0},a=t[e];if(null!=a){for(var i=0,o=Object.keys(r);i<o.length;i++){r[o[i]]=a}n=!0}var s=t[e+"Horizontal"];if(null!=s)r.left=s,r.right=s,n=!0;else{var u=t[e+"Left"];null!=u&&(r.left=u,n=!0);var l=t[e+"Right"];null!=l&&(r.right=l,n=!0);var c=t[e+"End"];null!=c&&(r.right=c,n=!0);var p=t[e+"Start"];null!=p&&(r.left=p,n=!0)}var d=t[e+"Vertical"];if(null!=d)r.bottom=d,r.top=d,n=!0;else{var f=t[e+"Bottom"];null!=f&&(r.bottom=f,n=!0);var m=t[e+"Top"];null!=m&&(r.top=m,n=!0)}return n?r:null}var ze=n(6);function Be(e){return Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Be(e)}function Ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qe(e,t,n,r){e.addListener("NativeStyleEditor_measure",(function(r){var a=r.id,i=r.rendererID;He(t,e,n,a,i)})),e.addListener("NativeStyleEditor_renameAttribute",(function(r){var a=r.id,i=r.rendererID,o=r.oldName,s=r.newName,u=r.value;!function(e,t,n,r,a,i){var o,s=e.getInstanceAndStyle({id:t,rendererID:n});if(!s||!s.style)return;var u,l=s.instance,c=s.style,p=a?(Ue(o={},r,void 0),Ue(o,a,i),o):Ue({},r,void 0);if(null!==l&&"function"==typeof l.setNativeProps){var d=Ve.get(t);d?Object.assign(d,p):Ve.set(t,p),l.setNativeProps({style:p})}else if(Object(ze.a)(c)){var f=c.length-1;"object"!==Be(c[f])||Object(ze.a)(c[f])?e.overrideValueAtPath({type:"props",id:t,rendererID:n,path:["style"],value:c.concat([p])}):(delete(u=We(c[f]))[r],a?u[a]=i:u[r]=void 0,e.overrideValueAtPath({type:"props",id:t,rendererID:n,path:["style",f],value:u}))}else"object"===Be(c)?(delete(u=We(c))[r],a?u[a]=i:u[r]=void 0,e.overrideValueAtPath({type:"props",id:t,rendererID:n,path:["style"],value:u})):e.overrideValueAtPath({type:"props",id:t,rendererID:n,path:["style"],value:[c,p]});e.emit("hideNativeHighlight")}(t,a,i,o,s,u),setTimeout((function(){return He(t,e,n,a,i)}))})),e.addListener("NativeStyleEditor_setValue",(function(r){var a=r.id,i=r.rendererID,o=r.name,s=r.value;!function(e,t,n,r,a){var i=e.getInstanceAndStyle({id:t,rendererID:n});if(!i||!i.style)return;var o=i.instance,s=i.style,u=Ue({},r,a);if(null!==o&&"function"==typeof o.setNativeProps){var l=Ve.get(t);l?Object.assign(l,u):Ve.set(t,u),o.setNativeProps({style:u})}else if(Object(ze.a)(s)){var c=s.length-1;"object"!==Be(s[c])||Object(ze.a)(s[c])?e.overrideValueAtPath({type:"props",id:t,rendererID:n,path:["style"],value:s.concat([u])}):e.overrideValueAtPath({type:"props",id:t,rendererID:n,path:["style",c,r],value:a})}else e.overrideValueAtPath({type:"props",id:t,rendererID:n,path:["style"],value:[s,u]});e.emit("hideNativeHighlight")}(t,a,i,o,s),setTimeout((function(){return He(t,e,n,a,i)}))})),e.send("isNativeStyleEditorSupported",{isSupported:!0,validAttributes:r})}var $e={top:0,left:0,right:0,bottom:0},Ve=new Map;function He(e,t,n,r,a){var i=e.getInstanceAndStyle({id:r,rendererID:a});if(i&&i.style){var o=i.instance,s=n(i.style),u=Ve.get(r);null!=u&&(s=Object.assign({},s,u)),o&&"function"==typeof o.measure?o.measure((function(e,n,a,i,o,u){if("number"==typeof e){var l=null!=s&&Fe("margin",s)||$e,c=null!=s&&Fe("padding",s)||$e;t.send("NativeStyleEditor_styleAndLayout",{id:r,layout:{x:e,y:n,width:a,height:i,left:o,top:u,margin:l,padding:c},style:s||null})}else t.send("NativeStyleEditor_styleAndLayout",{id:r,layout:null,style:s||null})})):t.send("NativeStyleEditor_styleAndLayout",{id:r,layout:null,style:s||null})}else t.send("NativeStyleEditor_styleAndLayout",{id:r,layout:null,style:null})}function We(e){var t={};for(var n in e)t[n]=e[n];return t}function Ge(e){!function(e){if(null==e.getConsolePatchSettings)return;var t=e.getConsolePatchSettings();if(null==t)return;var n=function(e){var t,n,r,a,i,o=JSON.parse(null!=e?e:"{}"),s=o.appendComponentStack,u=o.breakOnConsoleErrors,l=o.showInlineWarningsAndErrors,c=o.hideConsoleLogsInStrictMode,p=o.browserTheme;return{appendComponentStack:null===(t=Object(Ce.a)(s))||void 0===t||t,breakOnConsoleErrors:null!==(n=Object(Ce.a)(u))&&void 0!==n&&n,showInlineWarningsAndErrors:null===(r=Object(Ce.a)(l))||void 0===r||r,hideConsoleLogsInStrictMode:null!==(a=Object(Ce.a)(c))&&void 0!==a&&a,browserTheme:null!==(i=Object(Ce.b)(p))&&void 0!==i?i:"dark"}}(t);if(null==n)return;Object(Q.f)(n)}(e)}!function(e){if(e.hasOwnProperty("__REACT_DEVTOOLS_GLOBAL_HOOK__"))return null;var t=console,n=null;function r(e){var r=e.hideConsoleLogsInStrictMode,a=e.browserTheme;if(null===n){var i={};n=function(){for(var e in i)try{t[e]=i[e]}catch(e){}},["error","group","groupCollapsed","info","log","trace","warn"].forEach((function(e){try{var n=i[e]=t[e].__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__?t[e].__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__:t[e],o=function(){if(!r){var t;switch(e){case"warn":t="light"===a?"rgba(250, 180, 50, 0.75)":"rgba(250, 180, 50, 0.5)";break;case"error":t="light"===a?"rgba(250, 123, 130, 0.75)":"rgba(250, 123, 130, 0.5)";break;default:t="light"===a?"rgba(125, 125, 125, 0.75)":"rgba(125, 125, 125, 0.5)"}if(!t)throw Error("Console color is not defined");for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];n.apply(void 0,xe((u=o,l="color: ".concat(t),null==u||0===u.length||"string"==typeof u[0]&&u[0].match(/([^%]|^)(%c)/g)||void 0===l?u:"string"==typeof u[0]&&u[0].match(/([^%]|^)((%%)*)(%([oOdisf]))/g)?["%c".concat(u[0]),l].concat(xe(u.slice(1))):[u.reduce((function(e,t,n){switch(n>0&&(e+=" "),_e(t)){case"string":case"boolean":case"symbol":return e+"%s";case"number":return e+(Number.isInteger(t)?"%i":"%f");default:return e+"%o"}}),"%c"),l].concat(xe(u)))))}var u,l};o.__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__=n,n.__REACT_DEVTOOLS_STRICT_MODE_OVERRIDE_METHOD__=o,t[e]=o}catch(e){}}))}}var a=0,i=!1,o=[],s=[];function u(e){var t=e.stack.split("\n");return t.length>1?t[1]:null}var l={},c=new Map,p={},d=new Map,f={rendererInterfaces:c,listeners:p,renderers:d,emit:function(e,t){p[e]&&p[e].map((function(e){return e(t)}))},getFiberRoots:function(e){var t=l;return t[e]||(t[e]=new Set),t[e]},inject:function(t){var n=++a;d.set(n,t);var r=i?"deadcode":function(e){try{if("string"==typeof e.version)return e.bundleType>0?"development":"production";var t=Function.prototype.toString;if(e.Mount&&e.Mount._renderNewRootComponent){var n=t.call(e.Mount._renderNewRootComponent);return 0!==n.indexOf("function")?"production":-1!==n.indexOf("storedMeasure")?"development":-1!==n.indexOf("should be a pure function")?-1!==n.indexOf("NODE_ENV")||-1!==n.indexOf("development")||-1!==n.indexOf("true")?"development":-1!==n.indexOf("nextElement")||-1!==n.indexOf("nextComponent")?"unminified":"development":-1!==n.indexOf("nextElement")||-1!==n.indexOf("nextComponent")?"unminified":"outdated"}}catch(e){}return"production"}(t);try{Object(Q.d)(t),Object(Q.b)()}catch(e){}var o=e.__REACT_DEVTOOLS_ATTACH__;if("function"==typeof o){var s=o(f,n,t,e);f.rendererInterfaces.set(n,s)}return f.emit("renderer",{id:n,renderer:t,reactBuildType:r}),n},on:function(e,t){p[e]||(p[e]=[]),p[e].push(t)},off:function(e,t){if(p[e]){var n=p[e].indexOf(t);-1!==n&&p[e].splice(n,1),p[e].length||delete p[e]}},sub:function(e,t){return f.on(e,t),function(){return f.off(e,t)}},supportsFiber:!0,checkDCE:function(e){try{Function.prototype.toString.call(e).indexOf("^_^")>-1&&(i=!0,setTimeout((function(){throw new Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build")})))}catch(e){}},onCommitFiberUnmount:function(e,t){var n=c.get(e);null!=n&&n.handleCommitFiberUnmount(t)},onCommitFiberRoot:function(e,t,n){var r=f.getFiberRoots(e),a=t.current,i=r.has(t),o=null==a.memoizedState||null==a.memoizedState.element;i||o?i&&o&&r.delete(t):r.add(t);var s=c.get(e);null!=s&&s.handleCommitFiberRoot(t,n)},onPostCommitFiberRoot:function(e,t){var n=c.get(e);null!=n&&n.handlePostCommitFiberRoot(t)},setStrictMode:function(e,t){var a=c.get(e);null!=a?t?a.patchConsoleForStrictMode():a.unpatchConsoleForStrictMode():t?r({hideConsoleLogsInStrictMode:!0===window.__REACT_DEVTOOLS_HIDE_CONSOLE_LOGS_IN_STRICT_MODE__,browserTheme:window.__REACT_DEVTOOLS_BROWSER_THEME__}):null!==n&&(n(),n=null)},getInternalModuleRanges:function(){return s},registerInternalModuleStart:function(e){var t=u(e);null!==t&&o.push(t)},registerInternalModuleStop:function(e){if(o.length>0){var t=o.pop(),n=u(e);null!==n&&s.push([t,n])}}};Object.defineProperty(e,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!1,enumerable:!1,get:function(){return f}})}(window);var Ke=window.__REACT_DEVTOOLS_GLOBAL_HOOK__,Ye=Object(Ce.g)();function Qe(e){if(s.s){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];(t=console).log.apply(t,["%c[core/backend] %c".concat(e),"color: teal; font-weight: bold;","font-weight: bold;"].concat(r))}}function Xe(e){if(null!=Ke){var t=e||{},n=t.host,r=void 0===n?"localhost":n,a=t.nativeStyleEditorValidAttributes,i=t.useHttps,o=void 0!==i&&i,u=t.port,l=void 0===u?8097:u,c=t.websocket,p=t.resolveRNStyle,d=void 0===p?null:p,f=t.retryConnectionDelay,m=void 0===f?2e3:f,h=t.isAppActive,g=void 0===h?function(){return!0}:h,y=t.devToolsSettingsManager,v=o?"wss":"ws",b=null;if(null!=y)try{Ge(y)}catch(e){console.error(e)}if(g()){var w=null,_=[],x=v+"://"+r+":"+l,k=c||new window.WebSocket(x);k.onclose=function(){s.s&&Qe("WebSocket.onclose");null!==w&&w.emit("shutdown");S()},k.onerror=function(){s.s&&Qe("WebSocket.onerror");S()},k.onmessage=function(e){var t;try{if("string"!=typeof e.data)throw Error();t=JSON.parse(e.data),s.s&&Qe("WebSocket.onmessage",t)}catch(t){return void console.error("[React DevTools] Failed to parse JSON: "+e.data)}_.forEach((function(e){try{e(t)}catch(e){throw console.log("[React DevTools] Error calling listener",t),console.log("error:",e),e}}))},k.onopen=function(){(w=new ce({listen:function(e){return _.push(e),function(){var t=_.indexOf(e);t>=0&&_.splice(t,1)}},send:function(e,t,n){k.readyState===k.OPEN?(s.s&&Qe("wall.send()",e,t),k.send(JSON.stringify({event:e,payload:t}))):(s.s&&Qe("wall.send()","Shutting down bridge because of closed WebSocket connection"),null!==w&&w.shutdown(),S())}})).addListener("updateComponentFilters",(function(e){Ye=e})),null!=y&&null!=w&&w.addListener("updateConsolePatchSettings",(function(e){return function(e,t){null!=e.setConsolePatchSettings&&e.setConsolePatchSettings(JSON.stringify(t))}(y,e)})),null==window.__REACT_DEVTOOLS_COMPONENT_FILTERS__&&w.send("overrideComponentFilters",Ye);var e=new we(w);if(e.addListener("shutdown",(function(){Ke.emit("shutdown")})),function(e,t,n){if(null==e)return function(){};var r=[e.sub("renderer-attached",(function(e){var n=e.id;e.renderer;var r=e.rendererInterface;t.setRendererInterface(n,r),r.flushInitialOperations()})),e.sub("unsupported-renderer-version",(function(e){t.onUnsupportedRenderer(e)})),e.sub("fastRefreshScheduled",t.onFastRefreshScheduled),e.sub("operations",t.onHookOperations),e.sub("traceUpdates",t.onTraceUpdates)],a=function(t,r){var a=e.rendererInterfaces.get(t);null==a&&("function"==typeof r.findFiberByHostInstance?a=Object(Se.a)(e,t,r,n):r.ComponentTree&&(a=Le(e,t,r,n)),null!=a&&e.rendererInterfaces.set(t,a)),null!=a?e.emit("renderer-attached",{id:t,renderer:r,rendererInterface:a}):e.emit("unsupported-renderer-version",t)};e.renderers.forEach((function(e,t){a(t,e)})),r.push(e.sub("renderer",(function(e){var t=e.id,n=e.renderer;a(t,n)}))),e.emit("react-devtools",t),e.reactDevtoolsAgent=t;var i=function(){r.forEach((function(e){return e()})),e.rendererInterfaces.forEach((function(e){e.cleanup()})),e.reactDevtoolsAgent=null};t.addListener("shutdown",i),r.push((function(){t.removeListener("shutdown",i)}))}(Ke,e,window),null!=d||null!=Ke.resolveRNStyle)qe(w,e,d||Ke.resolveRNStyle,a||Ke.nativeStyleEditorValidAttributes||null);else{var t,n,r=function(){null!==w&&qe(w,e,t,n)};Ke.hasOwnProperty("resolveRNStyle")||Object.defineProperty(Ke,"resolveRNStyle",{enumerable:!1,get:function(){return t},set:function(e){t=e,r()}}),Ke.hasOwnProperty("nativeStyleEditorValidAttributes")||Object.defineProperty(Ke,"nativeStyleEditorValidAttributes",{enumerable:!1,get:function(){return n},set:function(e){n=e,r()}})}}}else S()}function S(){null===b&&(b=setTimeout((function(){return Xe(e)}),m))}}}])}))}(nU)),nU.exports}var aU=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ZF,"__esModule",{value:!0});const iU=ez.exports,oU=aU(uz.exports),sU=aU(ne.default),uU=xz;"true"===process.env.DEV&&(tU||(tU=1,Object.defineProperty(xB,"__esModule",{value:!0}),function(){if(HB)return kB;HB=1;var e=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(kB,"__esModule",{value:!0});const t=e(ZB()),n=oe;n.WebSocket||(n.WebSocket=t.default),n.window||(n.window=oe),n.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__=[{type:1,value:7,isEnabled:!0},{type:2,value:"InternalApp",isEnabled:!0,isValid:!0},{type:2,value:"InternalAppContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStdoutContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStderrContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStdinContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalFocusContext",isEnabled:!0,isValid:!0}]}(),rU().connectToDevTools()));const lU=e=>{null==e||e.unsetMeasureFunc(),null==e||e.freeRecursive()};ZF.default=oU.default({schedulePassiveEffects:iU.unstable_scheduleCallback,cancelPassiveEffects:iU.unstable_cancelCallback,now:Date.now,getRootHostContext:()=>({isInsideText:!1}),prepareForCommit:()=>null,preparePortalMount:()=>null,clearContainer:()=>!1,shouldDeprioritizeSubtree:()=>!1,resetAfterCommit:e=>{if(e.isStaticDirty)return e.isStaticDirty=!1,void("function"==typeof e.onImmediateRender&&e.onImmediateRender());"function"==typeof e.onRender&&e.onRender()},getChildHostContext:(e,t)=>{const n="ink-text"===t||"ink-virtual-text"===t;return e.isInsideText===n?e:{isInsideText:n}},shouldSetTextContent:()=>!1,createInstance:(e,t,n,r)=>{if(r.isInsideText&&"ink-box"===e)throw new Error("<Box> can’t be nested inside <Text> component");const a="ink-text"===e&&r.isInsideText?"ink-virtual-text":e,i=uU.createNode(a);for(const[e,n]of Object.entries(t))"children"!==e&&("style"===e?uU.setStyle(i,n):"internal_transform"===e?i.internal_transform=n:"internal_static"===e?i.internal_static=!0:uU.setAttribute(i,e,n));return i},createTextInstance:(e,t,n)=>{if(!n.isInsideText)throw new Error(`Text string "${e}" must be rendered inside <Text> component`);return uU.createTextNode(e)},resetTextContent:()=>{},hideTextInstance:e=>{uU.setTextNodeValue(e,"")},unhideTextInstance:(e,t)=>{uU.setTextNodeValue(e,t)},getPublicInstance:e=>e,hideInstance:e=>{var t;null===(t=e.yogaNode)||void 0===t||t.setDisplay(sU.default.DISPLAY_NONE)},unhideInstance:e=>{var t;null===(t=e.yogaNode)||void 0===t||t.setDisplay(sU.default.DISPLAY_FLEX)},appendInitialChild:uU.appendChildNode,appendChild:uU.appendChildNode,insertBefore:uU.insertBeforeNode,finalizeInitialChildren:(e,t,n,r)=>(e.internal_static&&(r.isStaticDirty=!0,r.staticNode=e),!1),supportsMutation:!0,appendChildToContainer:uU.appendChildNode,insertInContainerBefore:uU.insertBeforeNode,removeChildFromContainer:(e,t)=>{uU.removeChildNode(e,t),lU(t.yogaNode)},prepareUpdate:(e,t,n,r,a)=>{e.internal_static&&(a.isStaticDirty=!0);const i={},o=Object.keys(r);for(const e of o)if(r[e]!==n[e]){if("style"===e&&"object"==typeof r.style&&"object"==typeof n.style){const e=r.style,t=n.style,a=Object.keys(e);for(const n of a){if("borderStyle"===n||"borderColor"===n){if("object"!=typeof i.style){const e={};i.style=e}i.style.borderStyle=e.borderStyle,i.style.borderColor=e.borderColor}if(e[n]!==t[n]){if("object"!=typeof i.style){const e={};i.style=e}i.style[n]=e[n]}}continue}i[e]=r[e]}return i},commitUpdate:(e,t)=>{for(const[n,r]of Object.entries(t))"children"!==n&&("style"===n?uU.setStyle(e,r):"internal_transform"===n?e.internal_transform=r:"internal_static"===n?e.internal_static=!0:uU.setAttribute(e,n,r))},commitTextUpdate:(e,t,n)=>{uU.setTextNodeValue(e,n)},removeChild:(e,t)=>{uU.removeChildNode(e,t),lU(t.yogaNode)}});var cU={},pU={},dU={},fU=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dU,"__esModule",{value:!0});const mU=fU(ne.default);dU.default=e=>e.getComputedWidth()-e.getComputedPadding(mU.default.EDGE_LEFT)-e.getComputedPadding(mU.default.EDGE_RIGHT)-e.getComputedBorder(mU.default.EDGE_LEFT)-e.getComputedBorder(mU.default.EDGE_RIGHT);var hU={},gU={exports:{}};const yU={single:{topLeft:"┌",topRight:"┐",bottomRight:"┘",bottomLeft:"└",vertical:"│",horizontal:"─"},double:{topLeft:"╔",topRight:"╗",bottomRight:"╝",bottomLeft:"╚",vertical:"║",horizontal:"═"},round:{topLeft:"╭",topRight:"╮",bottomRight:"╯",bottomLeft:"╰",vertical:"│",horizontal:"─"},bold:{topLeft:"┏",topRight:"┓",bottomRight:"┛",bottomLeft:"┗",vertical:"┃",horizontal:"━"},singleDouble:{topLeft:"╓",topRight:"╖",bottomRight:"╜",bottomLeft:"╙",vertical:"║",horizontal:"─"},doubleSingle:{topLeft:"╒",topRight:"╕",bottomRight:"╛",bottomLeft:"╘",vertical:"│",horizontal:"═"},classic:{topLeft:"+",topRight:"+",bottomRight:"+",bottomLeft:"+",vertical:"|",horizontal:"-"}};gU.exports=yU,gU.exports.default=yU;var vU={},bU=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vU,"__esModule",{value:!0});const wU=bU(jo),_U=/^(rgb|hsl|hsv|hwb)\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/,xU=/^(ansi|ansi256)\(\s?(\d+)\s?\)$/,kU=(e,t)=>"foreground"===t?e:"bg"+e[0].toUpperCase()+e.slice(1);vU.default=(e,t,n)=>{if(!t)return e;if(t in wU.default){const r=kU(t,n);return wU.default[r](e)}if(t.startsWith("#")){const r=kU("hex",n);return wU.default[r](t)(e)}if(t.startsWith("ansi")){const r=xU.exec(t);if(!r)return e;const a=kU(r[1],n),i=Number(r[2]);return wU.default[a](i)(e)}if(t.startsWith("rgb")||t.startsWith("hsl")||t.startsWith("hsv")||t.startsWith("hwb")){const r=_U.exec(t);if(!r)return e;const a=kU(r[1],n),i=Number(r[2]),o=Number(r[3]),s=Number(r[4]);return wU.default[a](i,o,s)(e)}return e};var SU=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hU,"__esModule",{value:!0});const EU=SU(gU.exports),CU=SU(vU);hU.default=(e,t,n,r)=>{if("string"==typeof n.style.borderStyle){const a=n.yogaNode.getComputedWidth(),i=n.yogaNode.getComputedHeight(),o=n.style.borderColor,s=EU.default[n.style.borderStyle],u=CU.default(s.topLeft+s.horizontal.repeat(a-2)+s.topRight,o,"foreground"),l=(CU.default(s.vertical,o,"foreground")+"\n").repeat(i-2),c=CU.default(s.bottomLeft+s.horizontal.repeat(a-2)+s.bottomRight,o,"foreground");r.write(e,t,u,{transformers:[]}),r.write(e,t+1,l,{transformers:[]}),r.write(e+a-1,t+1,l,{transformers:[]}),r.write(e,t+i-1,c,{transformers:[]})}};var DU=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pU,"__esModule",{value:!0});const OU=DU(ne.default),NU=DU(Sz.exports),jU=DU(((e,t=1,n)=>{if(n={indent:" ",includeEmptyLines:!1,...n},"string"!=typeof e)throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if("string"!=typeof n.indent)throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);if(0===t)return e;const r=n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(r,n.indent.repeat(t))})),PU=DU(qz),TU=DU(dU),AU=DU(fB),RU=DU(hU),IU=(e,t,n)=>{var r;const{offsetX:a=0,offsetY:i=0,transformers:o=[],skipStaticElements:s}=n;if(s&&e.internal_static)return;const{yogaNode:u}=e;if(u){if(u.getDisplay()===OU.default.DISPLAY_NONE)return;const n=a+u.getComputedLeft(),l=i+u.getComputedTop();let c=o;if("function"==typeof e.internal_transform&&(c=[e.internal_transform,...o]),"ink-text"===e.nodeName){let a=AU.default(e);if(a.length>0){const i=NU.default(a),o=TU.default(u);if(i>o){const t=null!==(r=e.style.textWrap)&&void 0!==r?r:"wrap";a=PU.default(a,o,t)}a=((e,t)=>{var n;const r=null===(n=e.childNodes[0])||void 0===n?void 0:n.yogaNode;if(r){const e=r.getComputedLeft(),n=r.getComputedTop();t="\n".repeat(n)+jU.default(t,e)}return t})(e,a),t.write(n,l,a,{transformers:c})}return}if("ink-box"===e.nodeName&&RU.default(n,l,e,t),"ink-root"===e.nodeName||"ink-box"===e.nodeName)for(const r of e.childNodes)IU(r,t,{offsetX:n,offsetY:l,transformers:c,skipStaticElements:s})}};pU.default=IU;var MU={},LU=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(MU,"__esModule",{value:!0});const FU=LU(iB),zU=LU(Ez.exports);MU.default=class{constructor(e){this.writes=[];const{width:t,height:n}=e;this.width=t,this.height=n}write(e,t,n,r){const{transformers:a}=r;n&&this.writes.push({x:e,y:t,text:n,transformers:a})}get(){const e=[];for(let t=0;t<this.height;t++)e.push(" ".repeat(this.width));for(const t of this.writes){const{x:n,y:r,text:a,transformers:i}=t,o=a.split("\n");let s=0;for(let t of o){const a=e[r+s];if(!a)continue;const o=zU.default(t);for(const e of i)t=e(t);e[r+s]=FU.default(a,0,n)+t+FU.default(a,n+o),s++}}return{output:e.map((e=>e.trimRight())).join("\n"),height:e.length}}};var BU=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cU,"__esModule",{value:!0});const UU=BU(ne.default),qU=BU(pU),$U=BU(MU);cU.default=(e,t)=>{var n;if(e.yogaNode.setWidth(t),e.yogaNode){e.yogaNode.calculateLayout(void 0,void 0,UU.default.DIRECTION_LTR);const t=new $U.default({width:e.yogaNode.getComputedWidth(),height:e.yogaNode.getComputedHeight()});let r;qU.default(e,t,{skipStaticElements:!0}),(null===(n=e.staticNode)||void 0===n?void 0:n.yogaNode)&&(r=new $U.default({width:e.staticNode.yogaNode.getComputedWidth(),height:e.staticNode.yogaNode.getComputedHeight()}),qU.default(e.staticNode,r,{skipStaticElements:!1}));const{output:a,height:i}=t.get();return{output:a,outputHeight:i,staticOutput:r?`${r.get().output}\n`:""}}return{output:"",outputHeight:0,staticOutput:""}};const VU=z.default,HU=["assert","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"];let WU={};var GU=e=>{const t=new VU.PassThrough,n=new VU.PassThrough;t.write=t=>e("stdout",t),n.write=t=>e("stderr",t);const r=new console.Console(t,n);for(const e of HU)WU[e]=console[e],console[e]=r[e];return()=>{for(const e of HU)console[e]=WU[e];WU={}}},KU={};Object.defineProperty(KU,"__esModule",{value:!0}),KU.default=new WeakMap;var YU={},QU={};Object.defineProperty(QU,"__esModule",{value:!0});const XU=AF.exports.createContext({exit:()=>{}});XU.displayName="InternalAppContext",QU.default=XU;var JU={};Object.defineProperty(JU,"__esModule",{value:!0});const ZU=AF.exports.createContext({stdin:void 0,setRawMode:()=>{},isRawModeSupported:!1,internal_exitOnCtrlC:!0});ZU.displayName="InternalStdinContext",JU.default=ZU;var eq={};Object.defineProperty(eq,"__esModule",{value:!0});const tq=AF.exports.createContext({stdout:void 0,write:()=>{}});tq.displayName="InternalStdoutContext",eq.default=tq;var nq={};Object.defineProperty(nq,"__esModule",{value:!0});const rq=AF.exports.createContext({stderr:void 0,write:()=>{}});rq.displayName="InternalStderrContext",nq.default=rq;var aq={};Object.defineProperty(aq,"__esModule",{value:!0});const iq=AF.exports.createContext({activeId:void 0,add:()=>{},remove:()=>{},activate:()=>{},deactivate:()=>{},enableFocus:()=>{},disableFocus:()=>{},focusNext:()=>{},focusPrevious:()=>{},focus:()=>{}});iq.displayName="InternalFocusContext",aq.default=iq;var oq={};const sq=/[|\\{}()[\]^$+*?.-]/g;const uq=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(sq,"\\$&")},lq="object"==typeof process&&process&&"function"==typeof process.cwd?process.cwd():".",cq=[].concat(ee.default.builtinModules,"bootstrap_node","node").map((e=>new RegExp(`(?:\\((?:node:)?${e}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${e}(?:\\.js)?:\\d+:\\d+$)`)));cq.push(/\((?:node:)?internal\/[^:]+:\d+:\d+\)$/,/\s*at (?:node:)?internal\/[^:]+:\d+:\d+$/,/\/\.node-spawn-wrap-\w+-\w+\/node:\d+:\d+\)?$/);class pq{constructor(e){"internals"in(e={ignoredPackages:[],...e})==!1&&(e.internals=pq.nodeInternals()),"cwd"in e==!1&&(e.cwd=lq),this._cwd=e.cwd.replace(/\\/g,"/"),this._internals=[].concat(e.internals,function(e){if(0===e.length)return[];const t=e.map((e=>uq(e)));return new RegExp(`[/\\\\]node_modules[/\\\\](?:${t.join("|")})[/\\\\][^:]+:\\d+:\\d+`)}(e.ignoredPackages)),this._wrapCallSite=e.wrapCallSite||!1}static nodeInternals(){return[...cq]}clean(e,t=0){t=" ".repeat(t),Array.isArray(e)||(e=e.split("\n")),!/^\s*at /.test(e[0])&&/^\s*at /.test(e[1])&&(e=e.slice(1));let n=!1,r=null;const a=[];return e.forEach((e=>{if(e=e.replace(/\\/g,"/"),this._internals.some((t=>t.test(e))))return;const t=/^\s*at /.test(e);n?e=e.trimEnd().replace(/^(\s+)at /,"$1"):(e=e.trim(),t&&(e=e.slice(3))),(e=e.replace(`${this._cwd}/`,""))&&(t?(r&&(a.push(r),r=null),a.push(e)):(n=!0,r=e))})),a.map((e=>`${t}${e}\n`)).join("")}captureString(e,t=this.captureString){"function"==typeof e&&(t=e,e=1/0);const{stackTraceLimit:n}=Error;e&&(Error.stackTraceLimit=e);const r={};Error.captureStackTrace(r,t);const{stack:a}=r;return Error.stackTraceLimit=n,this.clean(a)}capture(e,t=this.capture){"function"==typeof e&&(t=e,e=1/0);const{prepareStackTrace:n,stackTraceLimit:r}=Error;Error.prepareStackTrace=(e,t)=>this._wrapCallSite?t.map(this._wrapCallSite):t,e&&(Error.stackTraceLimit=e);const a={};Error.captureStackTrace(a,t);const{stack:i}=a;return Object.assign(Error,{prepareStackTrace:n,stackTraceLimit:r}),i}at(e=this.at){const[t]=this.capture(1,e);if(!t)return{};const n={line:t.getLineNumber(),column:t.getColumnNumber()};let r;dq(n,t.getFileName(),this._cwd),t.isConstructor()&&Object.defineProperty(n,"constructor",{value:!0,configurable:!0}),t.isEval()&&(n.evalOrigin=t.getEvalOrigin()),t.isNative()&&(n.native=!0);try{r=t.getTypeName()}catch(e){}r&&"Object"!==r&&"[object Object]"!==r&&(n.type=r);const a=t.getFunctionName();a&&(n.function=a);const i=t.getMethodName();return i&&a!==i&&(n.method=i),n}parseLine(e){const t=e&&e.match(fq);if(!t)return null;const n="new"===t[1];let r=t[2];const a=t[3],i=t[4],o=Number(t[5]),s=Number(t[6]);let u=t[7];const l=t[8],c=t[9],p="native"===t[10],d=")"===t[11];let f;const m={};if(l&&(m.line=Number(l)),c&&(m.column=Number(c)),d&&u){let e=0;for(let t=u.length-1;t>0;t--)if(")"===u.charAt(t))e++;else if("("===u.charAt(t)&&" "===u.charAt(t-1)&&(e--,-1===e&&" "===u.charAt(t-1))){const e=u.slice(0,t-1),n=u.slice(t+1);u=n,r+=` (${e}`;break}}if(r){const e=r.match(mq);e&&(r=e[1],f=e[2])}return dq(m,u,this._cwd),n&&Object.defineProperty(m,"constructor",{value:!0,configurable:!0}),a&&(m.evalOrigin=a,m.evalLine=o,m.evalColumn=s,m.evalFile=i&&i.replace(/\\/g,"/")),p&&(m.native=!0),r&&(m.function=r),f&&r!==f&&(m.method=f),m}}function dq(e,t,n){t&&((t=t.replace(/\\/g,"/")).startsWith(`${n}/`)&&(t=t.slice(n.length+1)),e.file=t)}const fq=new RegExp("^(?:\\s*at )?(?:(new) )?(?:(.*?) \\()?(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?(?:(.+?):(\\d+):(\\d+)|(native))(\\)?)$"),mq=/^(.*?) \[as (.*?)\]$/;var hq=pq;const gq=(e,t)=>e.replace(/^\t+/gm,(e=>" ".repeat(e.length*(t||2))));var yq={},vq=oe&&oe.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),bq=oe&&oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),wq=oe&&oe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&vq(t,e,n);return bq(t,e),t},_q=oe&&oe.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};Object.defineProperty(yq,"__esModule",{value:!0});const xq=wq(AF.exports),kq=xq.forwardRef(((e,t)=>{var{children:n}=e,r=_q(e,["children"]);const a=Object.assign(Object.assign({},r),{marginLeft:r.marginLeft||r.marginX||r.margin||0,marginRight:r.marginRight||r.marginX||r.margin||0,marginTop:r.marginTop||r.marginY||r.margin||0,marginBottom:r.marginBottom||r.marginY||r.margin||0,paddingLeft:r.paddingLeft||r.paddingX||r.padding||0,paddingRight:r.paddingRight||r.paddingX||r.padding||0,paddingTop:r.paddingTop||r.paddingY||r.padding||0,paddingBottom:r.paddingBottom||r.paddingY||r.padding||0});return xq.default.createElement("ink-box",{ref:t,style:a},n)}));kq.displayName="Box",kq.defaultProps={flexDirection:"row",flexGrow:0,flexShrink:1},yq.default=kq;var Sq={},Eq=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Sq,"__esModule",{value:!0});const Cq=Eq(AF.exports),Dq=Eq(jo),Oq=Eq(vU),Nq=({color:e,backgroundColor:t,dimColor:n,bold:r,italic:a,underline:i,strikethrough:o,inverse:s,wrap:u,children:l})=>{if(null==l)return null;return Cq.default.createElement("ink-text",{style:{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:u},internal_transform:u=>(n&&(u=Dq.default.dim(u)),e&&(u=Oq.default(u,e,"foreground")),t&&(u=Oq.default(u,t,"background")),r&&(u=Dq.default.bold(u)),a&&(u=Dq.default.italic(u)),i&&(u=Dq.default.underline(u)),o&&(u=Dq.default.strikethrough(u)),s&&(u=Dq.default.inverse(u)),u)},l)};Nq.displayName="Text",Nq.defaultProps={dimColor:!1,bold:!1,italic:!1,underline:!1,strikethrough:!1,wrap:"wrap"},Sq.default=Nq;var jq=oe&&oe.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),Pq=oe&&oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Tq=oe&&oe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&jq(t,e,n);return Pq(t,e),t},Aq=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(oq,"__esModule",{value:!0});const Rq=Tq(R.default),Iq=Aq(AF.exports),Mq=Aq(hq),Lq=Aq(((e,t,n)=>{if("string"!=typeof e)throw new TypeError("Source code is missing.");if(!t||t<1)throw new TypeError("Line number must start from `1`.");if(!(t>(e=gq(e).split(/\r?\n/)).length))return((e,t)=>{const n=[],r=e+t;for(let a=e-t;a<=r;a++)n.push(a);return n})(t,(n={around:3,...n}).around).filter((t=>void 0!==e[t-1])).map((t=>({line:t,value:e[t-1]})))})),Fq=Aq(yq),zq=Aq(Sq),Bq=new Mq.default({cwd:process.cwd(),internals:Mq.default.nodeInternals()});oq.default=({error:e})=>{const t=e.stack?e.stack.split("\n").slice(1):void 0,n=t?Bq.parseLine(t[0]):void 0;let r,a=0;if((null==n?void 0:n.file)&&(null==n?void 0:n.line)&&Rq.existsSync(n.file)){const e=Rq.readFileSync(n.file,"utf8");if(r=Lq.default(e,n.line),r)for(const{line:e}of r)a=Math.max(a,String(e).length)}return Iq.default.createElement(Fq.default,{flexDirection:"column",padding:1},Iq.default.createElement(Fq.default,null,Iq.default.createElement(zq.default,{backgroundColor:"red",color:"white"}," ","ERROR"," "),Iq.default.createElement(zq.default,null," ",e.message)),n&&Iq.default.createElement(Fq.default,{marginTop:1},Iq.default.createElement(zq.default,{dimColor:!0},n.file,":",n.line,":",n.column)),n&&r&&Iq.default.createElement(Fq.default,{marginTop:1,flexDirection:"column"},r.map((({line:e,value:t})=>Iq.default.createElement(Fq.default,{key:e},Iq.default.createElement(Fq.default,{width:a+1},Iq.default.createElement(zq.default,{dimColor:e!==n.line,backgroundColor:e===n.line?"red":void 0,color:e===n.line?"white":void 0},String(e).padStart(a," "),":")),Iq.default.createElement(zq.default,{key:e,backgroundColor:e===n.line?"red":void 0,color:e===n.line?"white":void 0}," "+t))))),e.stack&&Iq.default.createElement(Fq.default,{marginTop:1,flexDirection:"column"},e.stack.split("\n").slice(1).map((e=>{const t=Bq.parseLine(e);return t?Iq.default.createElement(Fq.default,{key:e},Iq.default.createElement(zq.default,{dimColor:!0},"- "),Iq.default.createElement(zq.default,{dimColor:!0,bold:!0},t.function),Iq.default.createElement(zq.default,{dimColor:!0,color:"gray"}," ","(",t.file,":",t.line,":",t.column,")")):Iq.default.createElement(Fq.default,{key:e},Iq.default.createElement(zq.default,{dimColor:!0},"- "),Iq.default.createElement(zq.default,{dimColor:!0,bold:!0},e))}))))};var Uq=oe&&oe.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),qq=oe&&oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),$q=oe&&oe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&Uq(t,e,n);return qq(t,e),t},Vq=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(YU,"__esModule",{value:!0});const Hq=$q(AF.exports),Wq=Vq(qF),Gq=Vq(QU),Kq=Vq(JU),Yq=Vq(eq),Qq=Vq(nq),Xq=Vq(aq),Jq=Vq(oq);class Zq extends Hq.PureComponent{constructor(){super(...arguments),this.state={isFocusEnabled:!0,activeFocusId:void 0,focusables:[],error:void 0},this.rawModeEnabledCount=0,this.handleSetRawMode=e=>{const{stdin:t}=this.props;if(!this.isRawModeSupported())throw t===process.stdin?new Error("Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.\nRead about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported"):new Error("Raw mode is not supported on the stdin provided to Ink.\nRead about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported");if(t.setEncoding("utf8"),e)return 0===this.rawModeEnabledCount&&(t.addListener("data",this.handleInput),t.resume(),t.setRawMode(!0)),void this.rawModeEnabledCount++;0==--this.rawModeEnabledCount&&(t.setRawMode(!1),t.removeListener("data",this.handleInput),t.pause())},this.handleInput=e=>{""===e&&this.props.exitOnCtrlC&&this.handleExit(),""===e&&this.state.activeFocusId&&this.setState({activeFocusId:void 0}),this.state.isFocusEnabled&&this.state.focusables.length>0&&("\t"===e&&this.focusNext(),"[Z"===e&&this.focusPrevious())},this.handleExit=e=>{this.isRawModeSupported()&&this.handleSetRawMode(!1),this.props.onExit(e)},this.enableFocus=()=>{this.setState({isFocusEnabled:!0})},this.disableFocus=()=>{this.setState({isFocusEnabled:!1})},this.focus=e=>{this.setState((t=>t.focusables.some((t=>(null==t?void 0:t.id)===e))?{activeFocusId:e}:t))},this.focusNext=()=>{this.setState((e=>{var t;const n=null===(t=e.focusables[0])||void 0===t?void 0:t.id;return{activeFocusId:this.findNextFocusable(e)||n}}))},this.focusPrevious=()=>{this.setState((e=>{var t;const n=null===(t=e.focusables[e.focusables.length-1])||void 0===t?void 0:t.id;return{activeFocusId:this.findPreviousFocusable(e)||n}}))},this.addFocusable=(e,{autoFocus:t})=>{this.setState((n=>{let r=n.activeFocusId;return!r&&t&&(r=e),{activeFocusId:r,focusables:[...n.focusables,{id:e,isActive:!0}]}}))},this.removeFocusable=e=>{this.setState((t=>({activeFocusId:t.activeFocusId===e?void 0:t.activeFocusId,focusables:t.focusables.filter((t=>t.id!==e))})))},this.activateFocusable=e=>{this.setState((t=>({focusables:t.focusables.map((t=>t.id!==e?t:{id:e,isActive:!0}))})))},this.deactivateFocusable=e=>{this.setState((t=>({activeFocusId:t.activeFocusId===e?void 0:t.activeFocusId,focusables:t.focusables.map((t=>t.id!==e?t:{id:e,isActive:!1}))})))},this.findNextFocusable=e=>{var t;for(let n=e.focusables.findIndex((t=>t.id===e.activeFocusId))+1;n<e.focusables.length;n++)if(null===(t=e.focusables[n])||void 0===t?void 0:t.isActive)return e.focusables[n].id},this.findPreviousFocusable=e=>{var t;for(let n=e.focusables.findIndex((t=>t.id===e.activeFocusId))-1;n>=0;n--)if(null===(t=e.focusables[n])||void 0===t?void 0:t.isActive)return e.focusables[n].id}}static getDerivedStateFromError(e){return{error:e}}isRawModeSupported(){return this.props.stdin.isTTY}render(){return Hq.default.createElement(Gq.default.Provider,{value:{exit:this.handleExit}},Hq.default.createElement(Kq.default.Provider,{value:{stdin:this.props.stdin,setRawMode:this.handleSetRawMode,isRawModeSupported:this.isRawModeSupported(),internal_exitOnCtrlC:this.props.exitOnCtrlC}},Hq.default.createElement(Yq.default.Provider,{value:{stdout:this.props.stdout,write:this.props.writeToStdout}},Hq.default.createElement(Qq.default.Provider,{value:{stderr:this.props.stderr,write:this.props.writeToStderr}},Hq.default.createElement(Xq.default.Provider,{value:{activeId:this.state.activeFocusId,add:this.addFocusable,remove:this.removeFocusable,activate:this.activateFocusable,deactivate:this.deactivateFocusable,enableFocus:this.enableFocus,disableFocus:this.disableFocus,focusNext:this.focusNext,focusPrevious:this.focusPrevious,focus:this.focus}},this.state.error?Hq.default.createElement(Jq.default,{error:this.state.error}):this.props.children)))))}componentDidMount(){Wq.default.hide(this.props.stdout)}componentWillUnmount(){Wq.default.show(this.props.stdout),this.isRawModeSupported()&&this.handleSetRawMode(!1)}componentDidCatch(e){this.handleExit(e)}}YU.default=Zq,Zq.displayName="InternalApp";var e$=oe&&oe.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t$=oe&&oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n$=oe&&oe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&e$(t,e,n);return t$(t,e),t},r$=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(TF,"__esModule",{value:!0});const a$=r$(AF.exports),i$=zF.exports,o$=r$(BF),s$=r$(UF.exports),u$=r$(XF),l$=r$(((e,{include:t,exclude:n}={})=>{const r=e=>{const r=t=>"string"==typeof t?e===t:t.test(e);return t?t.some(r):!n||!n.some(r)};for(const[t,n]of(e=>{const t=new Set;do{for(const n of Reflect.ownKeys(e))t.add([e,n])}while((e=Reflect.getPrototypeOf(e))&&e!==Object.prototype);return t})(e.constructor.prototype)){if("constructor"===n||!r(n))continue;const a=Reflect.getOwnPropertyDescriptor(t,n);a&&"function"==typeof a.value&&(e[n]=e[n].bind(e))}return e})),c$=r$(ZF),p$=r$(cU),d$=r$(tN.exports),f$=r$(GU),m$=n$(xz),h$=r$(KU),g$=r$(YU),y$="false"!==process.env.CI&&u$.default,v$=()=>{};TF.default=class{constructor(e){this.resolveExitPromise=()=>{},this.rejectExitPromise=()=>{},this.unsubscribeExit=()=>{},this.onRender=()=>{if(this.isUnmounted)return;const{output:e,outputHeight:t,staticOutput:n}=p$.default(this.rootNode,this.options.stdout.columns||80),r=n&&"\n"!==n;return this.options.debug?(r&&(this.fullStaticOutput+=n),void this.options.stdout.write(this.fullStaticOutput+e)):y$?(r&&this.options.stdout.write(n),void(this.lastOutput=e)):(r&&(this.fullStaticOutput+=n),t>=this.options.stdout.rows?(this.options.stdout.write(s$.default.clearTerminal+this.fullStaticOutput+e),void(this.lastOutput=e)):(r&&(this.log.clear(),this.options.stdout.write(n),this.log(e)),r||e===this.lastOutput||this.throttledLog(e),void(this.lastOutput=e)))},l$.default(this),this.options=e,this.rootNode=m$.createNode("ink-root"),this.rootNode.onRender=e.debug?this.onRender:i$.throttle(this.onRender,32,{leading:!0,trailing:!0}),this.rootNode.onImmediateRender=this.onRender,this.log=o$.default.create(e.stdout),this.throttledLog=e.debug?this.log:i$.throttle(this.log,void 0,{leading:!0,trailing:!0}),this.isUnmounted=!1,this.lastOutput="",this.fullStaticOutput="",this.container=c$.default.createContainer(this.rootNode,0,!1,null),this.unsubscribeExit=d$.default(this.unmount,{alwaysLast:!1}),"true"===process.env.DEV&&c$.default.injectIntoDevTools({bundleType:0,version:"16.13.1",rendererPackageName:"ink"}),e.patchConsole&&this.patchConsole(),y$||(e.stdout.on("resize",this.onRender),this.unsubscribeResize=()=>{e.stdout.off("resize",this.onRender)})}render(e){const t=a$.default.createElement(g$.default,{stdin:this.options.stdin,stdout:this.options.stdout,stderr:this.options.stderr,writeToStdout:this.writeToStdout,writeToStderr:this.writeToStderr,exitOnCtrlC:this.options.exitOnCtrlC,onExit:this.unmount},e);c$.default.updateContainer(t,this.container,null,v$)}writeToStdout(e){this.isUnmounted||(this.options.debug?this.options.stdout.write(e+this.fullStaticOutput+this.lastOutput):y$?this.options.stdout.write(e):(this.log.clear(),this.options.stdout.write(e),this.log(this.lastOutput)))}writeToStderr(e){if(!this.isUnmounted)return this.options.debug?(this.options.stderr.write(e),void this.options.stdout.write(this.fullStaticOutput+this.lastOutput)):void(y$?this.options.stderr.write(e):(this.log.clear(),this.options.stderr.write(e),this.log(this.lastOutput)))}unmount(e){this.isUnmounted||(this.onRender(),this.unsubscribeExit(),"function"==typeof this.restoreConsole&&this.restoreConsole(),"function"==typeof this.unsubscribeResize&&this.unsubscribeResize(),y$?this.options.stdout.write(this.lastOutput+"\n"):this.options.debug||this.log.done(),this.isUnmounted=!0,c$.default.updateContainer(null,this.container,null,v$),h$.default.delete(this.options.stdout),e instanceof Error?this.rejectExitPromise(e):this.resolveExitPromise())}waitUntilExit(){return this.exitPromise||(this.exitPromise=new Promise(((e,t)=>{this.resolveExitPromise=e,this.rejectExitPromise=t}))),this.exitPromise}clear(){y$||this.options.debug||this.log.clear()}patchConsole(){this.options.debug||(this.restoreConsole=f$.default(((e,t)=>{if("stdout"===e&&this.writeToStdout(t),"stderr"===e){t.startsWith("The above error occurred")||this.writeToStderr(t)}})))}};var b$=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(PF,"__esModule",{value:!0});const w$=b$(TF),_$=b$(KU),x$=z.default;PF.default=(e,t)=>{const n=Object.assign({stdout:process.stdout,stdin:process.stdin,stderr:process.stderr,debug:!1,exitOnCtrlC:!0,patchConsole:!0},k$(t)),r=S$(n.stdout,(()=>new w$.default(n)));return r.render(e),{rerender:r.render,unmount:()=>r.unmount(),waitUntilExit:r.waitUntilExit,cleanup:()=>_$.default.delete(n.stdout),clear:r.clear}};const k$=(e={})=>e instanceof x$.Stream?{stdout:e,stdin:process.stdin}:e,S$=(e,t)=>{let n;return _$.default.has(e)?n=_$.default.get(e):(n=t(),_$.default.set(e,n)),n};var E$={},C$=oe&&oe.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),D$=oe&&oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),O$=oe&&oe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&C$(t,e,n);return D$(t,e),t};Object.defineProperty(E$,"__esModule",{value:!0});const N$=O$(AF.exports),j$=e=>{const{items:t,children:n,style:r}=e,[a,i]=N$.useState(0),o=N$.useMemo((()=>t.slice(a)),[t,a]);N$.useLayoutEffect((()=>{i(t.length)}),[t.length]);const s=o.map(((e,t)=>n(e,a+t))),u=N$.useMemo((()=>Object.assign({position:"absolute",flexDirection:"column"},r)),[r]);return N$.default.createElement("ink-box",{internal_static:!0,style:u},s)};j$.displayName="Static",E$.default=j$;var P$={},T$=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(P$,"__esModule",{value:!0});const A$=T$(AF.exports),R$=({children:e,transform:t})=>null==e?null:A$.default.createElement("ink-text",{style:{flexGrow:0,flexShrink:1,flexDirection:"row"},internal_transform:t},e);R$.displayName="Transform",P$.default=R$;var I$={},M$=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(I$,"__esModule",{value:!0});const L$=M$(AF.exports),F$=({count:e=1})=>L$.default.createElement("ink-text",null,"\n".repeat(e));F$.displayName="Newline",I$.default=F$;var z$={},B$=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(z$,"__esModule",{value:!0});const U$=B$(AF.exports),q$=B$(yq),$$=()=>U$.default.createElement(q$.default,{flexGrow:1});$$.displayName="Spacer",z$.default=$$;var V$={},H$={},W$=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(H$,"__esModule",{value:!0});const G$=AF.exports,K$=W$(JU);H$.default=()=>G$.useContext(K$.default);var Y$=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(V$,"__esModule",{value:!0});const Q$=AF.exports,X$=Y$(H$);V$.default=(e,t={})=>{const{stdin:n,setRawMode:r,internal_exitOnCtrlC:a}=X$.default();Q$.useEffect((()=>{if(!1!==t.isActive)return r(!0),()=>{r(!1)}}),[t.isActive,r]),Q$.useEffect((()=>{if(!1===t.isActive)return;const r=t=>{let n=String(t);const r={upArrow:"[A"===n,downArrow:"[B"===n,leftArrow:"[D"===n,rightArrow:"[C"===n,pageDown:"[6~"===n,pageUp:"[5~"===n,return:"\r"===n,escape:""===n,ctrl:!1,shift:!1,tab:"\t"===n||"[Z"===n,backspace:"\b"===n,delete:""===n||"[3~"===n,meta:!1};n<=""&&!r.return&&(n=String.fromCharCode(n.charCodeAt(0)+"a".charCodeAt(0)-1),r.ctrl=!0),n.startsWith("")&&(n=n.slice(1),r.meta=!0);const i=n>="A"&&n<="Z",o=n>="А"&&n<="Я";1===n.length&&(i||o)&&(r.shift=!0),r.tab&&"[Z"===n&&(r.shift=!0),(r.tab||r.backspace||r.delete)&&(n=""),"c"===n&&r.ctrl&&a||e(n,r)};return null==n||n.on("data",r),()=>{null==n||n.off("data",r)}}),[t.isActive,n,a,e])};var J$={},Z$=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(J$,"__esModule",{value:!0});const eV=AF.exports,tV=Z$(QU);J$.default=()=>eV.useContext(tV.default);var nV={},rV=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nV,"__esModule",{value:!0});const aV=AF.exports,iV=rV(eq);nV.default=()=>aV.useContext(iV.default);var oV={},sV=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(oV,"__esModule",{value:!0});const uV=AF.exports,lV=sV(nq);oV.default=()=>uV.useContext(lV.default);var cV={},pV=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cV,"__esModule",{value:!0});const dV=AF.exports,fV=pV(aq),mV=pV(H$);cV.default=({isActive:e=!0,autoFocus:t=!1,id:n}={})=>{const{isRawModeSupported:r,setRawMode:a}=mV.default(),{activeId:i,add:o,remove:s,activate:u,deactivate:l,focus:c}=dV.useContext(fV.default),p=dV.useMemo((()=>null!=n?n:Math.random().toString().slice(2,7)),[n]);return dV.useEffect((()=>(o(p,{autoFocus:t}),()=>{s(p)})),[p,t]),dV.useEffect((()=>{e?u(p):l(p)}),[e,p]),dV.useEffect((()=>{if(r&&e)return a(!0),()=>{a(!1)}}),[e]),{isFocused:Boolean(p)&&i===p,focus:c}};var hV={},gV=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hV,"__esModule",{value:!0});const yV=AF.exports,vV=gV(aq);hV.default=()=>{const e=yV.useContext(vV.default);return{enableFocus:e.enableFocus,disableFocus:e.disableFocus,focusNext:e.focusNext,focusPrevious:e.focusPrevious,focus:e.focus}};var bV={};Object.defineProperty(bV,"__esModule",{value:!0}),bV.default=e=>{var t,n,r,a;return{width:null!==(n=null===(t=e.yogaNode)||void 0===t?void 0:t.getComputedWidth())&&void 0!==n?n:0,height:null!==(a=null===(r=e.yogaNode)||void 0===r?void 0:r.getComputedHeight())&&void 0!==a?a:0}},function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=PF;Object.defineProperty(e,"render",{enumerable:!0,get:function(){return t.default}});var n=yq;Object.defineProperty(e,"Box",{enumerable:!0,get:function(){return n.default}});var r=Sq;Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return r.default}});var a=E$;Object.defineProperty(e,"Static",{enumerable:!0,get:function(){return a.default}});var i=P$;Object.defineProperty(e,"Transform",{enumerable:!0,get:function(){return i.default}});var o=I$;Object.defineProperty(e,"Newline",{enumerable:!0,get:function(){return o.default}});var s=z$;Object.defineProperty(e,"Spacer",{enumerable:!0,get:function(){return s.default}});var u=V$;Object.defineProperty(e,"useInput",{enumerable:!0,get:function(){return u.default}});var l=J$;Object.defineProperty(e,"useApp",{enumerable:!0,get:function(){return l.default}});var c=H$;Object.defineProperty(e,"useStdin",{enumerable:!0,get:function(){return c.default}});var p=nV;Object.defineProperty(e,"useStdout",{enumerable:!0,get:function(){return p.default}});var d=oV;Object.defineProperty(e,"useStderr",{enumerable:!0,get:function(){return d.default}});var f=cV;Object.defineProperty(e,"useFocus",{enumerable:!0,get:function(){return f.default}});var m=hV;Object.defineProperty(e,"useFocusManager",{enumerable:!0,get:function(){return m.default}});var h=bV;Object.defineProperty(e,"measureElement",{enumerable:!0,get:function(){return h.default}})}(jF);var wV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ProgressStatus",{enumerable:!0,get:()=>i});const t=jF,n=a(AF.exports);function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}return a.default=e,n&&n.set(e,a),a}function i(e){const{waiting:r,completed:a,total:i}=e.progress,o=`Waiting: ${r} | Completed: ${a} | Total: ${i} | ${i>0?`${(a/i*100).toFixed(2)}%`:"0%"}`;return n.createElement(t.Box,null,n.createElement(t.Text,null,o))}}(wV);var _V={},xV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ErrorMessages",{enumerable:!0,get:()=>i});const t=a(AF.exports),n=jF;function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}return a.default=e,n&&n.set(e,a),a}function i(e){const{errors:r}=e;return t.createElement(n.Box,{flexDirection:"column"},t.createElement(n.Text,{color:"redBright"},"Errors"),t.createElement(n.Box,{flexDirection:"column",marginLeft:2,marginY:1},[...r.entries()].map((([e,r])=>t.createElement(n.Box,{flexDirection:"column",key:`errorlogs-${e}`,marginBottom:1},t.createElement(n.Text,{color:"cyanBright",underline:!0,bold:!0},e),t.createElement(n.Text,null,r.map((e=>e.msg)).join("\n")))))))}}(xV),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"SummaryInfo",{enumerable:!0,get:()=>u});const t=iF,n=jF,r=s(AF.exports),a=uF,i=xV;function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function u(e){const{summary:o}=e,{schedulerRunSummary:s,logEntries:u}=o,{targetRunByStatus:l,targetRuns:c,duration:p}=s,d=(0,a.slowestTargetRuns)([...c.values()]),{failed:f,aborted:m,skipped:h,success:g,pending:y}=l,v=f&&f.length>0?new Map(f.map((e=>[e,u.get(e)||[]]))):new Map;return r.createElement(n.Box,{flexDirection:"column"},r.createElement(n.Text,{color:"greenBright"},"Summary"),r.createElement(n.Newline,null),r.createElement(n.Text,{color:"yellow"},"Slowest targets"),r.createElement(n.Box,{flexDirection:"column",marginLeft:2,marginY:1},d.slice(0,10).filter((e=>!e.target.hidden)).map((e=>r.createElement(n.Text,{key:e.target.id},e.target.id," - ",(0,t.formatDuration)((0,t.hrToSeconds)(e.duration)))))),v.size>0?r.createElement(i.ErrorMessages,{errors:v}):null,r.createElement(n.Text,null,`success: ${g.length}, skipped: ${h.length}, pending: ${y.length}, aborted: ${m.length}, failed: ${f.length}`),r.createElement(n.Text,null,"Took a total of ",(0,t.formatDuration)((0,t.hrToSeconds)(p))," to complete."))}}(_V);var kV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ThreadItem",{enumerable:!0,get:()=>i});const t=a(AF.exports),n=jF;function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}return a.default=e,n&&n.set(e,a),a}function i(e){const{targetId:r}=e;return r?t.createElement(n.Text,{color:"whiteBright"},r," "):t.createElement(n.Text,{color:"gray"},"IDLE")}}(kV),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ProgressReporterApp",{enumerable:!0,get:()=>u});const t=jF,n=s(AF.exports),r=wV,a=_V,i=kV;function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function u(e){const o=new Set,[s,u]=n.useState(o),[l,c]=n.useState({waiting:0,completed:0,total:0}),[p,d]=n.useState(),{logEvent:f}=e;n.useEffect((()=>{f.on("status",(e=>{const{target:t,threadId:n,status:r}=e.data;"running"===r?u((e=>new Set(e).add(t.id))):"success"!==r&&"aborted"!==r&&"failed"!==r&&"skipped"!==r||u((e=>{const n=new Set(e);return n.delete(t.id),n}))})),f.on("progress",(e=>{c(e)})),f.on("summary",(e=>{d(e)}))}),[f]);const m=s.size>16;return n.createElement(t.Box,{flexDirection:"column"},n.createElement(t.Text,null,"Lage running tasks with ",e.concurrency," workers"),p?n.createElement(a.SummaryInfo,{summary:p}):n.createElement(t.Box,{flexDirection:"column"},n.createElement(r.ProgressStatus,{progress:l}),n.createElement(t.Box,{flexDirection:"column",marginLeft:2,marginY:1},[...s].slice(Math.max(0,s.size-16)).map((e=>n.createElement(i.ThreadItem,{key:e,targetId:e}))),m&&n.createElement(t.Text,null,"... (displaying most recent ",16,")"))))}}(NF),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ProgressReporter",{enumerable:!0,get:()=>u});const t=NF,n=jF,r=s(AF.exports),a=i(P.default);function i(e){return e&&e.__esModule?e:{default:e}}function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}class u{log(e){e.data?.target?.id&&(this.logEntries.has(e.data.target.id)||this.logEntries.set(e.data.target.id,[]),this.logEntries.get(e.data.target.id).push(e)),e?.data?.target?.hidden||(e.data&&e.data.schedulerRun&&(this.startTime=e.data.schedulerRun.startTime),e.data&&e.data.status&&this.logEvent.emit("status",e),e.data&&e.data.progress&&this.logEvent.emit("progress",e.data.progress))}summarize(e){this.logEvent.emit("summary",{schedulerRunSummary:e,logEntries:this.logEntries})}constructor(e={concurrency:0}){this.startTime=[0,0],this.logEvent=new a.default,this.logEntries=new Map,(0,n.render)(r.createElement(t.ProgressReporterApp,{logEvent:this.logEvent,concurrency:e.concurrency}))}}}(OF),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{AdoReporter:()=>t.AdoReporter,JsonReporter:()=>n.JsonReporter,LogReporter:()=>r.LogReporter,ChromeTraceEventsReporter:()=>a.ChromeTraceEventsReporter,ProgressReporter:()=>i.ProgressReporter});const t=aF,n=lF,r=cF,a=CF,i=OF}(rF),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createReporter",{enumerable:!0,get:()=>r});const t=GL,n=rF;function r(e,r){const{verbose:a,grouped:i,logLevel:o,concurrency:s,profile:u,progress:l}=r,c=t.LogLevel[o];switch(e){case"profile":return new n.ChromeTraceEventsReporter({concurrency:s,outputFile:"string"==typeof u?u:void 0});case"json":return new n.JsonReporter({logLevel:c});case"azureDevops":case"adoLog":return new n.AdoReporter({grouped:i,logLevel:a?t.LogLevel.verbose:c});case"npmLog":case"old":return new n.LogReporter({grouped:i,logLevel:a?t.LogLevel.verbose:c});default:return l&&!(c>=t.LogLevel.verbose||a||i)?new n.ProgressReporter({concurrency:s}):new n.LogReporter({grouped:i,logLevel:a?t.LogLevel.verbose:c})}}}(nF),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"initializeReporters",{enumerable:!0,get:()=>n});const t=nF;function n(e,n){const{reporter:r}=n,a=(Array.isArray(r)?r:[r]).filter(Boolean);0===a.length&&a.push("default"),n.profile&&a.push("profile");for(const r of a){const a=(0,t.createReporter)(r,n);e.addReporter(a)}return e.reporters}}(tF);var SV={},EV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NpmScriptRunner",{enumerable:!0,get:()=>i});const t=R.default,n=A.default,r=re.default,a=T.default;class i{getNpmArgs(e,t){return["run",e,...t.length>0?["--",...t]:[]]}async hasNpmScript(e){const t=e.options?.script??e.task,a=(0,n.join)(e.cwd,"package.json"),i=JSON.parse(await(0,r.readFile)(a,"utf8"));return!!i.scripts?.[t]}validateOptions(e){if(!(0,t.existsSync)(e.npmCmd))throw new Error(`NPM Script Runner: ${this.options.npmCmd} does not exist`)}async shouldRun(e){return await this.hasNpmScript(e)}async run(e){const{target:t,weight:n,abortSignal:r}=e,{nodeOptions:o,npmCmd:s,taskArgs:u}=this.options,l=t.options?.script??t.task;let c;if(r){if(r.aborted)return;const e=()=>{if(r.removeEventListener("abort",e),c&&!c.killed){const e=c.pid;process.stdout.write(`Abort signal detected, attempting to killing process id ${e}\n`),c.kill("SIGTERM");const t=setTimeout((()=>{c&&!c.killed&&c.kill("SIGKILL")}),i.gracefulKillTimeout);t.unref&&t.unref()}};r.addEventListener("abort",e)}const p=this.getNpmArgs(l,u),d=[o,t.options?.nodeOptions].filter((e=>e)).join(" ");await new Promise(((e,r)=>{c=(0,a.spawn)(s,p,{cwd:t.cwd,stdio:["inherit","pipe","pipe"],env:{...process.env,...process.stdout.isTTY&&{FORCE_COLOR:"1"},...d&&{NODE_OPTIONS:d},LAGE_PACKAGE_NAME:t.packageName,LAGE_TASK:t.task,LAGE_WEIGHT:String(n)}});let i=!1;const o=t=>{if(c?.off("exit",o),c?.off("error",o),!i){if(i=!0,c?.stdout?.destroy(),c?.stderr?.destroy(),c?.stdin?.destroy(),0===t)return e();r(new Error(`NPM Script Runner: ${s} ${p.join(" ")} exited with code ${t}`))}},{pid:u}=c;process.stdout.write(`Running ${[s,...p].join(" ")}, pid: ${u}\n`);const l=c.stdout,f=c.stderr;l.pipe(process.stdout),f.pipe(process.stderr),c.on("exit",o),c.on("error",(()=>o(1)))}))}constructor(e){this.options=e,this.validateOptions(e)}}i.gracefulKillTimeout=2500}(EV);var CV={},DV={},OV={},NV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{START_MARKER_PREFIX:()=>t,END_MARKER_PREFIX:()=>n,startMarker:()=>r,endMarker:()=>a});const t="## WORKER:START:",n="## WORKER:END:";function r(e){return`${t}${e}`}function a(e){return`${n}${e}`}}(NV),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"registerWorker",{enumerable:!0,get:()=>r});const t=ae.default,n=NV;function r(e){t.parentPort?.on("message",(async r=>{let a;switch(r.type){case"start":return a=new AbortController,r.task&&await async function(r,a,i){try{process.stdout.write(`${(0,n.startMarker)(r)}\n`),process.stderr.write(`${(0,n.startMarker)(r)}\n`);const o=await e(a,i);t.parentPort?.postMessage({type:"status",err:void 0,results:o})}catch(e){t.parentPort?.postMessage({type:"status",err:e,results:void 0})}finally{process.stdout.write(`${(0,n.endMarker)(r)}\n`),process.stderr.write(`${(0,n.endMarker)(r)}\n`)}}(r.id,r.task,a.signal);case"abort":return a?.abort();case"check-memory-usage":return function(e){const t={type:"report-memory-usage",memoryUsage:process.memoryUsage().heapUsed};e.postMessage(t)}(t.parentPort)}}))}}(OV);var jV={},PV={},TV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createFilteredStreamTransform",{enumerable:!0,get:()=>r});const t=z.default,n=NV;function r(){const e=new t.Transform({transform(e,t,r){let a=e.toString();a.includes(n.START_MARKER_PREFIX)&&(a=a.replace(new RegExp(n.START_MARKER_PREFIX+"[0-9a-z]{64}\n"),"")),a.includes(n.END_MARKER_PREFIX)&&(a=a.replace(new RegExp(n.END_MARKER_PREFIX+"[0-9a-z]{64}\n"),"")),r(null,a)}});return e}}(TV);var AV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"TaskInfo",{enumerable:!0,get:()=>n});const t=ie.default;class n extends t.AsyncResource{get id(){return this.options.id}get weight(){return this.options.weight}get abortSignal(){return this.options.abortSignal}done(e,t){const{cleanup:n,worker:r,resolve:a,reject:i}=this.options;n&&this.runInAsyncScope(n,null,r),e?this.runInAsyncScope(i,null,e,r):this.runInAsyncScope(a,null,t,r),this.emitDestroy()}constructor(e){super("WorkerPoolTaskInfo"),this.options=e,e.setup&&this.runInAsyncScope(e.setup,null,e.worker,e.worker.stdout,e.worker.stderr)}}}(AV),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ThreadWorker",{enumerable:!0,get:()=>D});const t=TV,n=te.default,r=NV,a=P.default,i=z.default,o=AV,s=ae.default,u=y(q.default),l=y(M.default);function c(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function p(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function d(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,p(e,t,"get"))}function f(e,t,n){c(e,t),t.set(e,n)}function m(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,p(e,t,"set"),n),n}function h(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function g(e,t){c(e,t),t.add(e)}function y(e){return e&&e.__esModule?e:{default:e}}const v="free";var b=new WeakMap,w=new WeakMap,_=new WeakMap,x=new WeakMap,k=new WeakSet,S=new WeakSet,E=new WeakSet,C=new WeakSet;class D extends a.EventEmitter{start(e,t){this.status="busy";const{task:n,resolve:r,reject:a,cleanup:i,setup:s}=e;t?.addEventListener("abort",h(this,C,T));const l=u.default.randomBytes(32).toString("hex");m(this,b,new o.TaskInfo({id:l,weight:e.weight,cleanup:i,resolve:r,reject:a,worker:this,setup:s,abortSignal:t})),d(this,w).promise=new Promise((e=>{d(this,w).resolve=e})),d(this,_).promise=new Promise((e=>{d(this,_).resolve=e})),d(this,x).postMessage({type:"start",task:{...n,weight:e.weight},id:l})}get weight(){return d(this,b)?.weight??1}get stdout(){return d(this,w).stream}get stderr(){return d(this,_).stream}get resourceLimits(){return d(this,x).resourceLimits}get threadId(){return d(this,x).threadId}terminate(){d(this,x).removeAllListeners(),d(this,x).terminate(),d(this,x).unref()}restart(){this.restarts++,this.status="busy",d(this,x).terminate(),h(this,k,O).call(this)}async checkMemoryUsage(){d(this,x).postMessage({type:"check-memory-usage"})}constructor(e,t){super(),g(this,k),g(this,S),g(this,E),g(this,C),f(this,b,{writable:!0,value:void 0}),f(this,w,{writable:!0,value:void 0}),f(this,_,{writable:!0,value:void 0}),f(this,x,{writable:!0,value:void 0}),this.script=e,this.options=t,m(this,w,{stream:new i.Readable,promise:Promise.resolve(),resolve:()=>{}}),m(this,_,{stream:new i.Readable,promise:Promise.resolve(),resolve:()=>{}}),this.status="busy",this.restarts=0,this.maxWorkerMemoryUsage=0,h(this,k,O).call(this)}}function O(){const{workerOptions:e}=this.options,n=this.script,r=new s.Worker(n,{...e,stdout:!0,stderr:!0});h(this,E,j).call(this,r);const a=r.stdout.pipe((0,t.createFilteredStreamTransform)()),i=r.stderr.pipe((0,t.createFilteredStreamTransform)());let o=()=>{};const u=new Promise((e=>{o=e,e()}));let c=()=>{};const p=new Promise((e=>{c=e,e()}));r.on("message",(e=>{if("status"===e.type)Promise.all([d(this,w).promise,d(this,_).promise]).then((()=>{const{err:t,results:n}=e;d(this,b)&&(d(this,b).abortSignal?.removeEventListener("abort",h(this,C,T)),d(this,b).done(t,n)),this.checkMemoryUsage()}));else if("report-memory-usage"===e.type){this.maxWorkerMemoryUsage=Math.max(this.maxWorkerMemoryUsage,e.memoryUsage);const t=this.options.workerIdleMemoryLimit??l.default.totalmem();t&&e.memoryUsage>t?this.restart():h(this,S,N).call(this)}}));r.on("error",(e=>{Promise.all([d(this,w).promise,d(this,_).promise]).then((()=>{d(this,b)&&d(this,b).done(e,null),this.emit("error",e),this.restart()}))})),m(this,x,r),m(this,w,{stream:a,promise:u,resolve:o}),m(this,_,{stream:i,promise:p,resolve:c}),h(this,S,N).call(this)}function N(){let e=1;d(this,b)&&(e=d(this,b).weight,m(this,b,void 0)),this.status="free",this.emit(v,{weight:e})}function j(e){const t=e.stdout,a=(0,n.createInterface)({input:t,crlfDelay:1/0}),i=e.stderr,o=(0,n.createInterface)({input:i,crlfDelay:1/0}),s=e=>{let t,n=[];return a=>{d(this,b)&&(a.includes((0,r.startMarker)(d(this,b).id))?(n=[],t="stdout"===e?d(this,w).resolve:d(this,_).resolve):a.includes((0,r.endMarker)(d(this,b).id))?t():n.push(a))}},u=s("stdout"),l=s("stderr");a.on("line",u),o.on("line",l)}function T(){d(this,x).postMessage({type:"abort"})}}(PV),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"WorkerPool",{enumerable:!0,get:()=>o});const t=P.default,n=PV,r=a(M.default);function a(e){return e&&e.__esModule?e:{default:e}}const i="free";class o extends t.EventEmitter{get workerRestarts(){return this.workers.reduce(((e,t)=>e+t.restarts),0)}get maxWorkerMemoryUsage(){return this.workers.reduce(((e,t)=>Math.max(e,t.maxWorkerMemoryUsage)),0)}stats(){return{maxWorkerMemoryUsage:this.maxWorkerMemoryUsage,workerRestarts:this.workerRestarts}}ensureWorkers(){if(0===this.workers.length)for(let e=0;e<this.maxWorkers;e++)this.addNewWorker()}addNewWorker(){const{script:e,workerOptions:t}=this.options,r=new n.ThreadWorker(e,{workerOptions:t,workerIdleMemoryLimit:this.options.workerIdleMemoryLimit});r.on("free",(e=>{const{weight:t}=e;this.availability+=t,this.emit(i)})),this.workers.push(r)}exec(e,t,n,r,a){return a?.aborted?Promise.resolve():(t=Math.min(Math.max(1,t),this.maxWorkers),new Promise(((i,o)=>{this.queue.push({task:{...e,weight:t},weight:t,resolve:i,reject:o,cleanup:r,setup:n}),this._exec(a)})))}_exec(e){const t=this.queue.findIndex((e=>e.weight<=this.availability));if(-1===t)return;const n=this.workers.find((e=>"free"===e.status));if(n){const r=this.queue[t];this.queue.splice(t,1),this.availability-=r.weight,n.start(r,e)}}async close(){await Promise.all(this.workers.map((e=>e.terminate())))}constructor(e){super(),this.options=e,this.workers=[],this.freeWorkers=[],this.queue=[],this.maxWorkers=0,this.availability=0,this.maxWorkers=this.options.maxWorkers??r.default.cpus().length-1,this.availability=this.maxWorkers,this.workers=[],this.freeWorkers=[],this.queue=[],this.ensureWorkers(),this.on(i,(()=>{this.queue.length>0&&this._exec()}))}}}(jV);var RV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AggregatedPool",{enumerable:!0,get:()=>n});const t=jV;class n{stats(){return[...this.groupedPools.values(),this.defaultPool].reduce(((e,t)=>{if(t){const n=t.stats();e.maxWorkerMemoryUsage=Math.max(e.maxWorkerMemoryUsage,n.maxWorkerMemoryUsage),e.workerRestarts=e.workerRestarts+n.workerRestarts}return e}),{maxWorkerMemoryUsage:0,workerRestarts:0})}async exec(e,t,n,r,a){const i=this.options.groupBy(e),o=this.groupedPools.get(i)??this.defaultPool;if(!o)throw new Error(`No pool found to be able to run ${i} tasks, try adjusting the maxWorkers & concurrency values`);return o.exec(e,t,n,r,a)}async close(){const e=[...this.groupedPools.values(),this.defaultPool].map((e=>e?.close()));return Promise.all(e)}constructor(e){this.options=e,this.groupedPools=new Map;const{maxWorkers:n,maxWorkersByGroup:r,script:a,workerOptions:i}=e;let o=0;for(const[n,s]of r.entries()){const r=new t.WorkerPool({maxWorkers:s,workerOptions:i,script:a,workerIdleMemoryLimit:e.workerIdleMemoryLimit});this.groupedPools.set(n,r),o+=s}if(o>n)throw new Error(`Total maxWorkers (${o}) configured across all groups exceeds concurrency (${n}). Try reducing the maxWorkers, or increasing the --concurrency CLI argument, or separate the tasks to be run`);const s=n-o;s>0&&(this.defaultPool=new t.WorkerPool({maxWorkers:s,workerOptions:i,script:a,workerIdleMemoryLimit:e.workerIdleMemoryLimit})),this.options.logger.verbose(`Workers pools created: ${[...r.entries(),["default",s]].map((([e,t])=>`${e} (${t})`)).join(", ")}`)}}}(RV),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{registerWorker:()=>t.registerWorker,WorkerPool:()=>n.WorkerPool,AggregatedPool:()=>r.AggregatedPool});const t=OV,n=jV,r=RV}(DV);var IV={};!function(e){function t(e){return`${(e/1024/1024).toFixed(2)} MB`}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"formatBytes",{enumerable:!0,get:()=>t})}(IV);var MV={};!function(e){function t(e){const t={aborted:[],failed:[],skipped:[],success:[],running:[],pending:[],queued:[]};for(const n of e){const{status:e}=n;n.target.hidden||t[e].push(n.target.id)}return t}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"categorizeTargetRuns",{enumerable:!0,get:()=>t})}(MV);var LV={},FV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"bufferTransform",{enumerable:!0,get:()=>n});const t=z.default;function n(){const e=[];return{get buffer(){return e.join("")},transform:new t.Transform({transform(t,n,r){e.push(t.toString()),r()}})}}}(FV);var zV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getLageOutputCacheLocation",{enumerable:!0,get:()=>a});const t=Ve,n=r(A.default);function r(e){return e&&e.__esModule?e:{default:e}}function a(e,r){const a=(0,t.getLogsCacheDirectory)(e,r);return n.default.join(a,r+".log")}}(zV),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"WrappedTarget",{enumerable:!0,get:()=>u});const t=FV,n=zV,r=GL,a=s(R.default),i=s(A.default),o=re.default;function s(e){return e&&e.__esModule?e:{default:e}}class u{get abortController(){return this.options.abortController}set abortController(e){this.options.abortController=e}get successful(){return"skipped"===this.status||"success"===this.status}get waiting(){return"pending"===this.status||"queued"===this.status}onQueued(){this.status="queued",this.queueTime=process.hrtime()}onAbort(){this.status="aborted",this.duration=process.hrtime(this.startTime),this.options.logger.info("",{target:this.target,status:"aborted",threadId:this.threadId})}onStart(e){"running"!==this.status&&(this.threadId=e,this.status="running",this.startTime=process.hrtime(),this.options.logger.info("",{target:this.target,status:"running",threadId:e}))}onComplete(){this.status="success",this.duration=process.hrtime(this.startTime),this.options.logger.info("",{target:this.target,status:"success",duration:this.duration,threadId:this.threadId})}onFail(){this.status="failed",this.duration=process.hrtime(this.startTime),this.options.logger.info("",{target:this.target,status:"failed",duration:this.duration,threadId:this.threadId}),!this.options.continueOnError&&this.options.abortController&&this.options.abortController.abort()}onSkipped(e){0!==this.startTime[0]&&0!==this.startTime[1]&&(this.duration=process.hrtime(this.startTime)),this.status="skipped",e&&this.options.logger.info("",{target:this.target,status:"skipped",duration:this.duration,hash:e,threadId:this.threadId})}async getCache(){const{cacheProvider:e,hasher:t}=this.options;let n,r=!1;const{target:a,shouldCache:i,shouldResetCache:o}=this.options;return i&&a.cache&&e&&t?(n=await t.hash(a),n&&!o&&(r=await e.fetch(n,a)),{hash:n,cacheHit:r}):{hash:n,cacheHit:r}}async saveCache(e){const{logger:t,target:n,cacheProvider:r}=this.options;e&&r&&(t.verbose(`hash put ${e}`,{target:n}),await r.put(e,n))}async run(){const{target:e,logger:t,shouldCache:s,abortController:u}=this.options,l=u.signal;if(l.aborted)return this.onStart(0),void this.onAbort();try{const{hash:u,cacheHit:l}=await this.getCache(),c=e.cache&&s&&u;if(l){t.verbose(`hash: ${u}, cache hit? ${l}`,{target:e}),this.onStart(0);const i=(0,n.getLageOutputCacheLocation)(this.options.root,u??"");if(a.default.existsSync(i)){const t=a.default.createReadStream(i,"utf8");return this.options.logger.verbose(">> Replaying cached output",{target:e}),this.options.logger.stream(r.LogLevel.verbose,t,{target:e}),await new Promise((e=>{t.on("close",(()=>{this.onSkipped(u),e()}))}))}return void this.onSkipped(u)}t.verbose(`hash: ${u}, cache hit? ${l}`,{target:e});const p=await this.runInPool();if(c&&u){await this.saveCache(u);const e=(0,n.getLageOutputCacheLocation)(this.options.root,u),t=i.default.dirname(e);await(0,o.mkdir)(t,{recursive:!0});const r=`${p.stdoutBuffer}\n${p.stderrBuffer}`;await(0,o.writeFile)(e,r)}this.onComplete()}catch(n){throw t.error(String(n),{target:e}),l.aborted?this.onAbort():this.onFail(),n}}async runInPool(){const{target:e,logger:n,abortController:a,pool:i}=this.options,o=a.signal;let s,u;const l=(0,t.bufferTransform)(),c=(0,t.bufferTransform)();return this.result=i.exec({target:e},e.weight??1,((t,a,i)=>{const o=t.threadId;this.onStart(o),a.pipe(l.transform),i.pipe(c.transform);const p=n.stream(r.LogLevel.verbose,a,{target:e,threadId:o});s=()=>{p(),a.unpipe(l.transform)};const d=n.stream(r.LogLevel.verbose,i,{target:e,threadId:o});u=()=>{d(),i.unpipe(c.transform)}}),(()=>{s(),u()}),o),await this.result,{stdoutBuffer:l.buffer,stderrBuffer:c.buffer}}toJSON(){return{target:this.target.id,status:this.status}}constructor(e){this.options=e,this.queueTime=[0,0],this.startTime=[0,0],this.duration=[0,0],this.threadId=0,this.status="pending",this.target=e.target}}}(LV);var BV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"TargetRunnerPicker",{enumerable:!0,get:()=>i});const t=a(A.default),n=gI,r=W.default;function a(e){return e&&e.__esModule?e:{default:e}}class i{async pick(e){if(e.id===(0,n.getStartTargetId)())return(await Promise.resolve().then((function(){return sK}))).NoOpRunner;if(e.type||(e.type="npmScript"),this.options[e.type]){const n=this.options[e.type],{script:a,options:i}=n;let o=a;o.startsWith("file://")||(o=(0,r.pathToFileURL)(o).toString());const s=await import(o),u=t.default.basename(a),l=u.replace(t.default.extname(u),"");return new("function"==typeof s[l]?s[l]:"function"==typeof s.default?s.default:"function"==typeof s.default[l]?s.default[l]:s)(i)}throw new Error(`No runner found for target ${e.id}`)}constructor(e){this.options=e}}}(BV),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"SimpleScheduler",{enumerable:!0,get:()=>c});const t=DV,n=IV,r=MV,a=gI,i=LV,o=BV;function s(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function u(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}var l=new WeakSet;class c{getTargetsByPriority(){return(0,a.sortTargetsByPriority)([...this.targetRuns.values()].map((e=>e.target)))}async run(e,t,n=!1){const o=process.hrtime(),{continueOnError:s,logger:u,cacheProvider:l,shouldCache:c,shouldResetCache:p,hasher:d}=this.options;u.verbose("",{schedulerRun:{startTime:o}});const{pool:f,abortController:m}=this,{targets:h}=t;for(const t of h.values()){let r;const o=this.targetRuns.get(t.id);o?(r=o,o.successful&&n?this.markTargetAndDependentsPending(t.id):o.waiting&&n?this.rerunTargets.add(r.target.id):o.successful||this.markTargetAndDependentsPending(t.id)):r=new i.WrappedTarget({target:t,root:e,logger:u,cacheProvider:l,hasher:d,shouldCache:c,shouldResetCache:p,continueOnError:s,abortController:m,pool:f}),t.id===(0,a.getStartTargetId)()&&(r.status="success"),this.targetRuns.set(t.id,r)}let g,y,v="failed",b=[0,0];try{await this.scheduleReadyTargets()}catch(e){g=e instanceof Error?e.message:String(e)}finally{b=process.hrtime(o),y=(0,r.categorizeTargetRuns)(this.targetRuns.values()),y.failed.length+y.aborted.length+y.pending.length+y.running.length===0&&(v="success")}const w=f.stats();return{targetRunByStatus:y,targetRuns:this.targetRuns,duration:b,startTime:o,results:v,error:g,workerRestarts:w.workerRestarts,maxWorkerMemoryUsage:w.maxWorkerMemoryUsage}}markTargetAndDependentsPending(e){const t=[e];for(;t.length>0;){const e=t.shift(),n=this.targetRuns.get(e);if("pending"!==n.status){n.status="pending",this.rerunTargets.add(n.target.id);const e=n.target.dependents;for(const n of e)t.push(n)}}}getReadyTargets(){const e=new Set;for(const t of this.getTargetsByPriority()){if(t.id===(0,a.getStartTargetId)())continue;const n=this.targetRuns.get(t.id);if("pending"===n.status){n.target.dependencies.every((e=>this.targetRuns.get(e).successful||e===(0,a.getStartTargetId)()))&&e.add(n)}}return[...e]}isAllDone(){for(const e of this.targetRuns.values())if("skipped"!==e.status&&"success"!==e.status&&e.target.id!==(0,a.getStartTargetId)())return!1;return!0}async scheduleReadyTargets(){if(this.isAllDone()||this.abortSignal.aborted)return Promise.resolve();this.options.logger.silly(`Max Worker Memory Usage: ${(0,n.formatBytes)(this.pool.stats().maxWorkerMemoryUsage)}`);const e=[];for(const t of this.getReadyTargets()){const n=s(this,l,p).call(this,t);e.push(n)}await Promise.all(e)}logProgress(){const e=(0,r.categorizeTargetRuns)(this.targetRuns.values()),t=[...this.targetRuns.values()].filter((e=>!e.target.hidden)).length;this.options.logger.verbose("",{poolStats:this.pool.stats(),progress:{waiting:e.pending.length+e.queued.length,completed:e.aborted.length+e.failed.length+e.skipped.length+e.success.length,total:t}})}async cleanup(){this.options.logger.silly(`Max Worker Memory Usage: ${(0,n.formatBytes)(this.pool.stats().maxWorkerMemoryUsage)}`),await this.pool.close()}abort(){this.abortController.abort()}constructor(e){u(this,l),this.options=e,this.targetRuns=new Map,this.rerunTargets=new Set,this.abortController=new AbortController,this.abortSignal=this.abortController.signal,this.runPromise=Promise.resolve(),this.pool=e.pool??new t.AggregatedPool({logger:e.logger,maxWorkersByGroup:e.maxWorkersPerTask,groupBy:({target:e})=>e.task,maxWorkers:e.concurrency,script:require.resolve("./workers/targetWorker"),workerOptions:{stdout:!0,stderr:!0,workerData:{runners:e.runners}},workerIdleMemoryLimit:e.workerIdleMemoryLimit}),this.runnerPicker=new o.TargetRunnerPicker(e.runners)}}async function p(e){let t;if(e.result&&e.successful&&!this.rerunTargets.has(e.target.id))await e.result;else{do{this.rerunTargets.delete(e.target.id),e.onQueued();try{let t=!0;try{const n=await this.runnerPicker.pick(e.target);t=await n.shouldRun(e.target)}catch(e){}t?await e.run():e.onSkipped()}catch(e){t=e}}while(this.rerunTargets.has(e.target.id));if(t&&!this.options?.continueOnError&&!this.options?.continueOnError)throw t}this.logProgress(),await this.scheduleReadyTargets()}}(CV);var UV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"WorkerRunner",{enumerable:!0,get:()=>n});const t=W.default;class n{async shouldRun(e){const t=await this.getScriptModule(e);return"function"!=typeof t.shouldRun||await t.shouldRun(e)}async run(e){const{target:t,weight:n,abortSignal:r}=e,{taskArgs:a}=this.options,i=await this.getScriptModule(t),o="function"==typeof i.run?i.run:"function"==typeof i.default?i.default:i;if("function"!=typeof o)throw new Error("WorkerRunner: worker script must export a function; you likely need to use `module.exports = function() {...}`");await o({target:t,weight:n,taskArgs:a,abortSignal:r})}async getScriptModule(e){const n=e.options?.worker??e.options?.script;if(!n)throw new Error('WorkerRunner: "script" configuration is required - e.g. { type: "worker", script: "./worker.js" }');let r=n;return r.startsWith("file://")||(r=(0,t.pathToFileURL)(r).toString()),await import(r)}constructor(e){this.options=e}}n.gracefulKillTimeout=2500}(UV),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{NpmScriptRunner:()=>t.NpmScriptRunner,SimpleScheduler:()=>n.SimpleScheduler,TargetRunnerPicker:()=>r.TargetRunnerPicker,WorkerRunner:()=>a.WorkerRunner});const t=EV,n=CV,r=BV,a=UV}(SV);var qV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getConcurrency",{enumerable:!0,get:()=>r});const t=n(M.default);function n(e){return e&&e.__esModule?e:{default:e}}function r(e,n){return e||n||t.default.cpus().length-1}}(qV);var $V={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NoTargetFoundError",{enumerable:!0,get:()=>t});const t=new Error("No target found")}($V),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"runAction",{enumerable:!0,get:()=>h});const t=$e,n=hI,r=DI,a=XL,i=JL,o=NI,s=eF,u=Uj,l=tF,c=SV,p=m(GL),d=qV,f=$V;function m(e){return e&&e.__esModule?e:{default:e}}async function h(e,m){const h=process.cwd(),g=await(0,o.getConfig)(h),y=(0,d.getConcurrency)(e.concurrency,g.concurrency),v=e.allowNoTargetRuns||g.allowNoTargetRuns,b=(0,p.default)();(0,l.initializeReporters)(b,{...e,concurrency:y});const w=(0,u.getWorkspaceRoot)(process.cwd()),_=(0,u.getPackageInfos)(w),{tasks:x,taskArgs:k}=(0,r.filterArgsForTasks)(m.args),S=(0,n.createTargetGraph)({logger:b,root:w,dependencies:e.dependencies,dependents:e.dependents&&!e.to,ignore:e.ignore.concat(g.ignore),pipeline:g.pipeline,repoWideChanges:g.repoWideChanges,scope:(e.scope??[]).concat(e.to??[]),since:e.since,outputs:g.cacheOptions.outputGlob,tasks:x,packageInfos:_});!function(e,t){const n=Array.from(e.targets.values()).filter((e=>!e.hidden));if(0===n.length&&!t)throw f.NoTargetFoundError}(S,v);const{cacheProvider:E,hasher:C}=(0,t.createCache)({root:w,logger:b,cacheOptions:g.cacheOptions,skipLocalCache:e.skipLocalCache,cliArgs:k});b.verbose(`Running with ${y} workers`);const D=(0,a.filterPipelineDefinitions)(S.targets.values(),g.pipeline),O=(0,s.getMaxWorkersPerTaskFromOptions)(e.maxWorkersPerTask),N=new c.SimpleScheduler({logger:b,concurrency:y,cacheProvider:E,hasher:C,continueOnError:e.continue,shouldCache:e.cache,shouldResetCache:e.resetCache,maxWorkersPerTask:new Map([...(0,s.getMaxWorkersPerTask)(D,y),...O]),runners:{npmScript:{script:require.resolve("./runners/NpmScriptRunner.js"),options:{nodeArg:e.nodeArg,taskArgs:k,npmCmd:(0,i.findNpmClient)(g.npmClient)}},worker:{script:require.resolve("./runners/WorkerRunner.js"),options:{taskArgs:k}},...g.runners},workerIdleMemoryLimit:g.workerIdleMemoryLimit}),j=await N.run(w,S);await N.cleanup(),function(e,t){"success"!==e.results&&(process.exitCode=1);for(const n of t)n.summarize(e)}(j,b.reporters)}}(QL);var VV={},HV={},WV={};const GV=R.default,{Readable:KV}=z.default,YV=A.default,{promisify:QV}=L.default,XV=e_.exports,JV=QV(GV.readdir),ZV=QV(GV.stat),eH=QV(GV.lstat),tH=QV(GV.realpath),nH="READDIRP_RECURSIVE_ERROR",rH=new Set(["ENOENT","EPERM","EACCES","ELOOP",nH]),aH="files",iH="directories",oH="files_directories",sH="all",uH=[aH,iH,oH,sH],[lH,cH]=process.versions.node.split(".").slice(0,2).map((e=>Number.parseInt(e,10))),pH="win32"===process.platform&&(lH>10||10===lH&&cH>=5),dH=e=>{if(void 0!==e){if("function"==typeof e)return e;if("string"==typeof e){const t=XV(e.trim());return e=>t(e.basename)}if(Array.isArray(e)){const t=[],n=[];for(const r of e){const e=r.trim();"!"===e.charAt(0)?n.push(XV(e.slice(1))):t.push(XV(e))}return n.length>0?t.length>0?e=>t.some((t=>t(e.basename)))&&!n.some((t=>t(e.basename))):e=>!n.some((t=>t(e.basename))):e=>t.some((t=>t(e.basename)))}}};class fH extends KV{static get defaultOptions(){return{root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:aH,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark||4096});const t={...fH.defaultOptions,...e},{root:n,type:r}=t;this._fileFilter=dH(t.fileFilter),this._directoryFilter=dH(t.directoryFilter);const a=t.lstat?eH:ZV;this._stat=pH?e=>a(e,{bigint:!0}):a,this._maxDepth=t.depth,this._wantsDir=[iH,oH,sH].includes(r),this._wantsFile=[aH,oH,sH].includes(r),this._wantsEverything=r===sH,this._root=YV.resolve(n),this._isDirent="Dirent"in GV&&!t.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(n,1)],this.reading=!1,this.parent=void 0}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){const{path:t,depth:n,files:r=[]}=this.parent||{};if(r.length>0){const a=r.splice(0,e).map((e=>this._formatEntry(e,t)));for(const t of await Promise.all(a)){if(this.destroyed)return;const r=await this._getEntryType(t);"directory"===r&&this._directoryFilter(t)?(n<=this._maxDepth&&this.parents.push(this._exploreDir(t.fullPath,n+1)),this._wantsDir&&(this.push(t),e--)):("file"===r||this._includeAsFile(t))&&this._fileFilter(t)&&this._wantsFile&&(this.push(t),e--)}}else{const e=this.parents.pop();if(!e){this.push(null);break}if(this.parent=await e,this.destroyed)return}}}catch(e){this.destroy(e)}finally{this.reading=!1}}}async _exploreDir(e,t){let n;try{n=await JV(e,this._rdOptions)}catch(e){this._onError(e)}return{files:n,depth:t,path:e}}async _formatEntry(e,t){let n;try{const r=this._isDirent?e.name:e,a=YV.resolve(YV.join(t,r));n={path:YV.relative(this._root,a),fullPath:a,basename:r},n[this._statsProp]=this._isDirent?e:await this._stat(a)}catch(e){this._onError(e)}return n}_onError(e){(e=>rH.has(e.code))(e)&&!this.destroyed?this.emit("warn",e):this.destroy(e)}async _getEntryType(e){const t=e&&e[this._statsProp];if(t){if(t.isFile())return"file";if(t.isDirectory())return"directory";if(t&&t.isSymbolicLink()){const t=e.fullPath;try{const e=await tH(t),n=await eH(e);if(n.isFile())return"file";if(n.isDirectory()){const n=e.length;if(t.startsWith(e)&&t.substr(n,1)===YV.sep){const n=new Error(`Circular symlink detected: "${t}" points to "${e}"`);return n.code=nH,this._onError(n)}return"directory"}}catch(e){this._onError(e)}}}}_includeAsFile(e){const t=e&&e[this._statsProp];return t&&this._wantsEverything&&!t.isDirectory()}}const mH=(e,t={})=>{let n=t.entryType||t.type;if("both"===n&&(n=oH),n&&(t.type=n),!e)throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");if("string"!=typeof e)throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(n&&!uH.includes(n))throw new Error(`readdirp: Invalid type passed. Use one of ${uH.join(", ")}`);return t.root=e,new fH(t)};mH.promise=(e,t={})=>new Promise(((n,r)=>{const a=[];mH(e,t).on("data",(e=>a.push(e))).on("end",(()=>n(a))).on("error",(e=>r(e)))})),mH.ReaddirpStream=fH,mH.default=mH;var hH=mH,gH={exports:{}},yH=function(e,t){if("string"!=typeof e)throw new TypeError("expected path to be a string");if("\\"===e||"/"===e)return"/";var n=e.length;if(n<=1)return e;var r="";if(n>4&&"\\"===e[3]){var a=e[2];"?"!==a&&"."!==a||"\\\\"!==e.slice(0,2)||(e=e.slice(2),r="//")}var i=e.split(/[/\\]+/);return!1!==t&&""===i[i.length-1]&&i.pop(),r+i.join("/")};Object.defineProperty(gH.exports,"__esModule",{value:!0});const vH=e_.exports,bH=yH,wH={returnIndex:!1},_H=(e,t,n,r)=>{const a=Array.isArray(n),i=a?n[0]:n;if(!a&&"string"!=typeof i)throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(i));const o=bH(i,!1);for(let e=0;e<t.length;e++){if((0,t[e])(o))return!!r&&-1}const s=a&&[o].concat(n.slice(1));for(let t=0;t<e.length;t++){const n=e[t];if(a?n(...s):n(o))return!r||t}return!!r&&-1},xH=(e,t,n=wH)=>{if(null==e)throw new TypeError("anymatch: specify first argument");const r="boolean"==typeof n?{returnIndex:n}:n,a=r.returnIndex||!1,i=(o=e,Array.isArray(o)?o:[o]);var o;const s=i.filter((e=>"string"==typeof e&&"!"===e.charAt(0))).map((e=>e.slice(1))).map((e=>vH(e,r))),u=i.filter((e=>"string"!=typeof e||"string"==typeof e&&"!"!==e.charAt(0))).map((e=>((e,t)=>{if("function"==typeof e)return e;if("string"==typeof e){const n=vH(e,t);return t=>e===t||n(t)}return e instanceof RegExp?t=>e.test(t):e=>!1})(e,r)));return null==t?(e,t=!1)=>_H(u,s,e,"boolean"==typeof t&&t):_H(u,s,t,a)};xH.default=xH,gH.exports=xH;var kH={exports:{}};kH.exports=["3dm","3ds","3g2","3gp","7z","a","aac","adp","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"];const SH=A.default,EH=new Set(kH.exports);var CH={};!function(e){const{sep:t}=A.default,{platform:n}=process,r=M.default;e.EV_ALL="all",e.EV_READY="ready",e.EV_ADD="add",e.EV_CHANGE="change",e.EV_ADD_DIR="addDir",e.EV_UNLINK="unlink",e.EV_UNLINK_DIR="unlinkDir",e.EV_RAW="raw",e.EV_ERROR="error",e.STR_DATA="data",e.STR_END="end",e.STR_CLOSE="close",e.FSEVENT_CREATED="created",e.FSEVENT_MODIFIED="modified",e.FSEVENT_DELETED="deleted",e.FSEVENT_MOVED="moved",e.FSEVENT_CLONED="cloned",e.FSEVENT_UNKNOWN="unknown",e.FSEVENT_TYPE_FILE="file",e.FSEVENT_TYPE_DIRECTORY="directory",e.FSEVENT_TYPE_SYMLINK="symlink",e.KEY_LISTENERS="listeners",e.KEY_ERR="errHandlers",e.KEY_RAW="rawEmitters",e.HANDLER_KEYS=[e.KEY_LISTENERS,e.KEY_ERR,e.KEY_RAW],e.DOT_SLASH=`.${t}`,e.BACK_SLASH_RE=/\\/g,e.DOUBLE_SLASH_RE=/\/\//,e.SLASH_OR_BACK_SLASH_RE=/[/\\]/,e.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,e.REPLACER_RE=/^\.[/\\]/,e.SLASH="/",e.SLASH_SLASH="//",e.BRACE_START="{",e.BANG="!",e.ONE_DOT=".",e.TWO_DOTS="..",e.STAR="*",e.GLOBSTAR="**",e.ROOT_GLOBSTAR="/**/*",e.SLASH_GLOBSTAR="/**",e.DIR_SUFFIX="Dir",e.ANYMATCH_OPTS={dot:!0},e.STRING_TYPE="string",e.FUNCTION_TYPE="function",e.EMPTY_STR="",e.EMPTY_FN=()=>{},e.IDENTITY_FN=e=>e,e.isWindows="win32"===n,e.isMacos="darwin"===n,e.isLinux="linux"===n,e.isIBMi="OS400"===r.type()}(CH);const DH=R.default,OH=A.default,{promisify:NH}=L.default,jH=e=>EH.has(SH.extname(e).slice(1).toLowerCase()),{isWindows:PH,isLinux:TH,EMPTY_FN:AH,EMPTY_STR:RH,KEY_LISTENERS:IH,KEY_ERR:MH,KEY_RAW:LH,HANDLER_KEYS:FH,EV_CHANGE:zH,EV_ADD:BH,EV_ADD_DIR:UH,EV_ERROR:qH,STR_DATA:$H,STR_END:VH,BRACE_START:HH,STAR:WH}=CH,GH=NH(DH.open),KH=NH(DH.stat),YH=NH(DH.lstat),QH=NH(DH.close),XH=NH(DH.realpath),JH={lstat:YH,stat:KH},ZH=(e,t)=>{e instanceof Set?e.forEach(t):t(e)},eW=(e,t,n)=>{let r=e[t];r instanceof Set||(e[t]=r=new Set([r])),r.add(n)},tW=(e,t,n)=>{const r=e[t];r instanceof Set?r.delete(n):r===n&&delete e[t]},nW=e=>e instanceof Set?0===e.size:!e,rW=new Map;function aW(e,t,n,r,a){const i=(t,r)=>{n(e),a(t,r,{watchedPath:e}),r&&e!==r&&iW(OH.resolve(e,r),IH,OH.join(e,r))};try{return DH.watch(e,t,i)}catch(e){r(e)}}const iW=(e,t,n,r,a)=>{const i=rW.get(e);i&&ZH(i[t],(e=>{e(n,r,a)}))},oW=(e,t,n,r)=>{const{listener:a,errHandler:i,rawEmitter:o}=r;let s,u=rW.get(t);if(!n.persistent)return s=aW(e,n,a,i,o),s.close.bind(s);if(u)eW(u,IH,a),eW(u,MH,i),eW(u,LH,o);else{if(s=aW(e,n,iW.bind(null,t,IH),i,iW.bind(null,t,LH)),!s)return;s.on(qH,(async n=>{const r=iW.bind(null,t,MH);if(u.watcherUnusable=!0,PH&&"EPERM"===n.code)try{const t=await GH(e,"r");await QH(t),r(n)}catch(e){}else r(n)})),u={listeners:a,errHandlers:i,rawEmitters:o,watcher:s},rW.set(t,u)}return()=>{tW(u,IH,a),tW(u,MH,i),tW(u,LH,o),nW(u.listeners)&&(u.watcher.close(),rW.delete(t),FH.forEach((e=>t=>{const n=e[t];n instanceof Set?n.clear():delete e[t]})(u)),u.watcher=void 0,Object.freeze(u))}},sW=new Map;var uW=class{constructor(e){this.fsw=e,this._boundHandleError=t=>e._handleError(t)}_watchWithNodeFs(e,t){const n=this.fsw.options,r=OH.dirname(e),a=OH.basename(e);this.fsw._getWatchedDir(r).add(a);const i=OH.resolve(e),o={persistent:n.persistent};let s;return t||(t=AH),n.usePolling?(o.interval=n.enableBinaryInterval&&jH(a)?n.binaryInterval:n.interval,s=((e,t,n,r)=>{const{listener:a,rawEmitter:i}=r;let o=sW.get(t);const s=o&&o.options;return s&&(s.persistent<n.persistent||s.interval>n.interval)&&(o.listeners,o.rawEmitters,DH.unwatchFile(t),o=void 0),o?(eW(o,IH,a),eW(o,LH,i)):(o={listeners:a,rawEmitters:i,options:n,watcher:DH.watchFile(t,n,((n,r)=>{ZH(o.rawEmitters,(e=>{e(zH,t,{curr:n,prev:r})}));const a=n.mtimeMs;(n.size!==r.size||a>r.mtimeMs||0===a)&&ZH(o.listeners,(t=>t(e,n)))}))},sW.set(t,o)),()=>{tW(o,IH,a),tW(o,LH,i),nW(o.listeners)&&(sW.delete(t),DH.unwatchFile(t),o.options=o.watcher=void 0,Object.freeze(o))}})(e,i,o,{listener:t,rawEmitter:this.fsw._emitRaw})):s=oW(e,i,o,{listener:t,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),s}_handleFile(e,t,n){if(this.fsw.closed)return;const r=OH.dirname(e),a=OH.basename(e),i=this.fsw._getWatchedDir(r);let o=t;if(i.has(a))return;const s=async(t,n)=>{if(this.fsw._throttle("watch",e,5))if(n&&0!==n.mtimeMs){if(i.has(a)){const t=n.atimeMs,r=n.mtimeMs;(!t||t<=r||r!==o.mtimeMs)&&this.fsw._emit(zH,e,n),o=n}}else try{const n=await KH(e);if(this.fsw.closed)return;const r=n.atimeMs,a=n.mtimeMs;(!r||r<=a||a!==o.mtimeMs)&&this.fsw._emit(zH,e,n),TH&&o.ino!==n.ino?(this.fsw._closeFile(t),o=n,this.fsw._addPathCloser(t,this._watchWithNodeFs(e,s))):o=n}catch(e){this.fsw._remove(r,a)}},u=this._watchWithNodeFs(e,s);if((!n||!this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(BH,e,0))return;this.fsw._emit(BH,e,t)}return u}async _handleSymlink(e,t,n,r){if(this.fsw.closed)return;const a=e.fullPath,i=this.fsw._getWatchedDir(t);if(!this.fsw.options.followSymlinks){let t;this.fsw._incrReadyCount();try{t=await XH(n)}catch(e){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;return i.has(r)?this.fsw._symlinkPaths.get(a)!==t&&(this.fsw._symlinkPaths.set(a,t),this.fsw._emit(zH,n,e.stats)):(i.add(r),this.fsw._symlinkPaths.set(a,t),this.fsw._emit(BH,n,e.stats)),this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(a))return!0;this.fsw._symlinkPaths.set(a,!0)}_handleRead(e,t,n,r,a,i,o){if(e=OH.join(e,RH),!n.hasGlob&&!(o=this.fsw._throttle("readdir",e,1e3)))return;const s=this.fsw._getWatchedDir(n.path),u=new Set;let l=this.fsw._readdirp(e,{fileFilter:e=>n.filterPath(e),directoryFilter:e=>n.filterDir(e),depth:0}).on($H,(async o=>{if(this.fsw.closed)return void(l=void 0);const c=o.path;let p=OH.join(e,c);u.add(c),o.stats.isSymbolicLink()&&await this._handleSymlink(o,e,p,c)||(this.fsw.closed?l=void 0:c!==r&&(r||s.has(c))||(this.fsw._incrReadyCount(),p=OH.join(a,OH.relative(a,p)),this._addToNodeFs(p,t,n,i+1)))})).on(qH,this._boundHandleError);return new Promise((t=>l.once(VH,(()=>{if(this.fsw.closed)return void(l=void 0);const c=!!o&&o.clear();t(),s.getChildren().filter((t=>t!==e&&!u.has(t)&&(!n.hasGlob||n.filterPath({fullPath:OH.resolve(e,t)})))).forEach((t=>{this.fsw._remove(e,t)})),l=void 0,c&&this._handleRead(e,!1,n,r,a,i,o)}))))}async _handleDir(e,t,n,r,a,i,o){const s=this.fsw._getWatchedDir(OH.dirname(e)),u=s.has(OH.basename(e));let l,c;n&&this.fsw.options.ignoreInitial||a||u||i.hasGlob&&!i.globFilter(e)||this.fsw._emit(UH,e,t),s.add(OH.basename(e)),this.fsw._getWatchedDir(e);const p=this.fsw.options.depth;if((null==p||r<=p)&&!this.fsw._symlinkPaths.has(o)){if(!a&&(await this._handleRead(e,n,i,a,e,r,l),this.fsw.closed))return;c=this._watchWithNodeFs(e,((t,n)=>{n&&0===n.mtimeMs||this._handleRead(t,!1,i,a,e,r,l)}))}return c}async _addToNodeFs(e,t,n,r,a){const i=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return i(),!1;const o=this.fsw._getWatchHelpers(e,r);!o.hasGlob&&n&&(o.hasGlob=n.hasGlob,o.globFilter=n.globFilter,o.filterPath=e=>n.filterPath(e),o.filterDir=e=>n.filterDir(e));try{const n=await JH[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,n))return i(),!1;const s=this.fsw.options.followSymlinks&&!e.includes(WH)&&!e.includes(HH);let u;if(n.isDirectory()){const i=OH.resolve(e),l=s?await XH(e):e;if(this.fsw.closed)return;if(u=await this._handleDir(o.watchPath,n,t,r,a,o,l),this.fsw.closed)return;i!==l&&void 0!==l&&this.fsw._symlinkPaths.set(i,l)}else if(n.isSymbolicLink()){const a=s?await XH(e):e;if(this.fsw.closed)return;const i=OH.dirname(o.watchPath);if(this.fsw._getWatchedDir(i).add(o.watchPath),this.fsw._emit(BH,o.watchPath,n),u=await this._handleDir(i,n,t,r,e,o,a),this.fsw.closed)return;void 0!==a&&this.fsw._symlinkPaths.set(OH.resolve(e),a)}else u=this._handleFile(o.watchPath,n,t);return i(),this.fsw._addPathCloser(e,u),!1}catch(t){if(this.fsw._handleError(t))return i(),e}}},lW={exports:{}};const cW=R.default,pW=A.default,{promisify:dW}=L.default;let fW;try{fW=require("fsevents")}catch(QO){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(QO)}if(fW){const e=process.version.match(/v(\d+)\.(\d+)/);if(e&&e[1]&&e[2]){const t=Number.parseInt(e[1],10),n=Number.parseInt(e[2],10);8===t&&n<16&&(fW=void 0)}}const{EV_ADD:mW,EV_CHANGE:hW,EV_ADD_DIR:gW,EV_UNLINK:yW,EV_ERROR:vW,STR_DATA:bW,STR_END:wW,FSEVENT_CREATED:_W,FSEVENT_MODIFIED:xW,FSEVENT_DELETED:kW,FSEVENT_MOVED:SW,FSEVENT_UNKNOWN:EW,FSEVENT_TYPE_FILE:CW,FSEVENT_TYPE_DIRECTORY:DW,FSEVENT_TYPE_SYMLINK:OW,ROOT_GLOBSTAR:NW,DIR_SUFFIX:jW,DOT_SLASH:PW,FUNCTION_TYPE:TW,EMPTY_FN:AW,IDENTITY_FN:RW}=CH,IW=dW(cW.stat),MW=dW(cW.lstat),LW=dW(cW.realpath),FW={stat:IW,lstat:MW},zW=new Map,BW=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),UW=(e,t)=>({stop:fW.watch(e,t)});const qW=e=>{let t=0;for(const n of zW.keys())if(0===n.indexOf(e)&&(t++,t>=10))return!0;return!1},$W=(e,t)=>{let n=0;for(;!e.indexOf(t)&&(e=pW.dirname(e))!==t;)n++;return n},VW=(e,t)=>e.type===DW&&t.isDirectory()||e.type===OW&&t.isSymbolicLink()||e.type===CW&&t.isFile();lW.exports=class{constructor(e){this.fsw=e}checkIgnored(e,t){const n=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,t))return n.add(e),t&&t.isDirectory()&&n.add(e+NW),!0;n.delete(e),n.delete(e+NW)}addOrChange(e,t,n,r,a,i,o,s){const u=a.has(i)?hW:mW;this.handleEvent(u,e,t,n,r,a,i,o,s)}async checkExists(e,t,n,r,a,i,o,s){try{const u=await IW(e);if(this.fsw.closed)return;VW(o,u)?this.addOrChange(e,t,n,r,a,i,o,s):this.handleEvent(yW,e,t,n,r,a,i,o,s)}catch(u){"EACCES"===u.code?this.addOrChange(e,t,n,r,a,i,o,s):this.handleEvent(yW,e,t,n,r,a,i,o,s)}}handleEvent(e,t,n,r,a,i,o,s,u){if(!this.fsw.closed&&!this.checkIgnored(t))if(e===yW){const e=s.type===DW;(e||i.has(o))&&this.fsw._remove(a,o,e)}else{if(e===mW){if(s.type===DW&&this.fsw._getWatchedDir(t),s.type===OW&&u.followSymlinks){const e=void 0===u.depth?void 0:$W(n,r)+1;return this._addToFsEvents(t,!1,!0,e)}this.fsw._getWatchedDir(a).add(o)}const i=s.type===DW?e+jW:e;this.fsw._emit(i,t),i===gW&&this._addToFsEvents(t,!1,!0)}}_watchWithFsEvents(e,t,n,r){if(this.fsw.closed||this.fsw._isIgnored(e))return;const a=this.fsw.options,i=function(e,t,n,r){let a=pW.extname(t)?pW.dirname(t):t;const i=pW.dirname(a);let o=zW.get(a);qW(i)&&(a=i);const s=pW.resolve(e),u=s!==t,l=(e,r,a)=>{u&&(e=e.replace(t,s)),e!==s&&e.indexOf(s+pW.sep)||n(e,r,a)};let c=!1;for(const e of zW.keys())if(0===t.indexOf(pW.resolve(e)+pW.sep)){a=e,o=zW.get(a),c=!0;break}return o||c?o.listeners.add(l):(o={listeners:new Set([l]),rawEmitter:r,watcher:UW(a,((e,t)=>{if(!o.listeners.size)return;const n=fW.getInfo(e,t);o.listeners.forEach((r=>{r(e,t,n)})),o.rawEmitter(n.event,e,n)}))},zW.set(a,o)),()=>{const e=o.listeners;if(e.delete(l),!e.size&&(zW.delete(a),o.watcher))return o.watcher.stop().then((()=>{o.rawEmitter=o.watcher=void 0,Object.freeze(o)}))}}(e,t,(async(i,o,s)=>{if(this.fsw.closed)return;if(void 0!==a.depth&&$W(i,t)>a.depth)return;const u=n(pW.join(e,pW.relative(e,i)));if(r&&!r(u))return;const l=pW.dirname(u),c=pW.basename(u),p=this.fsw._getWatchedDir(s.type===DW?u:l);if(BW.has(o)||s.event===EW)if(typeof a.ignored===TW){let e;try{e=await IW(u)}catch(e){}if(this.fsw.closed)return;if(this.checkIgnored(u,e))return;VW(s,e)?this.addOrChange(u,i,t,l,p,c,s,a):this.handleEvent(yW,u,i,t,l,p,c,s,a)}else this.checkExists(u,i,t,l,p,c,s,a);else switch(s.event){case _W:case xW:return this.addOrChange(u,i,t,l,p,c,s,a);case kW:case SW:return this.checkExists(u,i,t,l,p,c,s,a)}}),this.fsw._emitRaw);return this.fsw._emitReady(),i}async _handleFsEventsSymlink(e,t,n,r){if(!this.fsw.closed&&!this.fsw._symlinkPaths.has(t)){this.fsw._symlinkPaths.set(t,!0),this.fsw._incrReadyCount();try{const t=await LW(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(t))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(t||e,(r=>{let a=e;return t&&t!==PW?a=r.replace(t,e):r!==PW&&(a=pW.join(e,r)),n(a)}),!1,r)}catch(e){if(this.fsw._handleError(e))return this.fsw._emitReady()}}}emitAdd(e,t,n,r,a){const i=n(e),o=t.isDirectory(),s=this.fsw._getWatchedDir(pW.dirname(i)),u=pW.basename(i);o&&this.fsw._getWatchedDir(i),s.has(u)||(s.add(u),r.ignoreInitial&&!0!==a||this.fsw._emit(o?gW:mW,i,t))}initWatch(e,t,n,r){if(this.fsw.closed)return;const a=this._watchWithFsEvents(n.watchPath,pW.resolve(e||n.watchPath),r,n.globFilter);this.fsw._addPathCloser(t,a)}async _addToFsEvents(e,t,n,r){if(this.fsw.closed)return;const a=this.fsw.options,i=typeof t===TW?t:RW,o=this.fsw._getWatchHelpers(e);try{const t=await FW[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,t))throw null;if(t.isDirectory()){if(o.globFilter||this.emitAdd(i(e),t,i,a,n),r&&r>a.depth)return;this.fsw._readdirp(o.watchPath,{fileFilter:e=>o.filterPath(e),directoryFilter:e=>o.filterDir(e),...(s=a.depth-(r||0),isNaN(s)?{}:{depth:s})}).on(bW,(e=>{if(this.fsw.closed)return;if(e.stats.isDirectory()&&!o.filterPath(e))return;const t=pW.join(o.watchPath,e.path),{fullPath:r}=e;if(o.followSymlinks&&e.stats.isSymbolicLink()){const e=void 0===a.depth?void 0:$W(t,pW.resolve(o.watchPath))+1;this._handleFsEventsSymlink(t,r,i,e)}else this.emitAdd(t,e.stats,i,a,n)})).on(vW,AW).on(wW,(()=>{this.fsw._emitReady()}))}else this.emitAdd(o.watchPath,t,i,a,n),this.fsw._emitReady()}catch(e){e&&!this.fsw._handleError(e)||(this.fsw._emitReady(),this.fsw._emitReady())}var s;if(a.persistent&&!0!==n)if(typeof t===TW)this.initWatch(void 0,e,o,i);else{let t;try{t=await LW(o.watchPath)}catch(e){}this.initWatch(t,e,o,i)}}},lW.exports.canUse=()=>fW&&zW.size<128;const{EventEmitter:HW}=P.default,WW=R.default,GW=A.default,{promisify:KW}=L.default,YW=hH,QW=gH.exports.default,XW=Hb,JW=Lb,ZW=Zw,eG=yH,tG=uW,nG=lW.exports,{EV_ALL:rG,EV_READY:aG,EV_ADD:iG,EV_CHANGE:oG,EV_UNLINK:sG,EV_ADD_DIR:uG,EV_UNLINK_DIR:lG,EV_RAW:cG,EV_ERROR:pG,STR_CLOSE:dG,STR_END:fG,BACK_SLASH_RE:mG,DOUBLE_SLASH_RE:hG,SLASH_OR_BACK_SLASH_RE:gG,DOT_RE:yG,REPLACER_RE:vG,SLASH:bG,SLASH_SLASH:wG,BRACE_START:_G,BANG:xG,ONE_DOT:kG,TWO_DOTS:SG,GLOBSTAR:EG,SLASH_GLOBSTAR:CG,ANYMATCH_OPTS:DG,STRING_TYPE:OG,FUNCTION_TYPE:NG,EMPTY_STR:jG,EMPTY_FN:PG,isWindows:TG,isMacos:AG,isIBMi:RG}=CH,IG=KW(WW.stat),MG=KW(WW.readdir),LG=(e=[])=>Array.isArray(e)?e:[e],FG=(e,t=[])=>(e.forEach((e=>{Array.isArray(e)?FG(e,t):t.push(e)})),t),zG=e=>{const t=FG(LG(e));if(!t.every((e=>typeof e===OG)))throw new TypeError(`Non-string provided as watch path: ${t}`);return t.map(UG)},BG=e=>{let t=e.replace(mG,bG),n=!1;for(t.startsWith(wG)&&(n=!0);t.match(hG);)t=t.replace(hG,bG);return n&&(t=bG+t),t},UG=e=>BG(GW.normalize(BG(e))),qG=(e=jG)=>t=>typeof t!==OG?t:UG(GW.isAbsolute(t)?t:GW.join(e,t)),$G=(e,t)=>void 0===e[t];class VG{constructor(e,t){this.path=e,this._removeWatcher=t,this.items=new Set}add(e){const{items:t}=this;t&&e!==kG&&e!==SG&&t.add(e)}async remove(e){const{items:t}=this;if(!t)return;if(t.delete(e),t.size>0)return;const n=this.path;try{await MG(n)}catch(e){this._removeWatcher&&this._removeWatcher(GW.dirname(n),GW.basename(n))}}has(e){const{items:t}=this;if(t)return t.has(e)}getChildren(){const{items:e}=this;if(e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}}class HG{constructor(e,t,n,r){this.fsw=r,this.path=e=e.replace(vG,jG),this.watchPath=t,this.fullWatchPath=GW.resolve(t),this.hasGlob=t!==e,e===jG&&(this.hasGlob=!1),this.globSymlink=!(!this.hasGlob||!n)&&void 0,this.globFilter=!!this.hasGlob&&QW(e,void 0,DG),this.dirParts=this.getDirParts(e),this.dirParts.forEach((e=>{e.length>1&&e.pop()})),this.followSymlinks=n,this.statMethod=n?"stat":"lstat"}checkGlobSymlink(e){return void 0===this.globSymlink&&(this.globSymlink=e.fullParentDir!==this.fullWatchPath&&{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return GW.join(this.watchPath,GW.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){const{stats:t}=e;if(t&&t.isSymbolicLink())return this.filterDir(e);const n=this.entryPath(e);return(!this.hasGlob||typeof this.globFilter!==NG||this.globFilter(n))&&this.fsw._isntIgnored(n,t)&&this.fsw._hasReadPermissions(t)}getDirParts(e){if(!this.hasGlob)return[];const t=[];return(e.includes(_G)?ZW.expand(e):[e]).forEach((e=>{t.push(GW.relative(this.watchPath,e).split(gG))})),t}filterDir(e){if(this.hasGlob){const t=this.getDirParts(this.checkGlobSymlink(e));let n=!1;this.unmatchedGlob=!this.dirParts.some((e=>e.every(((e,r)=>(e===EG&&(n=!0),n||!t[0][r]||QW(e,t[0][r],DG))))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}}class WG extends HW{constructor(e){super();const t={};e&&Object.assign(t,e),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,$G(t,"persistent")&&(t.persistent=!0),$G(t,"ignoreInitial")&&(t.ignoreInitial=!1),$G(t,"ignorePermissionErrors")&&(t.ignorePermissionErrors=!1),$G(t,"interval")&&(t.interval=100),$G(t,"binaryInterval")&&(t.binaryInterval=300),$G(t,"disableGlobbing")&&(t.disableGlobbing=!1),t.enableBinaryInterval=t.binaryInterval!==t.interval,$G(t,"useFsEvents")&&(t.useFsEvents=!t.usePolling);nG.canUse()||(t.useFsEvents=!1),$G(t,"usePolling")&&!t.useFsEvents&&(t.usePolling=AG),RG&&(t.usePolling=!0);const n=process.env.CHOKIDAR_USEPOLLING;if(void 0!==n){const e=n.toLowerCase();t.usePolling="false"!==e&&"0"!==e&&("true"===e||"1"===e||!!e)}const r=process.env.CHOKIDAR_INTERVAL;r&&(t.interval=Number.parseInt(r,10)),$G(t,"atomic")&&(t.atomic=!t.usePolling&&!t.useFsEvents),t.atomic&&(this._pendingUnlinks=new Map),$G(t,"followSymlinks")&&(t.followSymlinks=!0),$G(t,"awaitWriteFinish")&&(t.awaitWriteFinish=!1),!0===t.awaitWriteFinish&&(t.awaitWriteFinish={});const a=t.awaitWriteFinish;a&&(a.stabilityThreshold||(a.stabilityThreshold=2e3),a.pollInterval||(a.pollInterval=100),this._pendingWrites=new Map),t.ignored&&(t.ignored=LG(t.ignored));let i=0;this._emitReady=()=>{i++,i>=this._readyCount&&(this._emitReady=PG,this._readyEmitted=!0,process.nextTick((()=>this.emit(aG))))},this._emitRaw=(...e)=>this.emit(cG,...e),this._readyEmitted=!1,this.options=t,t.useFsEvents?this._fsEventsHandler=new nG(this):this._nodeFsHandler=new tG(this),Object.freeze(t)}add(e,t,n){const{cwd:r,disableGlobbing:a}=this.options;this.closed=!1;let i=zG(e);return r&&(i=i.map((e=>{const t=((e,t)=>GW.isAbsolute(e)?e:e.startsWith(xG)?xG+GW.join(t,e.slice(1)):GW.join(t,e))(e,r);return a||!JW(e)?t:eG(t)}))),i=i.filter((e=>e.startsWith(xG)?(this._ignoredPaths.add(e.slice(1)),!1):(this._ignoredPaths.delete(e),this._ignoredPaths.delete(e+CG),this._userIgnored=void 0,!0))),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=i.length),this.options.persistent&&(this._readyCount*=2),i.forEach((e=>this._fsEventsHandler._addToFsEvents(e)))):(this._readyCount||(this._readyCount=0),this._readyCount+=i.length,Promise.all(i.map((async e=>{const r=await this._nodeFsHandler._addToNodeFs(e,!n,0,0,t);return r&&this._emitReady(),r}))).then((e=>{this.closed||e.filter((e=>e)).forEach((e=>{this.add(GW.dirname(e),GW.basename(t||e))}))}))),this}unwatch(e){if(this.closed)return this;const t=zG(e),{cwd:n}=this.options;return t.forEach((e=>{GW.isAbsolute(e)||this._closers.has(e)||(n&&(e=GW.join(n,e)),e=GW.resolve(e)),this._closePath(e),this._ignoredPaths.add(e),this._watched.has(e)&&this._ignoredPaths.add(e+CG),this._userIgnored=void 0})),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();const e=[];return this._closers.forEach((t=>t.forEach((t=>{const n=t();n instanceof Promise&&e.push(n)})))),this._streams.forEach((e=>e.destroy())),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach((e=>e.dispose())),["closers","watched","streams","symlinkPaths","throttled"].forEach((e=>{this[`_${e}`].clear()})),this._closePromise=e.length?Promise.all(e).then((()=>{})):Promise.resolve(),this._closePromise}getWatched(){const e={};return this._watched.forEach(((t,n)=>{const r=this.options.cwd?GW.relative(this.options.cwd,n):n;e[r||kG]=t.getChildren().sort()})),e}emitWithAll(e,t){this.emit(...t),e!==pG&&this.emit(rG,...t)}async _emit(e,t,n,r,a){if(this.closed)return;const i=this.options;TG&&(t=GW.normalize(t)),i.cwd&&(t=GW.relative(i.cwd,t));const o=[e,t];void 0!==a?o.push(n,r,a):void 0!==r?o.push(n,r):void 0!==n&&o.push(n);const s=i.awaitWriteFinish;let u;if(s&&(u=this._pendingWrites.get(t)))return u.lastChange=new Date,this;if(i.atomic){if(e===sG)return this._pendingUnlinks.set(t,o),setTimeout((()=>{this._pendingUnlinks.forEach(((e,t)=>{this.emit(...e),this.emit(rG,...e),this._pendingUnlinks.delete(t)}))}),"number"==typeof i.atomic?i.atomic:100),this;e===iG&&this._pendingUnlinks.has(t)&&(e=o[0]=oG,this._pendingUnlinks.delete(t))}if(s&&(e===iG||e===oG)&&this._readyEmitted){const n=(t,n)=>{t?(e=o[0]=pG,o[1]=t,this.emitWithAll(e,o)):n&&(o.length>2?o[2]=n:o.push(n),this.emitWithAll(e,o))};return this._awaitWriteFinish(t,s.stabilityThreshold,e,n),this}if(e===oG){if(!this._throttle(oG,t,50))return this}if(i.alwaysStat&&void 0===n&&(e===iG||e===uG||e===oG)){const e=i.cwd?GW.join(i.cwd,t):t;let n;try{n=await IG(e)}catch(e){}if(!n||this.closed)return;o.push(n)}return this.emitWithAll(e,o),this}_handleError(e){const t=e&&e.code;return e&&"ENOENT"!==t&&"ENOTDIR"!==t&&(!this.options.ignorePermissionErrors||"EPERM"!==t&&"EACCES"!==t)&&this.emit(pG,e),e||this.closed}_throttle(e,t,n){this._throttled.has(e)||this._throttled.set(e,new Map);const r=this._throttled.get(e),a=r.get(t);if(a)return a.count++,!1;let i;const o=()=>{const e=r.get(t),n=e?e.count:0;return r.delete(t),clearTimeout(i),e&&clearTimeout(e.timeoutObject),n};i=setTimeout(o,n);const s={timeoutObject:i,clear:o,count:0};return r.set(t,s),s}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,t,n,r){let a,i=e;this.options.cwd&&!GW.isAbsolute(e)&&(i=GW.join(this.options.cwd,e));const o=new Date,s=n=>{WW.stat(i,((i,o)=>{if(i||!this._pendingWrites.has(e))return void(i&&"ENOENT"!==i.code&&r(i));const u=Number(new Date);n&&o.size!==n.size&&(this._pendingWrites.get(e).lastChange=u);u-this._pendingWrites.get(e).lastChange>=t?(this._pendingWrites.delete(e),r(void 0,o)):a=setTimeout(s,this.options.awaitWriteFinish.pollInterval,o)}))};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:o,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(a),n)}),a=setTimeout(s,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,t){if(this.options.atomic&&yG.test(e))return!0;if(!this._userIgnored){const{cwd:e}=this.options,t=this.options.ignored,n=t&&t.map(qG(e)),r=LG(n).filter((e=>typeof e===OG&&!JW(e))).map((e=>e+CG)),a=this._getGlobIgnored().map(qG(e)).concat(n,r);this._userIgnored=QW(a,void 0,DG)}return this._userIgnored([e,t])}_isntIgnored(e,t){return!this._isIgnored(e,t)}_getWatchHelpers(e,t){const n=t||this.options.disableGlobbing||!JW(e)?e:XW(e),r=this.options.followSymlinks;return new HG(e,n,r,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));const t=GW.resolve(e);return this._watched.has(t)||this._watched.set(t,new VG(t,this._boundRemove)),this._watched.get(t)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;const t=511&(e&&Number.parseInt(e.mode,10)),n=Number.parseInt(t.toString(8)[0],10);return Boolean(4&n)}_remove(e,t,n){const r=GW.join(e,t),a=GW.resolve(r);if(n=null!=n?n:this._watched.has(r)||this._watched.has(a),!this._throttle("remove",r,100))return;n||this.options.useFsEvents||1!==this._watched.size||this.add(e,t,!0);this._getWatchedDir(r).getChildren().forEach((e=>this._remove(r,e)));const i=this._getWatchedDir(e),o=i.has(t);i.remove(t),this._symlinkPaths.has(a)&&this._symlinkPaths.delete(a);let s=r;if(this.options.cwd&&(s=GW.relative(this.options.cwd,r)),this.options.awaitWriteFinish&&this._pendingWrites.has(s)){if(this._pendingWrites.get(s).cancelWait()===iG)return}this._watched.delete(r),this._watched.delete(a);const u=n?lG:sG;o&&!this._isIgnored(r)&&this._emit(u,r),this.options.useFsEvents||this._closePath(r)}_closePath(e){this._closeFile(e);const t=GW.dirname(e);this._getWatchedDir(t).remove(GW.basename(e))}_closeFile(e){const t=this._closers.get(e);t&&(t.forEach((e=>e())),this._closers.delete(e))}_addPathCloser(e,t){if(!t)return;let n=this._closers.get(e);n||(n=[],this._closers.set(e,n)),n.push(t)}_readdirp(e,t){if(this.closed)return;const n={type:rG,alwaysStat:!0,lstat:!0,...t};let r=YW(e,n);return this._streams.add(r),r.once(dG,(()=>{r=void 0})),r.once(fG,(()=>{r&&(this._streams.delete(r),r=void 0)})),r}}WV.FSWatcher=WG;WV.watch=(e,t)=>{const n=new WG(t);return n.add(e),n},function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"watch",{enumerable:!0,get:()=>o});const t=i(WV),n=i(A.default),r=Uj,a=i(P.default);function i(e){return e&&e.__esModule?e:{default:e}}function o(e){const i=new a.default,o=(0,r.getWorkspaceRoot)(e),s=(0,r.getPackageInfos)(e),u=function(e,t){const r={};for(const[a,i]of Object.entries(t)){const t=n.default.relative(e,n.default.dirname(i.packageJsonPath)).split(/[/\\]/);let o=r;for(const e of t)o[e]||(o[e]={}),o=o[e];o.packageName=a}return r}(o,s),l=Object.values(s).map((e=>n.default.dirname(e.packageJsonPath)));let c;return t.default.watch(l,{cwd:o,ignored:["**/node_modules/**","**/dist/**","**/build/**","**/lib/**"]}).on("change",(e=>{c&&clearTimeout(c),c=setTimeout((()=>{const t=function(e,t){const n=e.split(/[/\\]/);let r=t;for(const t of n){if(!r[t]){console.log(t,e);break}if(r[t].packageName)return r[t].packageName;r=r[t]}return}(e,u);i.emit("change",t)}),200)})),i}}(HV),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"watchAction",{enumerable:!0,get:()=>g});const t=$e,n=hI,r=DI,a=JL,i=NI,o=eF,s=Uj,u=XL,l=rF,c=SV,p=HV,d=h(GL),f=qV;function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}function h(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}async function g(e,m){const h=process.cwd(),g=await(0,i.getConfig)(h),v=(0,f.getConcurrency)(e.concurrency,g.concurrency),b=(0,d.default)(),w=new l.LogReporter({logLevel:d.LogLevel[e.logLevel]});b.addReporter(w);const _=(0,s.getWorkspaceRoot)(process.cwd()),x=(0,s.getPackageInfos)(_),{tasks:k,taskArgs:S}=(0,r.filterArgsForTasks)(m.args),E=(0,n.createTargetGraph)({logger:b,root:_,dependencies:e.dependencies,dependents:e.dependents&&!e.to,ignore:e.ignore.concat(g.ignore),pipeline:g.pipeline,repoWideChanges:g.repoWideChanges,scope:(e.scope??[]).concat(e.to??[]),since:e.since,outputs:g.cacheOptions.outputGlob,tasks:k,packageInfos:x});g.cacheOptions.writeRemoteCache=!1;const{cacheProvider:C,hasher:D}=(0,t.createCache)({root:_,logger:b,cacheOptions:g.cacheOptions,skipLocalCache:!1,cliArgs:S}),O=(0,u.filterPipelineDefinitions)(E.targets.values(),g.pipeline),N=(0,o.getMaxWorkersPerTaskFromOptions)(e.maxWorkersPerTask),j=new c.SimpleScheduler({logger:b,concurrency:v,cacheProvider:C,hasher:D,continueOnError:!0,shouldCache:e.cache,shouldResetCache:e.resetCache,maxWorkersPerTask:new Map([...(0,o.getMaxWorkersPerTask)(O,v),...N]),runners:{npmScript:{script:require.resolve("./runners/NpmScriptRunner.js"),options:{nodeArg:e.nodeArg,taskArgs:S,npmCmd:(0,a.findNpmClient)(g.npmClient)}},worker:{script:require.resolve("./runners/WorkerRunner.js"),options:{taskArgs:S}},...g.runners},workerIdleMemoryLimit:g.workerIdleMemoryLimit});y(await j.run(_,E),b.reporters),b.info("Running scheduler in watch mode");for(const e of j.targetRuns.values())e.options.cacheProvider=void 0,e.options.hasher=void 0,e.options.shouldCache=!1;(0,p.watch)(_).on("change",(async e=>{w.resetLogEntries();const t=new Map;for(const n of E.targets.values())n.packageName===e&&t.set(n.id,n);const n={targets:t};y(await j.run(_,n,!0),b.reporters)}))}function y(e,t){for(const n of t)n.summarize(e)}}(VV),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"action",{enumerable:!0,get:()=>a});const t=qe,n=QL,r=VV;async function a(e,a){return e.info?(0,t.infoAction)(e,a):e.unstableWatch?(0,r.watchAction)(e,a):(0,n.runAction)(e,a)}}(Ue);var GG={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLoggerOptions",{enumerable:!0,get:()=>n});const t=ce.exports;function n(e){const n=process.env.CI||process.env.TF_BUILD;return e.option("--reporter <reporter...>","reporter").option("--grouped","groups the logs",!1).addOption(new t.Option("--progress").conflicts(["reporter","grouped","verbose"]).default(!n)).addOption(new t.Option("--log-level <level>","log level").choices(["info","warn","error","verbose","silly"]).conflicts("verbose")).option("--verbose","verbose output",!1)}}(GG);var KG={};!function(e){function t(e){return e.option("--scope <scope...>","scopes the run to a subset of packages (by default, includes the dependencies and dependents as well)").option("--no-deps|--no-dependents","disables running any dependents of the scoped packages").option("--include-dependencies|--dependencies",'adds the scoped packages dependencies as the "entry points" for the target graph run').option("--to <scope...>","runs up to a package (shorthand for --scope=<scope...> --no-dependents)").option("--since <since>","only runs packages that have changed since the given commit, tag, or branch").option("--ignore <ignore...>","ignores files when calculating the scope with `--since` in addition to the files specified in lage.config",[])}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addFilterOptions",{enumerable:!0,get:()=>t})}(KG),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"runCommand",{enumerable:!0,get:()=>o});const t=ce.exports,n=Ue,r=GG,a=mI,i=KG,o=new t.Command("run");(0,i.addFilterOptions)((0,r.addLoggerOptions)(o)).action(n.action).option("-c, --concurrency <n>","concurrency",(e=>parseInt(e,10))).option("--max-workers-per-task <maxWorkersPerTarget...>","set max worker per task, e.g. --max-workers-per-task build=2 test=4",[]).option("--no-cache","disables the cache").option("--reset-cache","resets the cache, filling it after a run").option("--skip-local-cache","skips caching locally (defaults to true in CI environments)",a.isRunningFromCI).option("--profile [profile]","writes a run profile into a file that can be processed by Chromium devtool").option("--nodearg|--node-arg <nodeArg>",'arguments to be passed to node (e.g. --nodearg="--max_old_space_size=1234 --heap-prof" - set via "NODE_OPTIONS" environment variable').option("--continue","continues the run even on error").option("--allow-no-target-runs").addOption(new t.Option("--info","outputs information about a run action, suitable for calculating shards or as an input for another task runner").conflicts("unstableWatch")).option("--unstable-watch","runs in watch mode").allowUnknownOption(!0).addHelpCommand("[run] command1 [command2...commandN] [options]","run commands").addHelpText("after",'\nRuns a set of commands in a target graph. The targets are defined by packages and their scripts as defined the package.json files.\n\nExamples\n========\n \n### Basic case, running "build", "test", and "lint" against all packages\n\n $ lage build test lint\n\n### Concurrency\n \n $ lage build test lint --concurrency=4\n\n### Filtering by certain packages\n\nScoped to "package-a" and "package-b" and their dependencies and dependents:\n\n $ lage build test lint --scope package-a package-b\n\nScoped to "package-a" and "package-b" only:\n\n $ lage build test lint --scope package-a package-b --no-deps\n\nScoped to packages that have changed in the current branch against a target merge branch:\n\n $ lage build test lint --since origin/master\n\n### Providing node.js arguments for each command\n\n $ lage build test lint --nodearg=--max_old_space_size=1234 --nodearg=--heap-prof\n\n### Continue running even after encountering an error for one of the targets\n\n $ lage build test lint --continue\n\n### Controlling logged outputs\n\nShow verbose output for each target:\n\n $ lage build test lint --verbose\n\nShow only errors for each target:\n\n $ lage build test lint --log-level=error\n\nShow logs as grouped by each target:\n\n $ lage build test lint --grouped --verbose\n\nChoosing a different reporter while logging (e.g. nice outputs for Azure DevOps):\n\n $ lage build test lint --reporter=azureDevOps\n\nIgnoring files when calculating the scope with --since in addition to files specified in lage.config:\n\n $ lage build test lint --since origin/master --ignore "package.json" "yarn.lock" "**/.azure-pipelines/**"\n\n')}(Be);var YG={},QG={},XG={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"clearCache",{enumerable:!0,get:()=>i});const t=NI,n=Uj,r=qV,a=Ve;async function i(e){const{logger:i,cwd:o}=e,s=await(0,t.getConfig)(o),u=(0,n.getWorkspaceRoot)(o),l=(0,r.getConcurrency)(e.concurrency,s.concurrency);if(!u)return;const c=new a.BackfillCacheProvider({root:o,cacheOptions:s.cacheOptions,logger:i});console.log("Clearing Cache"),c.clear(l),console.log("Cache Cleared")}}(XG);var JG={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pruneCache",{enumerable:!0,get:()=>i});const t=Uj,n=NI,r=qV,a=Ve;async function i(e){const{logger:i,cwd:o,pruneDays:s}=e,u=await(0,n.getConfig)(o),l=(0,t.getWorkspaceRoot)(o),c=(0,r.getConcurrency)(e.concurrency,u.concurrency);if(!l)return;const p=s||30,d=new a.BackfillCacheProvider({root:o,cacheOptions:u.cacheOptions,logger:i});console.log("Clearing Cache"),d.purge(p,c),console.log("Cache Cleared")}}(JG),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"cacheAction",{enumerable:!0,get:()=>o});const t=XG,n=NI,r=JG,a=i(GL);function i(e){return e&&e.__esModule?e:{default:e}}async function o(e,i){const o=process.cwd(),s=await(0,n.getConfig)(o),u=(0,a.default)();return e.clear?await(0,t.clearCache)({cwd:process.cwd(),internalCacheFolder:s.cacheOptions.internalCacheFolder,logger:u,concurrency:e.concurrency}):e.prune?await(0,r.pruneCache)({pruneDays:e.prune,cwd:process.cwd(),internalCacheFolder:s.cacheOptions.internalCacheFolder,logger:u,concurrency:e.concurrency}):void i.help()}}(QG),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"cacheCommand",{enumerable:!0,get:()=>a});const t=ce.exports,n=GG,r=QG,a=new t.Command("cache");(0,n.addLoggerOptions)(a).action(r.cacheAction).addOption(new t.Option("--prune <days>","Prunes cache older than certain number of <days>").argParser(parseInt).conflicts("--clear")).option("--clear","Clears the cache locally")}(YG);var ZG={},eK={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"affectedAction",{enumerable:!0,get:()=>o});const t=i(GL),n=Uj,r=NI,a=CI;function i(e){return e&&e.__esModule?e:{default:e}}async function o(e){const{dependencies:i,dependents:o,since:u,scope:l,ignore:c,outputFormat:p}=e,d=process.cwd(),f=await(0,r.getConfig)(d),m=(0,t.default)(),h=(0,n.getWorkspaceRoot)(d),g=(0,n.getPackageInfos)(h),y=(0,a.getFilteredPackages)({root:h,logger:m,packageInfos:g,includeDependencies:i,includeDependents:o,since:u,scope:l,repoWideChanges:f.repoWideChanges,sinceIgnoreGlobs:c});let v="";switch(p){case"graph":v=function(e){const t=s(e),{packages:n}=t,r=[];for(const[e,t]of Object.entries(n))for(const n of t.dependencies)r.push([e,n]);return`\ndigraph affected {\n${r.map((e=>` "${e[0]}" -> "${e[1]}"`)).join("\n")}\n} \n`}({packages:y,packageInfos:g});break;case"json":v=function(e){const t=s(e);return JSON.stringify(t)}({packages:y,packageInfos:g});break;default:v=function(e){const{packages:t}=e;return`\nAll Affected Packages\n---------------------\n\n${t.join("\n")}\n`}({packages:y})}console.log(v)}function s(e){const{packages:t,packageInfos:n}=e,r=t.reduce(((e,r)=>{const a=Object.keys(n[r].dependencies??{}).filter((e=>t.includes(e))),i=Object.keys(n[r].dependents??{}).filter((e=>t.includes(e)));return e[r]={dependencies:a,dependents:i},e}),{});return{packages:r,count:t.length}}}(eK),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"affectedCommand",{enumerable:!0,get:()=>r});const t=KG,n=eK,r=new ce.exports.Command("affected");(0,t.addFilterOptions)(r).action(n.affectedAction).option("--output-format <graph|json|default>",'Generate a report about what packages are affected by the current change (defaults to human readable format) "graph" will generate a GraphViz .dot file format').option("--since <branch>","Calculate changes since this branch (defaults to origin/master)","origin/master")}(ZG),Object.defineProperty(le,"__esModule",{value:!0});const tK=ce.exports,nK=Be,rK=YG,aK=$V,iK=ZG;(async function(){const e=new tK.Command;e.addCommand(nK.runCommand,{isDefault:!0}),e.addCommand(rK.cacheCommand),e.addCommand(iK.affectedCommand),await e.parseAsync(process.argv)})().catch((e=>{if(e===aK.NoTargetFoundError)console.log("lage: no targets found that matches the given scope.");else console.error(e);process.exitCode=1}));var oK={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NoOpRunner",{enumerable:!0,get:()=>t});const t={shouldRun:async()=>!0,async run(){}}}(oK);var sK=j({__proto__:null,default:se(oK)},[oK]);module.exports=le;
|
|
632
|
+
function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var a=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.debug_trace_mode"),v=Symbol.for("react.offscreen"),b=Symbol.for("react.cache"),w=Symbol.for("react.default_value"),_=Symbol.iterator;var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,S={};function E(e,t,n){this.props=e,this.context=t,this.refs=S,this.updater=n||x}function C(){}function D(e,t,n){this.props=e,this.context=t,this.refs=S,this.updater=n||x}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!==r(e)&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=E.prototype;var O=D.prototype=new C;O.constructor=D,k(O,E.prototype),O.isPureReactComponent=!0;var N=Array.isArray,j=Object.prototype.hasOwnProperty,P={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var r,i={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)j.call(t,r)&&!T.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:a,type:e,key:o,ref:s,props:i,_owner:P.current}}function R(e){return"object"===r(e)&&null!==e&&e.$$typeof===a}var I=/\/+/g;function M(e,t){return"object"===r(e)&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function L(e,t,n,o,s){var u=r(e);"undefined"!==u&&"boolean"!==u||(e=null);var l=!1;if(null===e)l=!0;else switch(u){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case a:case i:l=!0}}if(l)return s=s(l=e),e=""===o?"."+M(l,0):o,N(s)?(n="",null!=e&&(n=e.replace(I,"$&/")+"/"),L(s,t,n,"",(function(e){return e}))):null!=s&&(R(s)&&(s=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,n+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(I,"$&/")+"/")+e)),t.push(s)),1;if(l=0,o=""===o?".":o+":",N(e))for(var c=0;c<e.length;c++){var p=o+M(u=e[c],c);l+=L(u,t,n,p,s)}else if(p=function(e){return null===e||"object"!==r(e)?null:"function"==typeof(e=_&&e[_]||e["@@iterator"])?e:null}(e),"function"==typeof p)for(e=p.call(e),c=0;!(u=e.next()).done;)l+=L(u=u.value,t,n,p=o+M(u,c++),s);else if("object"===u)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function F(e,t,n){if(null==e)return e;var r=[],a=0;return L(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function z(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var B={current:null};function U(){return new WeakMap}var q={current:null},$={transition:null},V={ReactCurrentDispatcher:q,ReactCurrentCache:B,ReactCurrentBatchConfig:$,ReactCurrentOwner:P,ContextRegistry:{}},H=V.ContextRegistry;t.Children={map:F,forEach:function(e,t,n){F(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return F(e,(function(){t++})),t},toArray:function(e){return F(e,(function(e){return e}))||[]},only:function(e){if(!R(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=E,t.Fragment=o,t.Profiler=u,t.PureComponent=D,t.StrictMode=s,t.Suspense=f,t.SuspenseList=m,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,t.cache=function(e){return function(){var t=B.current;if(!t)return e.apply(null,arguments);var n=t.getCacheForType(U);void 0===(t=n.get(e))&&(t={s:0,v:void 0,o:null,p:null},n.set(e,t)),n=0;for(var a=arguments.length;n<a;n++){var i=arguments[n];if("function"==typeof i||"object"===r(i)&&null!==i){var o=t.o;null===o&&(t.o=o=new WeakMap),void 0===(t=o.get(i))&&(t={s:0,v:void 0,o:null,p:null},o.set(i,t))}else null===(o=t.p)&&(t.p=o=new Map),void 0===(t=o.get(i))&&(t={s:0,v:void 0,o:null,p:null},o.set(i,t))}if(1===t.s)return t.v;if(2===t.s)throw t.v;try{var s=e.apply(null,arguments);return(n=t).s=1,n.v=s}catch(e){throw(s=t).s=2,s.v=e,e}}},t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=k({},e.props),i=e.key,o=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,s=P.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)j.call(t,l)&&!T.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==u?u[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){u=Array(l);for(var c=0;c<l;c++)u[c]=arguments[c+2];r.children=u}return{$$typeof:a,type:e.type,key:i,ref:o,props:r,_owner:s}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=A,t.createFactory=function(e){var t=A.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.createServerContext=function(e,t){var n=!0;if(!H[e]){n=!1;var r={$$typeof:p,_currentValue:t,_currentValue2:t,_defaultValue:t,_threadCount:0,Provider:null,Consumer:null,_globalName:e};r.Provider={$$typeof:l,_context:r},H[e]=r}if((r=H[e])._defaultValue===w)r._defaultValue=t,r._currentValue===w&&(r._currentValue=t),r._currentValue2===w&&(r._currentValue2=t);else if(n)throw Error("ServerContext: "+e+" already defined");return r},t.experimental_useEffectEvent=function(e){return q.current.useEffectEvent(e)},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=R,t.lazy=function(e){return{$$typeof:g,_payload:{_status:-1,_result:e},_init:z}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=$.transition;$.transition={};try{e()}finally{$.transition=t}},t.unstable_Cache=b,t.unstable_DebugTracingMode=y,t.unstable_Offscreen=v,t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.unstable_getCacheForType=function(e){var t=B.current;return t?t.getCacheForType(e):e()},t.unstable_getCacheSignal=function(){var e=B.current;return e?e.getCacheSignal():((e=new AbortController).abort(Error("This CacheSignal was requested outside React which means that it is immediately aborted.")),e.signal)},t.unstable_useCacheRefresh=function(){return q.current.useCacheRefresh()},t.unstable_useMemoCache=function(e){return q.current.useMemoCache(e)},t.use=function(e){return q.current.use(e)},t.useCallback=function(e,t){return q.current.useCallback(e,t)},t.useContext=function(e){return q.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return q.current.useDeferredValue(e)},t.useEffect=function(e,t){return q.current.useEffect(e,t)},t.useId=function(){return q.current.useId()},t.useImperativeHandle=function(e,t,n){return q.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return q.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return q.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return q.current.useMemo(e,t)},t.useReducer=function(e,t,n){return q.current.useReducer(e,t,n)},t.useRef=function(e){return q.current.useRef(e)},t.useState=function(e){return q.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return q.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return q.current.useTransition()},t.version="18.3.0-experimental-53b1f69ba-20230209"},function(e,t,n){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.r(t),n.d(t,"connectToDevTools",(function(){return Xe}));var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"listenersMap",new Map)}var t,n,a;return t=e,n=[{key:"addListener",value:function(e,t){var n=this.listenersMap.get(e);void 0===n?this.listenersMap.set(e,[t]):n.indexOf(t)<0&&n.push(t)}},{key:"emit",value:function(e){var t=this.listenersMap.get(e);if(void 0!==t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];if(1===t.length)t[0].apply(null,r);else{for(var i=!1,o=null,s=Array.from(t),u=0;u<s.length;u++){var l=s[u];try{l.apply(null,r)}catch(e){null===o&&(i=!0,o=e)}}if(i)throw o}}}},{key:"removeAllListeners",value:function(){this.listenersMap.clear()}},{key:"removeListener",value:function(e,t){var n=this.listenersMap.get(e);if(void 0!==n){var r=n.indexOf(t);r>=0&&n.splice(r,1)}}}],n&&r(t.prototype,n),a&&r(t,a),e}(),i=n(13),o=n.n(i),s=n(2),u=n(5),l=function(e,t){return e===t},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,n=void 0,r=[],a=void 0,i=!1,o=function(e,n){return t(e,r[n])};return function(){for(var t=arguments.length,s=Array(t),u=0;u<t;u++)s[u]=arguments[u];return i&&n===this&&s.length===r.length&&s.every(o)?a:(i=!0,n=this,r=s,a=e.apply(this,s))}};function p(e){return e.ownerDocument?e.ownerDocument.defaultView:null}function d(e){var t=p(e);return t?t.frameElement:null}function f(e){var t=g(e);return m([e.getBoundingClientRect(),{top:t.borderTop,left:t.borderLeft,bottom:t.borderBottom,right:t.borderRight,width:0,height:0}])}function m(e){return e.reduce((function(e,t){return null==e?t:{top:e.top+t.top,left:e.left+t.left,width:e.width,height:e.height,bottom:e.bottom+t.bottom,right:e.right+t.right}}))}function h(e,t){var n=d(e);if(n&&n!==t){for(var r=[e.getBoundingClientRect()],a=n,i=!1;a;){var o=f(a);if(r.push(o),a=d(a),i)break;a&&p(a)===t&&(i=!0)}return m(r)}return e.getBoundingClientRect()}function g(e){var t=window.getComputedStyle(e);return{borderLeft:parseInt(t.borderLeftWidth,10),borderRight:parseInt(t.borderRightWidth,10),borderTop:parseInt(t.borderTopWidth,10),borderBottom:parseInt(t.borderBottomWidth,10),marginLeft:parseInt(t.marginLeft,10),marginRight:parseInt(t.marginRight,10),marginTop:parseInt(t.marginTop,10),marginBottom:parseInt(t.marginBottom,10),paddingLeft:parseInt(t.paddingLeft,10),paddingRight:parseInt(t.paddingRight,10),paddingTop:parseInt(t.paddingTop,10),paddingBottom:parseInt(t.paddingBottom,10)}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}var w=Object.assign,_=function(){function e(t,n){y(this,e),this.node=t.createElement("div"),this.border=t.createElement("div"),this.padding=t.createElement("div"),this.content=t.createElement("div"),this.border.style.borderColor=E.border,this.padding.style.borderColor=E.padding,this.content.style.backgroundColor=E.background,w(this.node.style,{borderColor:E.margin,pointerEvents:"none",position:"fixed"}),this.node.style.zIndex="10000000",this.node.appendChild(this.border),this.border.appendChild(this.padding),this.padding.appendChild(this.content),n.appendChild(this.node)}return b(e,[{key:"remove",value:function(){this.node.parentNode&&this.node.parentNode.removeChild(this.node)}},{key:"update",value:function(e,t){S(t,"margin",this.node),S(t,"border",this.border),S(t,"padding",this.padding),w(this.content.style,{height:e.height-t.borderTop-t.borderBottom-t.paddingTop-t.paddingBottom+"px",width:e.width-t.borderLeft-t.borderRight-t.paddingLeft-t.paddingRight+"px"}),w(this.node.style,{top:e.top-t.marginTop+"px",left:e.left-t.marginLeft+"px"})}}]),e}(),x=function(){function e(t,n){y(this,e),this.tip=t.createElement("div"),w(this.tip.style,{display:"flex",flexFlow:"row nowrap",backgroundColor:"#333740",borderRadius:"2px",fontFamily:'"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace',fontWeight:"bold",padding:"3px 5px",pointerEvents:"none",position:"fixed",fontSize:"12px",whiteSpace:"nowrap"}),this.nameSpan=t.createElement("span"),this.tip.appendChild(this.nameSpan),w(this.nameSpan.style,{color:"#ee78e6",borderRight:"1px solid #aaaaaa",paddingRight:"0.5rem",marginRight:"0.5rem"}),this.dimSpan=t.createElement("span"),this.tip.appendChild(this.dimSpan),w(this.dimSpan.style,{color:"#d7d7d7"}),this.tip.style.zIndex="10000000",n.appendChild(this.tip)}return b(e,[{key:"remove",value:function(){this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip)}},{key:"updateText",value:function(e,t,n){this.nameSpan.textContent=e,this.dimSpan.textContent=Math.round(t)+"px × "+Math.round(n)+"px"}},{key:"updatePosition",value:function(e,t){var n=this.tip.getBoundingClientRect(),r=function(e,t,n){var r,a=Math.max(n.height,20),i=Math.max(n.width,60),o=5;r=e.top+e.height+a<=t.top+t.height?e.top+e.height<t.top+0?t.top+o:e.top+e.height+o:e.top-a<=t.top+t.height?e.top-a-o<t.top+o?t.top+o:e.top-a-o:t.top+t.height-a-o;var s=e.left+o;e.left<t.left&&(s=t.left+o);e.left+i>t.left+t.width&&(s=t.left+t.width-i-o);return{style:{top:r+="px",left:s+="px"}}}(e,t,{width:n.width,height:n.height});w(this.tip.style,r.style)}}]),e}(),k=function(){function e(t){y(this,e);var n=window.__REACT_DEVTOOLS_TARGET_WINDOW__||window;this.window=n;var r=window.__REACT_DEVTOOLS_TARGET_WINDOW__||window;this.tipBoundsWindow=r;var a=n.document;this.container=a.createElement("div"),this.container.style.zIndex="10000000",this.tip=new x(a,this.container),this.rects=[],this.agent=t,a.body.appendChild(this.container)}return b(e,[{key:"remove",value:function(){this.tip.remove(),this.rects.forEach((function(e){e.remove()})),this.rects.length=0,this.container.parentNode&&this.container.parentNode.removeChild(this.container)}},{key:"inspect",value:function(e,t){for(var n=this,r=e.filter((function(e){return e.nodeType===Node.ELEMENT_NODE}));this.rects.length>r.length;){this.rects.pop().remove()}if(0!==r.length){for(;this.rects.length<r.length;)this.rects.push(new _(this.window.document,this.container));var a={top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,left:Number.POSITIVE_INFINITY};if(r.forEach((function(e,t){var r=h(e,n.window),i=g(e);a.top=Math.min(a.top,r.top-i.marginTop),a.right=Math.max(a.right,r.left+r.width+i.marginRight),a.bottom=Math.max(a.bottom,r.top+r.height+i.marginBottom),a.left=Math.min(a.left,r.left-i.marginLeft),n.rects[t].update(r,i)})),!t){t=r[0].nodeName.toLowerCase();var i=r[0],o=this.agent.getBestMatchingRendererInterface(i);if(o){var s=o.getFiberIDForNative(i,!0);if(s){var u=o.getDisplayNameForFiberID(s,!0);u&&(t+=" (in "+u+")")}}}this.tip.updateText(t,a.right-a.left,a.bottom-a.top);var l=h(this.tipBoundsWindow.document.documentElement,this.window);this.tip.updatePosition({top:a.top,left:a.left,height:a.bottom-a.top,width:a.right-a.left},{top:l.top+this.tipBoundsWindow.scrollY,left:l.left+this.tipBoundsWindow.scrollX,height:this.tipBoundsWindow.innerHeight,width:this.tipBoundsWindow.innerWidth})}}}]),e}();function S(e,t,n){w(n.style,{borderTopWidth:e[t+"Top"]+"px",borderLeftWidth:e[t+"Left"]+"px",borderRightWidth:e[t+"Right"]+"px",borderBottomWidth:e[t+"Bottom"]+"px",borderStyle:"solid"})}var E={background:"rgba(120, 170, 210, 0.7)",padding:"rgba(77, 200, 0, 0.3)",margin:"rgba(255, 155, 0, 0.3)",border:"rgba(255, 200, 50, 0.3)"},C=2e3,D=null,O=null;function N(e){null!=window.document?(D=null,null!==O&&(O.remove(),O=null)):e.emit("hideNativeHighlight")}function j(e,t,n,r){null!=window.document?(null!==D&&clearTimeout(D),null!=e&&(null===O&&(O=new k(n)),O.inspect(e,t),r&&(D=setTimeout((function(){return N(n)}),C)))):null!=e&&null!=e[0]&&n.emit("showNativeHighlight",e[0])}var P=new Set;var T="#f0f0f0",A=["#37afa9","#63b19e","#80b393","#97b488","#abb67d","#beb771","#cfb965","#dfba57","#efbb49","#febc38"],R=null;function I(e,t){if(null==window.document){var n=[];return M(e,(function(e,t,r){n.push({node:r,color:t})})),void t.emit("drawTraceUpdates",n)}null===R&&function(){(R=window.document.createElement("canvas")).style.cssText="\n xx-background-color: red;\n xx-opacity: 0.5;\n bottom: 0;\n left: 0;\n pointer-events: none;\n position: fixed;\n right: 0;\n top: 0;\n z-index: 1000000000;\n ";var e=window.document.documentElement;e.insertBefore(R,e.firstChild)}();var r=R;r.width=window.innerWidth,r.height=window.innerHeight;var a=r.getContext("2d");a.clearRect(0,0,r.width,r.height),M(e,(function(e,t){null!==e&&function(e,t,n){var r=t.height,a=t.left,i=t.top,o=t.width;e.lineWidth=1,e.strokeStyle=T,e.strokeRect(a-1,i-1,o+2,r+2),e.lineWidth=1,e.strokeStyle=T,e.strokeRect(a+1,i+1,o-1,r-1),e.strokeStyle=n,e.setLineDash([0]),e.lineWidth=1,e.strokeRect(a,i,o-1,r-1),e.setLineDash([0])}(a,e,t)}))}function M(e,t){e.forEach((function(e,n){var r=e.count,a=e.rect,i=Math.min(A.length-1,r-1),o=A[i];t(a,o,n)}))}function L(e){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},L(e)}var F=250,z=3e3,B=250,U="object"===("undefined"==typeof performance?"undefined":L(performance))&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()},q=new Map,$=null,V=null,H=!1,W=null;function G(e){var t;(H=e)||(q.clear(),null!==V&&(cancelAnimationFrame(V),V=null),null!==W&&(clearTimeout(W),W=null),t=$,null!=window.document?null!==R&&(null!=R.parentNode&&R.parentNode.removeChild(R),R=null):t.emit("disableTraceUpdates"))}function K(e){H&&(e.forEach((function(e){var t=q.get(e),n=U(),r=null!=t?t.lastMeasuredAt:0,a=null!=t?t.rect:null;(null===a||r+B<n)&&(r=n,a=function(e){if(!e||"function"!=typeof e.getBoundingClientRect)return null;var t=window.__REACT_DEVTOOLS_TARGET_WINDOW__||window;return h(e,t)}(e)),q.set(e,{count:null!=t?t.count+1:1,expirationTime:null!=t?Math.min(n+z,t.expirationTime+F):n+F,lastMeasuredAt:r,rect:a})})),null!==W&&(clearTimeout(W),W=null),null===V&&(V=requestAnimationFrame(Y)))}function Y(){V=null,W=null;var e=U(),t=Number.MAX_VALUE;q.forEach((function(n,r){n.expirationTime<e?q.delete(r):t=Math.min(t,n.expirationTime)})),I(q,$),t!==Number.MAX_VALUE&&(W=setTimeout(Y,t-e))}var Q=n(8);function X(e){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(e)}function J(e){return function(e){if(Array.isArray(e))return Z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function te(e,t){return te=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},te(e,t)}function ne(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ae(e);if(t){var a=ae(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===X(t)||"function"==typeof t))return t;return re(e)}(this,n)}}function re(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ae(e){return ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ae(e)}function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oe=100,se=[{version:0,minNpmVersion:'"<4.11.0"',maxNpmVersion:'"<4.11.0"'},{version:1,minNpmVersion:"4.13.0",maxNpmVersion:"4.21.0"},{version:2,minNpmVersion:"4.22.0",maxNpmVersion:null}],ue=se[se.length-1],le=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&te(e,t)}(i,e);var t,n,r,a=ne(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),ie(re(t=a.call(this)),"_isShutdown",!1),ie(re(t),"_messageQueue",[]),ie(re(t),"_timeoutID",null),ie(re(t),"_wallUnlisten",null),ie(re(t),"_flush",(function(){if(null!==t._timeoutID&&(clearTimeout(t._timeoutID),t._timeoutID=null),t._messageQueue.length){for(var e=0;e<t._messageQueue.length;e+=2){var n;(n=t._wall).send.apply(n,[t._messageQueue[e]].concat(J(t._messageQueue[e+1])))}t._messageQueue.length=0,t._timeoutID=setTimeout(t._flush,oe)}})),ie(re(t),"overrideValueAtPath",(function(e){var n=e.id,r=e.path,a=e.rendererID,i=e.type,o=e.value;switch(i){case"context":t.send("overrideContext",{id:n,path:r,rendererID:a,wasForwarded:!0,value:o});break;case"hooks":t.send("overrideHookState",{id:n,path:r,rendererID:a,wasForwarded:!0,value:o});break;case"props":t.send("overrideProps",{id:n,path:r,rendererID:a,wasForwarded:!0,value:o});break;case"state":t.send("overrideState",{id:n,path:r,rendererID:a,wasForwarded:!0,value:o})}})),t._wall=e,t._wallUnlisten=e.listen((function(e){e&&e.event&&re(t).emit(e.event,e.payload)}))||null,t.addListener("overrideValueAtPath",t.overrideValueAtPath),t}return t=i,n=[{key:"send",value:function(e){if(this._isShutdown)console.warn('Cannot send message "'.concat(e,'" through a Bridge that has been shutdown.'));else{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this._messageQueue.push(e,n),this._timeoutID||(this._timeoutID=setTimeout(this._flush,0))}}},{key:"shutdown",value:function(){if(this._isShutdown)console.warn("Bridge was already shutdown.");else{this.send("shutdown"),this._isShutdown=!0,this.addListener=function(){},this.emit=function(){},this.removeAllListeners();var e=this._wallUnlisten;e&&e();do{this._flush()}while(this._messageQueue.length);null!==this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}}},{key:"wall",get:function(){return this._wall}}],n&&ee(t.prototype,n),r&&ee(t,r),i}(a),ce=le,pe=n(4);function de(e){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(e)}function fe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function me(e,t){return me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},me(e,t)}function he(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ye(e);if(t){var a=ye(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===de(t)||"function"==typeof t))return t;return ge(e)}(this,n)}}function ge(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ye(e){return ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ye(e)}function ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var be=function(e){if(s.s){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];(t=console).log.apply(t,["%cAgent %c".concat(e),"color: purple; font-weight: bold;","font-weight: bold;"].concat(r))}},we=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&me(e,t)}(i,e);var t,n,r,a=he(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),ve(ge(t=a.call(this)),"_isProfiling",!1),ve(ge(t),"_recordChangeDescriptions",!1),ve(ge(t),"_rendererInterfaces",{}),ve(ge(t),"_persistedSelection",null),ve(ge(t),"_persistedSelectionMatch",null),ve(ge(t),"_traceUpdatesEnabled",!1),ve(ge(t),"clearErrorsAndWarnings",(function(e){var n=e.rendererID,r=t._rendererInterfaces[n];null==r?console.warn('Invalid renderer id "'.concat(n,'"')):r.clearErrorsAndWarnings()})),ve(ge(t),"clearErrorsForFiberID",(function(e){var n=e.id,r=e.rendererID,a=t._rendererInterfaces[r];null==a?console.warn('Invalid renderer id "'.concat(r,'"')):a.clearErrorsForFiberID(n)})),ve(ge(t),"clearWarningsForFiberID",(function(e){var n=e.id,r=e.rendererID,a=t._rendererInterfaces[r];null==a?console.warn('Invalid renderer id "'.concat(r,'"')):a.clearWarningsForFiberID(n)})),ve(ge(t),"copyElementPath",(function(e){var n=e.id,r=e.path,a=e.rendererID,i=t._rendererInterfaces[a];null==i?console.warn('Invalid renderer id "'.concat(a,'" for element "').concat(n,'"')):i.copyElementPath(n,r)})),ve(ge(t),"deletePath",(function(e){var n=e.hookID,r=e.id,a=e.path,i=e.rendererID,o=e.type,s=t._rendererInterfaces[i];null==s?console.warn('Invalid renderer id "'.concat(i,'" for element "').concat(r,'"')):s.deletePath(o,r,n,a)})),ve(ge(t),"getBackendVersion",(function(){t._bridge.send("backendVersion","4.27.2-7f747b80e")})),ve(ge(t),"getBridgeProtocol",(function(){t._bridge.send("bridgeProtocol",ue)})),ve(ge(t),"getProfilingData",(function(e){var n=e.rendererID,r=t._rendererInterfaces[n];null==r&&console.warn('Invalid renderer id "'.concat(n,'"')),t._bridge.send("profilingData",r.getProfilingData())})),ve(ge(t),"getProfilingStatus",(function(){t._bridge.send("profilingStatus",t._isProfiling)})),ve(ge(t),"getOwnersList",(function(e){var n=e.id,r=e.rendererID,a=t._rendererInterfaces[r];if(null==a)console.warn('Invalid renderer id "'.concat(r,'" for element "').concat(n,'"'));else{var i=a.getOwnersList(n);t._bridge.send("ownersList",{id:n,owners:i})}})),ve(ge(t),"inspectElement",(function(e){var n=e.forceFullData,r=e.id,a=e.path,i=e.rendererID,o=e.requestID,s=t._rendererInterfaces[i];null==s?console.warn('Invalid renderer id "'.concat(i,'" for element "').concat(r,'"')):(t._bridge.send("inspectedElement",s.inspectElement(o,r,a,n)),null!==t._persistedSelectionMatch&&t._persistedSelectionMatch.id===r||(t._persistedSelection=null,t._persistedSelectionMatch=null,s.setTrackedPath(null),t._throttledPersistSelection(i,r)))})),ve(ge(t),"logElementToConsole",(function(e){var n=e.id,r=e.rendererID,a=t._rendererInterfaces[r];null==a?console.warn('Invalid renderer id "'.concat(r,'" for element "').concat(n,'"')):a.logElementToConsole(n)})),ve(ge(t),"overrideError",(function(e){var n=e.id,r=e.rendererID,a=e.forceError,i=t._rendererInterfaces[r];null==i?console.warn('Invalid renderer id "'.concat(r,'" for element "').concat(n,'"')):i.overrideError(n,a)})),ve(ge(t),"overrideSuspense",(function(e){var n=e.id,r=e.rendererID,a=e.forceFallback,i=t._rendererInterfaces[r];null==i?console.warn('Invalid renderer id "'.concat(r,'" for element "').concat(n,'"')):i.overrideSuspense(n,a)})),ve(ge(t),"overrideValueAtPath",(function(e){var n=e.hookID,r=e.id,a=e.path,i=e.rendererID,o=e.type,s=e.value,u=t._rendererInterfaces[i];null==u?console.warn('Invalid renderer id "'.concat(i,'" for element "').concat(r,'"')):u.overrideValueAtPath(o,r,n,a,s)})),ve(ge(t),"overrideContext",(function(e){var n=e.id,r=e.path,a=e.rendererID,i=e.wasForwarded,o=e.value;i||t.overrideValueAtPath({id:n,path:r,rendererID:a,type:"context",value:o})})),ve(ge(t),"overrideHookState",(function(e){var n=e.id;e.hookID;var r=e.path,a=e.rendererID,i=e.wasForwarded,o=e.value;i||t.overrideValueAtPath({id:n,path:r,rendererID:a,type:"hooks",value:o})})),ve(ge(t),"overrideProps",(function(e){var n=e.id,r=e.path,a=e.rendererID,i=e.wasForwarded,o=e.value;i||t.overrideValueAtPath({id:n,path:r,rendererID:a,type:"props",value:o})})),ve(ge(t),"overrideState",(function(e){var n=e.id,r=e.path,a=e.rendererID,i=e.wasForwarded,o=e.value;i||t.overrideValueAtPath({id:n,path:r,rendererID:a,type:"state",value:o})})),ve(ge(t),"reloadAndProfile",(function(e){Object(u.e)(s.k,"true"),Object(u.e)(s.j,e?"true":"false"),t._bridge.send("reloadAppForProfiling")})),ve(ge(t),"renamePath",(function(e){var n=e.hookID,r=e.id,a=e.newPath,i=e.oldPath,o=e.rendererID,s=e.type,u=t._rendererInterfaces[o];null==u?console.warn('Invalid renderer id "'.concat(o,'" for element "').concat(r,'"')):u.renamePath(s,r,n,i,a)})),ve(ge(t),"setTraceUpdatesEnabled",(function(e){for(var n in t._traceUpdatesEnabled=e,G(e),t._rendererInterfaces){t._rendererInterfaces[n].setTraceUpdatesEnabled(e)}})),ve(ge(t),"syncSelectionFromNativeElementsPanel",(function(){var e=window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0;null!=e&&t.selectNode(e)})),ve(ge(t),"shutdown",(function(){t.emit("shutdown")})),ve(ge(t),"startProfiling",(function(e){for(var n in t._recordChangeDescriptions=e,t._isProfiling=!0,t._rendererInterfaces){t._rendererInterfaces[n].startProfiling(e)}t._bridge.send("profilingStatus",t._isProfiling)})),ve(ge(t),"stopProfiling",(function(){for(var e in t._isProfiling=!1,t._recordChangeDescriptions=!1,t._rendererInterfaces){t._rendererInterfaces[e].stopProfiling()}t._bridge.send("profilingStatus",t._isProfiling)})),ve(ge(t),"stopInspectingNative",(function(e){t._bridge.send("stopInspectingNative",e)})),ve(ge(t),"storeAsGlobal",(function(e){var n=e.count,r=e.id,a=e.path,i=e.rendererID,o=t._rendererInterfaces[i];null==o?console.warn('Invalid renderer id "'.concat(i,'" for element "').concat(r,'"')):o.storeAsGlobal(r,a,n)})),ve(ge(t),"updateConsolePatchSettings",(function(e){var t=e.appendComponentStack,n=e.breakOnConsoleErrors,r=e.showInlineWarningsAndErrors,a=e.hideConsoleLogsInStrictMode,i=e.browserTheme;Object(Q.a)({appendComponentStack:t,breakOnConsoleErrors:n,showInlineWarningsAndErrors:r,hideConsoleLogsInStrictMode:a,browserTheme:i})})),ve(ge(t),"updateComponentFilters",(function(e){for(var n in t._rendererInterfaces){t._rendererInterfaces[n].updateComponentFilters(e)}})),ve(ge(t),"viewAttributeSource",(function(e){var n=e.id,r=e.path,a=e.rendererID,i=t._rendererInterfaces[a];null==i?console.warn('Invalid renderer id "'.concat(a,'" for element "').concat(n,'"')):i.prepareViewAttributeSource(n,r)})),ve(ge(t),"viewElementSource",(function(e){var n=e.id,r=e.rendererID,a=t._rendererInterfaces[r];null==a?console.warn('Invalid renderer id "'.concat(r,'" for element "').concat(n,'"')):a.prepareViewElementSource(n)})),ve(ge(t),"onTraceUpdates",(function(e){t.emit("traceUpdates",e)})),ve(ge(t),"onFastRefreshScheduled",(function(){s.s&&be("onFastRefreshScheduled"),t._bridge.send("fastRefreshScheduled")})),ve(ge(t),"onHookOperations",(function(e){if(s.s&&be("onHookOperations","(".concat(e.length,") [").concat(e.join(", "),"]")),t._bridge.send("operations",e),null!==t._persistedSelection){var n=e[0];if(t._persistedSelection.rendererID===n){var r=t._rendererInterfaces[n];if(null==r)console.warn('Invalid renderer id "'.concat(n,'"'));else{var a=t._persistedSelectionMatch,i=r.getBestMatchForTrackedPath();t._persistedSelectionMatch=i;var o=null!==a?a.id:null,u=null!==i?i.id:null;o!==u&&null!==u&&t._bridge.send("selectFiber",u),null!==i&&i.isFullMatch&&(t._persistedSelection=null,t._persistedSelectionMatch=null,r.setTrackedPath(null))}}}})),ve(ge(t),"_throttledPersistSelection",o()((function(e,n){var r=t._rendererInterfaces[e],a=null!=r?r.getPathForElement(n):null;null!==a?Object(u.e)(s.i,JSON.stringify({rendererID:e,path:a})):Object(u.d)(s.i)}),1e3)),"true"===Object(u.c)(s.k)&&(t._recordChangeDescriptions="true"===Object(u.c)(s.j),t._isProfiling=!0,Object(u.d)(s.j),Object(u.d)(s.k));var n=Object(u.c)(s.i);null!=n&&(t._persistedSelection=JSON.parse(n)),t._bridge=e,e.addListener("clearErrorsAndWarnings",t.clearErrorsAndWarnings),e.addListener("clearErrorsForFiberID",t.clearErrorsForFiberID),e.addListener("clearWarningsForFiberID",t.clearWarningsForFiberID),e.addListener("copyElementPath",t.copyElementPath),e.addListener("deletePath",t.deletePath),e.addListener("getBackendVersion",t.getBackendVersion),e.addListener("getBridgeProtocol",t.getBridgeProtocol),e.addListener("getProfilingData",t.getProfilingData),e.addListener("getProfilingStatus",t.getProfilingStatus),e.addListener("getOwnersList",t.getOwnersList),e.addListener("inspectElement",t.inspectElement),e.addListener("logElementToConsole",t.logElementToConsole),e.addListener("overrideError",t.overrideError),e.addListener("overrideSuspense",t.overrideSuspense),e.addListener("overrideValueAtPath",t.overrideValueAtPath),e.addListener("reloadAndProfile",t.reloadAndProfile),e.addListener("renamePath",t.renamePath),e.addListener("setTraceUpdatesEnabled",t.setTraceUpdatesEnabled),e.addListener("startProfiling",t.startProfiling),e.addListener("stopProfiling",t.stopProfiling),e.addListener("storeAsGlobal",t.storeAsGlobal),e.addListener("syncSelectionFromNativeElementsPanel",t.syncSelectionFromNativeElementsPanel),e.addListener("shutdown",t.shutdown),e.addListener("updateConsolePatchSettings",t.updateConsolePatchSettings),e.addListener("updateComponentFilters",t.updateComponentFilters),e.addListener("viewAttributeSource",t.viewAttributeSource),e.addListener("viewElementSource",t.viewElementSource),e.addListener("overrideContext",t.overrideContext),e.addListener("overrideHookState",t.overrideHookState),e.addListener("overrideProps",t.overrideProps),e.addListener("overrideState",t.overrideState),t._isProfiling&&e.send("profilingStatus",!0);t._bridge.send("backendVersion","4.27.2-7f747b80e"),t._bridge.send("bridgeProtocol",ue);var r,l=!1;try{localStorage.getItem("test"),l=!0}catch(e){}return e.send("isBackendStorageAPISupported",l),e.send("isSynchronousXHRSupported",Object(pe.k)()),function(e,t){function n(e){e&&"function"==typeof e.addEventListener?(e.addEventListener("click",i,!0),e.addEventListener("mousedown",s,!0),e.addEventListener("mouseover",s,!0),e.addEventListener("mouseup",s,!0),e.addEventListener("pointerdown",u,!0),e.addEventListener("pointerover",l,!0),e.addEventListener("pointerup",p,!0)):t.emit("startInspectingNative")}function r(){N(t),a(window),P.forEach((function(e){try{a(e.contentWindow)}catch(e){}})),P=new Set}function a(e){e&&"function"==typeof e.removeEventListener?(e.removeEventListener("click",i,!0),e.removeEventListener("mousedown",s,!0),e.removeEventListener("mouseover",s,!0),e.removeEventListener("mouseup",s,!0),e.removeEventListener("pointerdown",u,!0),e.removeEventListener("pointerover",l,!0),e.removeEventListener("pointerup",p,!0)):t.emit("stopInspectingNative")}function i(t){t.preventDefault(),t.stopPropagation(),r(),e.send("stopInspectingNative",!0)}function s(e){e.preventDefault(),e.stopPropagation()}function u(e){e.preventDefault(),e.stopPropagation(),d(e.target)}function l(e){e.preventDefault(),e.stopPropagation();var r=e.target;if("IFRAME"===r.tagName){var a=r;try{P.has(a)||(n(a.contentWindow),P.add(a))}catch(e){}}j([r],null,t,!1),d(r)}function p(e){e.preventDefault(),e.stopPropagation()}e.addListener("clearNativeElementHighlight",(function(){N(t)})),e.addListener("highlightNativeElement",(function(n){var r=n.displayName,a=n.hideAfterTimeout,i=n.id,o=n.openNativeElementsPanel,s=n.rendererID,u=n.scrollIntoView,l=t.rendererInterfaces[s];null==l&&console.warn('Invalid renderer id "'.concat(s,'" for element "').concat(i,'"'));var c=null;if(null!=l&&(c=l.findNativeNodesForFiberID(i)),null!=c&&null!=c[0]){var p=c[0];u&&"function"==typeof p.scrollIntoView&&p.scrollIntoView({block:"nearest",inline:"nearest"}),j(c,r,t,a),o&&(window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0=p,e.send("syncSelectionToNativeElementsPanel"))}else N(t)})),e.addListener("shutdown",r),e.addListener("startInspectingNative",(function(){n(window)})),e.addListener("stopInspectingNative",r);var d=o()(c((function(n){var r=t.getIDForNode(n);null!==r&&e.send("selectFiber",r)})),200,{leading:!1})}(e,ge(t)),r=ge(t),($=r).addListener("traceUpdates",K),t}return t=i,n=[{key:"getInstanceAndStyle",value:function(e){var t=e.id,n=e.rendererID,r=this._rendererInterfaces[n];return null==r?(console.warn('Invalid renderer id "'.concat(n,'"')),null):r.getInstanceAndStyle(t)}},{key:"getBestMatchingRendererInterface",value:function(e){var t=null;for(var n in this._rendererInterfaces){var r=this._rendererInterfaces[n],a=r.getFiberForNative(e);if(null!==a){if(a.stateNode===e)return r;null===t&&(t=r)}}return t}},{key:"getIDForNode",value:function(e){var t=this.getBestMatchingRendererInterface(e);if(null!=t)try{return t.getFiberIDForNative(e,!0)}catch(e){}return null}},{key:"selectNode",value:function(e){var t=this.getIDForNode(e);null!==t&&this._bridge.send("selectFiber",t)}},{key:"setRendererInterface",value:function(e,t){this._rendererInterfaces[e]=t,this._isProfiling&&t.startProfiling(this._recordChangeDescriptions),t.setTraceUpdatesEnabled(this._traceUpdatesEnabled);var n=this._persistedSelection;null!==n&&n.rendererID===e&&t.setTrackedPath(n.path)}},{key:"onUnsupportedRenderer",value:function(e){this._bridge.send("unsupportedRendererVersion",e)}},{key:"rendererInterfaces",get:function(){return this._rendererInterfaces}}],n&&fe(t.prototype,n),r&&fe(t,r),i}(a);function _e(e){return _e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(e)}function xe(e){return function(e){if(Array.isArray(e))return ke(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ke(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ke(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Se=n(14),Ee=n(1),Ce=n(0);function De(e,t,n){var r=e[t];return e[t]=function(e){return n.call(this,r,arguments)},r}function Oe(e,t){for(var n in t)e[n]=t[n]}function Ne(e){"function"==typeof e.forceUpdate?e.forceUpdate():null!=e.updater&&"function"==typeof e.updater.enqueueForceUpdate&&e.updater.enqueueForceUpdate(this,(function(){}),"forceUpdate")}function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){Te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ae(e){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ae(e)}function Re(e){var t=null,n=null;if(null!=e._currentElement){e._currentElement.key&&(n=String(e._currentElement.key));var r=e._currentElement.type;"string"==typeof r?t=r:"function"==typeof r&&(t=Object(Ce.h)(r))}return{displayName:t,key:n}}function Ie(e){if(null!=e._currentElement){var t=e._currentElement.type;if("function"==typeof t)return null!==e.getPublicInstance()?Ee.e:Ee.h;if("string"==typeof t)return Ee.i}return Ee.k}function Me(e){var t=[];if("object"!==Ae(e));else if(null===e._currentElement||!1===e._currentElement);else if(e._renderedComponent){var n=e._renderedComponent;Ie(n)!==Ee.k&&t.push(n)}else if(e._renderedChildren){var r=e._renderedChildren;for(var a in r){var i=r[a];Ie(i)!==Ee.k&&t.push(i)}}return t}function Le(e,t,n,r){var a,i=new Map,o=new WeakMap,u=new WeakMap,l=null,c=function(e){return null};function p(e){if("object"!==Ae(e)||null===e)throw new Error("Invalid internal instance: "+e);if(!o.has(e)){var t=Object(Ce.k)();o.set(e,t),i.set(t,e)}return o.get(e)}function d(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n.ComponentTree?(l=function(e,t){var r=n.ComponentTree.getClosestInstanceFromNode(e);return o.get(r)||null},a=function(e){var t=i.get(e);return n.ComponentTree.getNodeFromInstance(t)},c=function(e){return n.ComponentTree.getClosestInstanceFromNode(e)}):n.Mount.getID&&n.Mount.getNode&&(l=function(e,t){return null},a=function(e){return null});var f=[],m=null;function h(e,t,n){var r=0===n;if(s.s&&console.log("%crecordMount()","color: green; font-weight: bold;",t,Re(e).displayName),r){var a=null!=e._currentElement&&null!=e._currentElement._owner;S(s.l),S(t),S(Ee.m),S(0),S(0),S(0),S(a?1:0)}else{var i=Ie(e),o=Re(e),u=o.displayName,l=o.key,c=null!=e._currentElement&&null!=e._currentElement._owner?p(e._currentElement._owner):0,d=E(u),f=E(l);S(s.l),S(t),S(i),S(n),S(c),S(d),S(f)}}function g(e,t,n){S(s.o),S(t);var r=n.map(p);S(r.length);for(var a=0;a<r.length;a++)S(r[a])}function y(e,t,n){s.s&&console.group("crawlAndRecordInitialMounts() id:",e);var r=i.get(e);null!=r&&(u.set(r,n),h(r,e,t),Me(r).forEach((function(t){return y(p(t),e,n)}))),s.s&&console.groupEnd()}n.Reconciler&&(m=function(e,t){var n={};for(var r in t)n[r]=De(e,r,t[r]);return n}(n.Reconciler,{mountComponent:function(e,t){var n=t[0],r=t[3];if(Ie(n)===Ee.k)return e.apply(this,t);if(void 0===r._topLevelWrapper)return e.apply(this,t);var a=p(n);h(n,a,f.length>0?f[f.length-1]:0),f.push(a),u.set(n,p(r._topLevelWrapper));try{var i=e.apply(this,t);return f.pop(),i}catch(e){throw f=[],e}finally{if(0===f.length){var o=u.get(n);if(void 0===o)throw new Error("Expected to find root ID.");k(o)}}},performUpdateIfNecessary:function(e,t){var n=t[0];if(Ie(n)===Ee.k)return e.apply(this,t);var r=p(n);f.push(r);var a=Me(n);try{var i=e.apply(this,t),o=Me(n);return d(a,o)||g(n,r,o),f.pop(),i}catch(e){throw f=[],e}finally{if(0===f.length){var s=u.get(n);if(void 0===s)throw new Error("Expected to find root ID.");k(s)}}},receiveComponent:function(e,t){var n=t[0];if(Ie(n)===Ee.k)return e.apply(this,t);var r=p(n);f.push(r);var a=Me(n);try{var i=e.apply(this,t),o=Me(n);return d(a,o)||g(n,r,o),f.pop(),i}catch(e){throw f=[],e}finally{if(0===f.length){var s=u.get(n);if(void 0===s)throw new Error("Expected to find root ID.");k(s)}}},unmountComponent:function(e,t){var n=t[0];if(Ie(n)===Ee.k)return e.apply(this,t);var r=p(n);f.push(r);try{var a=e.apply(this,t);return f.pop(),function(e,t){w.push(t),i.delete(t)}(0,r),a}catch(e){throw f=[],e}finally{if(0===f.length){var o=u.get(n);if(void 0===o)throw new Error("Expected to find root ID.");k(o)}}}}));var v=[],b=new Map,w=[],_=0,x=null;function k(n){if(0!==v.length||0!==w.length||null!==x){var r=w.length+(null===x?0:1),a=new Array(3+_+(r>0?2+r:0)+v.length),i=0;if(a[i++]=t,a[i++]=n,a[i++]=_,b.forEach((function(e,t){a[i++]=t.length;for(var n=Object(Ce.p)(t),r=0;r<n.length;r++)a[i+r]=n[r];i+=t.length})),r>0){a[i++]=s.m,a[i++]=r;for(var o=0;o<w.length;o++)a[i++]=w[o];null!==x&&(a[i]=x,i++)}for(var u=0;u<v.length;u++)a[i+u]=v[u];i+=v.length,s.s&&Object(Ce.m)(a),e.emit("operations",a),v.length=0,w=[],x=null,b.clear(),_=0}}function S(e){v.push(e)}function E(e){if(null===e)return 0;var t=b.get(e);if(void 0!==t)return t;var n=b.size+1;return b.set(e,n),_+=e.length+1,n}var C=null,D={};function O(e){return function(t){var n=D[e];if(!n)return!1;for(var r=0;r<t.length;r++)if(!(n=n[t[r]]))return!1;return!0}}function N(e){var t=i.get(e);if(null==t)return null;var n=Re(t),r=n.displayName,a=n.key,o=Ie(t),s=null,u=null,l=null,c=null,d=null,f=t._currentElement;if(null!==f){l=f.props,d=null!=f._source?f._source:null;var m=f._owner;if(m)for(u=[];null!=m;)u.push({displayName:Re(m).displayName||"Unknown",id:p(m),key:f.key,type:Ie(m)}),m._currentElement&&(m=m._currentElement._owner)}var h=t._instance;null!=h&&(s=h.context||null,c=h.state||null);return{id:e,canEditHooks:!1,canEditFunctionProps:!1,canEditHooksAndDeletePaths:!1,canEditHooksAndRenamePaths:!1,canEditFunctionPropsDeletePaths:!1,canEditFunctionPropsRenamePaths:!1,canToggleError:!1,isErrored:!1,targetErrorBoundaryID:null,canToggleSuspense:!1,canViewSource:o===Ee.e||o===Ee.h,hasLegacyContext:!0,displayName:r,type:o,key:null!=a?a:null,context:s,hooks:null,props:l,state:c,errors:[],warnings:[],owners:u,source:d,rootType:null,rendererPackageName:null,rendererVersion:null,plugins:{stylex:null}}}return{clearErrorsAndWarnings:function(){},clearErrorsForFiberID:function(e){},clearWarningsForFiberID:function(e){},cleanup:function(){null!==m&&(n.Component?Oe(n.Component.Mixin,m):Oe(n.Reconciler,m)),m=null},copyElementPath:function(e,t){var n=N(e);null!==n&&Object(pe.b)(Object(Ce.j)(n,t))},deletePath:function(e,t,n,r){var a=i.get(t);if(null!=a){var o=a._instance;if(null!=o)switch(e){case"context":Object(Ce.c)(o.context,r),Ne(o);break;case"hooks":throw new Error("Hooks not supported by this renderer");case"props":var s=a._currentElement;a._currentElement=Pe(Pe({},s),{},{props:Object(pe.c)(s.props,r)}),Ne(o);break;case"state":Object(Ce.c)(o.state,r),Ne(o)}}},flushInitialOperations:function(){var e=n.Mount._instancesByReactRootID||n.Mount._instancesByContainerID;for(var t in e){var r=p(e[t]);y(r,0,r),k(r)}},getBestMatchForTrackedPath:function(){return null},getDisplayNameForFiberID:function(e){var t=i.get(e);return t?Re(t).displayName:null},getFiberForNative:c,getFiberIDForNative:l,getInstanceAndStyle:function(e){var t=null,n=null,r=i.get(e);if(null!=r){t=r._instance||null;var a=r._currentElement;null!=a&&null!=a.props&&(n=a.props.style||null)}return{instance:t,style:n}},findNativeNodesForFiberID:function(e){var t=a(e);return null==t?null:[t]},getOwnersList:function(e){return null},getPathForElement:function(e){return null},getProfilingData:function(){throw new Error("getProfilingData not supported by this renderer")},handleCommitFiberRoot:function(){throw new Error("handleCommitFiberRoot not supported by this renderer")},handleCommitFiberUnmount:function(){throw new Error("handleCommitFiberUnmount not supported by this renderer")},handlePostCommitFiberRoot:function(){throw new Error("handlePostCommitFiberRoot not supported by this renderer")},inspectElement:function(e,t,n,a){(a||C!==t)&&(C=t,D={});var o=N(t);return null===o?{id:t,responseID:e,type:"not-found"}:(null!==n&&function(e){var t=D;e.forEach((function(e){t[e]||(t[e]={}),t=t[e]}))}(n),function(e){var t=i.get(e);if(null!=t)switch(Ie(t)){case Ee.e:r.$r=t._instance;break;case Ee.h:var n=t._currentElement;if(null==n)return void console.warn('Could not find element with id "'.concat(e,'"'));r.$r={props:n.props,type:n.type};break;default:r.$r=null}else console.warn('Could not find instance with id "'.concat(e,'"'))}(t),o.context=Object(pe.a)(o.context,O("context")),o.props=Object(pe.a)(o.props,O("props")),o.state=Object(pe.a)(o.state,O("state")),{id:t,responseID:e,type:"full-data",value:o})},logElementToConsole:function(e){var t=N(e);if(null!==t){var n="function"==typeof console.groupCollapsed;n&&console.groupCollapsed("[Click to expand] %c<".concat(t.displayName||"Component"," />"),"color: var(--dom-tag-name-color); font-weight: normal;"),null!==t.props&&console.log("Props:",t.props),null!==t.state&&console.log("State:",t.state),null!==t.context&&console.log("Context:",t.context);var r=a(e);null!==r&&console.log("Node:",r),(window.chrome||/firefox/i.test(navigator.userAgent))&&console.log("Right-click any value to save it as a global variable for further inspection."),n&&console.groupEnd()}else console.warn('Could not find element with id "'.concat(e,'"'))},overrideError:function(){throw new Error("overrideError not supported by this renderer")},overrideSuspense:function(){throw new Error("overrideSuspense not supported by this renderer")},overrideValueAtPath:function(e,t,n,r,a){var o=i.get(t);if(null!=o){var s=o._instance;if(null!=s)switch(e){case"context":Object(Ce.o)(s.context,r,a),Ne(s);break;case"hooks":throw new Error("Hooks not supported by this renderer");case"props":var u=o._currentElement;o._currentElement=Pe(Pe({},u),{},{props:Object(pe.e)(u.props,r,a)}),Ne(s);break;case"state":Object(Ce.o)(s.state,r,a),Ne(s)}}},renamePath:function(e,t,n,r,a){var o=i.get(t);if(null!=o){var s=o._instance;if(null!=s)switch(e){case"context":Object(Ce.n)(s.context,r,a),Ne(s);break;case"hooks":throw new Error("Hooks not supported by this renderer");case"props":var u=o._currentElement;o._currentElement=Pe(Pe({},u),{},{props:Object(pe.d)(u.props,r,a)}),Ne(s);break;case"state":Object(Ce.n)(s.state,r,a),Ne(s)}}},patchConsoleForStrictMode:function(){},prepareViewAttributeSource:function(e,t){var n=N(e);null!==n&&(window.$attribute=Object(Ce.j)(n,t))},prepareViewElementSource:function(e){var t=i.get(e);if(null!=t){var n=t._currentElement;null!=n?r.$type=n.type:console.warn('Could not find element with id "'.concat(e,'"'))}else console.warn('Could not find instance with id "'.concat(e,'"'))},renderer:n,setTraceUpdatesEnabled:function(e){},setTrackedPath:function(e){},startProfiling:function(){},stopProfiling:function(){},storeAsGlobal:function(e,t,n){var r=N(e);if(null!==r){var a=Object(Ce.j)(r,t),i="$reactTemp".concat(n);window[i]=a,console.log(i),console.log(a)}},unpatchConsoleForStrictMode:function(){},updateComponentFilters:function(e){}}}function Fe(e,t){var n=!1,r={bottom:0,left:0,right:0,top:0},a=t[e];if(null!=a){for(var i=0,o=Object.keys(r);i<o.length;i++){r[o[i]]=a}n=!0}var s=t[e+"Horizontal"];if(null!=s)r.left=s,r.right=s,n=!0;else{var u=t[e+"Left"];null!=u&&(r.left=u,n=!0);var l=t[e+"Right"];null!=l&&(r.right=l,n=!0);var c=t[e+"End"];null!=c&&(r.right=c,n=!0);var p=t[e+"Start"];null!=p&&(r.left=p,n=!0)}var d=t[e+"Vertical"];if(null!=d)r.bottom=d,r.top=d,n=!0;else{var f=t[e+"Bottom"];null!=f&&(r.bottom=f,n=!0);var m=t[e+"Top"];null!=m&&(r.top=m,n=!0)}return n?r:null}var ze=n(6);function Be(e){return Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Be(e)}function Ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qe(e,t,n,r){e.addListener("NativeStyleEditor_measure",(function(r){var a=r.id,i=r.rendererID;He(t,e,n,a,i)})),e.addListener("NativeStyleEditor_renameAttribute",(function(r){var a=r.id,i=r.rendererID,o=r.oldName,s=r.newName,u=r.value;!function(e,t,n,r,a,i){var o,s=e.getInstanceAndStyle({id:t,rendererID:n});if(!s||!s.style)return;var u,l=s.instance,c=s.style,p=a?(Ue(o={},r,void 0),Ue(o,a,i),o):Ue({},r,void 0);if(null!==l&&"function"==typeof l.setNativeProps){var d=Ve.get(t);d?Object.assign(d,p):Ve.set(t,p),l.setNativeProps({style:p})}else if(Object(ze.a)(c)){var f=c.length-1;"object"!==Be(c[f])||Object(ze.a)(c[f])?e.overrideValueAtPath({type:"props",id:t,rendererID:n,path:["style"],value:c.concat([p])}):(delete(u=We(c[f]))[r],a?u[a]=i:u[r]=void 0,e.overrideValueAtPath({type:"props",id:t,rendererID:n,path:["style",f],value:u}))}else"object"===Be(c)?(delete(u=We(c))[r],a?u[a]=i:u[r]=void 0,e.overrideValueAtPath({type:"props",id:t,rendererID:n,path:["style"],value:u})):e.overrideValueAtPath({type:"props",id:t,rendererID:n,path:["style"],value:[c,p]});e.emit("hideNativeHighlight")}(t,a,i,o,s,u),setTimeout((function(){return He(t,e,n,a,i)}))})),e.addListener("NativeStyleEditor_setValue",(function(r){var a=r.id,i=r.rendererID,o=r.name,s=r.value;!function(e,t,n,r,a){var i=e.getInstanceAndStyle({id:t,rendererID:n});if(!i||!i.style)return;var o=i.instance,s=i.style,u=Ue({},r,a);if(null!==o&&"function"==typeof o.setNativeProps){var l=Ve.get(t);l?Object.assign(l,u):Ve.set(t,u),o.setNativeProps({style:u})}else if(Object(ze.a)(s)){var c=s.length-1;"object"!==Be(s[c])||Object(ze.a)(s[c])?e.overrideValueAtPath({type:"props",id:t,rendererID:n,path:["style"],value:s.concat([u])}):e.overrideValueAtPath({type:"props",id:t,rendererID:n,path:["style",c,r],value:a})}else e.overrideValueAtPath({type:"props",id:t,rendererID:n,path:["style"],value:[s,u]});e.emit("hideNativeHighlight")}(t,a,i,o,s),setTimeout((function(){return He(t,e,n,a,i)}))})),e.send("isNativeStyleEditorSupported",{isSupported:!0,validAttributes:r})}var $e={top:0,left:0,right:0,bottom:0},Ve=new Map;function He(e,t,n,r,a){var i=e.getInstanceAndStyle({id:r,rendererID:a});if(i&&i.style){var o=i.instance,s=n(i.style),u=Ve.get(r);null!=u&&(s=Object.assign({},s,u)),o&&"function"==typeof o.measure?o.measure((function(e,n,a,i,o,u){if("number"==typeof e){var l=null!=s&&Fe("margin",s)||$e,c=null!=s&&Fe("padding",s)||$e;t.send("NativeStyleEditor_styleAndLayout",{id:r,layout:{x:e,y:n,width:a,height:i,left:o,top:u,margin:l,padding:c},style:s||null})}else t.send("NativeStyleEditor_styleAndLayout",{id:r,layout:null,style:s||null})})):t.send("NativeStyleEditor_styleAndLayout",{id:r,layout:null,style:s||null})}else t.send("NativeStyleEditor_styleAndLayout",{id:r,layout:null,style:null})}function We(e){var t={};for(var n in e)t[n]=e[n];return t}function Ge(e){!function(e){if(null==e.getConsolePatchSettings)return;var t=e.getConsolePatchSettings();if(null==t)return;var n=function(e){var t,n,r,a,i,o=JSON.parse(null!=e?e:"{}"),s=o.appendComponentStack,u=o.breakOnConsoleErrors,l=o.showInlineWarningsAndErrors,c=o.hideConsoleLogsInStrictMode,p=o.browserTheme;return{appendComponentStack:null===(t=Object(Ce.a)(s))||void 0===t||t,breakOnConsoleErrors:null!==(n=Object(Ce.a)(u))&&void 0!==n&&n,showInlineWarningsAndErrors:null===(r=Object(Ce.a)(l))||void 0===r||r,hideConsoleLogsInStrictMode:null!==(a=Object(Ce.a)(c))&&void 0!==a&&a,browserTheme:null!==(i=Object(Ce.b)(p))&&void 0!==i?i:"dark"}}(t);if(null==n)return;Object(Q.f)(n)}(e)}!function(e){if(e.hasOwnProperty("__REACT_DEVTOOLS_GLOBAL_HOOK__"))return null;var t=console,n=null;function r(e){var r=e.hideConsoleLogsInStrictMode,a=e.browserTheme;if(null===n){var i={};n=function(){for(var e in i)try{t[e]=i[e]}catch(e){}},["error","group","groupCollapsed","info","log","trace","warn"].forEach((function(e){try{var n=i[e]=t[e].__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__?t[e].__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__:t[e],o=function(){if(!r){var t;switch(e){case"warn":t="light"===a?"rgba(250, 180, 50, 0.75)":"rgba(250, 180, 50, 0.5)";break;case"error":t="light"===a?"rgba(250, 123, 130, 0.75)":"rgba(250, 123, 130, 0.5)";break;default:t="light"===a?"rgba(125, 125, 125, 0.75)":"rgba(125, 125, 125, 0.5)"}if(!t)throw Error("Console color is not defined");for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];n.apply(void 0,xe((u=o,l="color: ".concat(t),null==u||0===u.length||"string"==typeof u[0]&&u[0].match(/([^%]|^)(%c)/g)||void 0===l?u:"string"==typeof u[0]&&u[0].match(/([^%]|^)((%%)*)(%([oOdisf]))/g)?["%c".concat(u[0]),l].concat(xe(u.slice(1))):[u.reduce((function(e,t,n){switch(n>0&&(e+=" "),_e(t)){case"string":case"boolean":case"symbol":return e+"%s";case"number":return e+(Number.isInteger(t)?"%i":"%f");default:return e+"%o"}}),"%c"),l].concat(xe(u)))))}var u,l};o.__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__=n,n.__REACT_DEVTOOLS_STRICT_MODE_OVERRIDE_METHOD__=o,t[e]=o}catch(e){}}))}}var a=0,i=!1,o=[],s=[];function u(e){var t=e.stack.split("\n");return t.length>1?t[1]:null}var l={},c=new Map,p={},d=new Map,f={rendererInterfaces:c,listeners:p,renderers:d,emit:function(e,t){p[e]&&p[e].map((function(e){return e(t)}))},getFiberRoots:function(e){var t=l;return t[e]||(t[e]=new Set),t[e]},inject:function(t){var n=++a;d.set(n,t);var r=i?"deadcode":function(e){try{if("string"==typeof e.version)return e.bundleType>0?"development":"production";var t=Function.prototype.toString;if(e.Mount&&e.Mount._renderNewRootComponent){var n=t.call(e.Mount._renderNewRootComponent);return 0!==n.indexOf("function")?"production":-1!==n.indexOf("storedMeasure")?"development":-1!==n.indexOf("should be a pure function")?-1!==n.indexOf("NODE_ENV")||-1!==n.indexOf("development")||-1!==n.indexOf("true")?"development":-1!==n.indexOf("nextElement")||-1!==n.indexOf("nextComponent")?"unminified":"development":-1!==n.indexOf("nextElement")||-1!==n.indexOf("nextComponent")?"unminified":"outdated"}}catch(e){}return"production"}(t);try{Object(Q.d)(t),Object(Q.b)()}catch(e){}var o=e.__REACT_DEVTOOLS_ATTACH__;if("function"==typeof o){var s=o(f,n,t,e);f.rendererInterfaces.set(n,s)}return f.emit("renderer",{id:n,renderer:t,reactBuildType:r}),n},on:function(e,t){p[e]||(p[e]=[]),p[e].push(t)},off:function(e,t){if(p[e]){var n=p[e].indexOf(t);-1!==n&&p[e].splice(n,1),p[e].length||delete p[e]}},sub:function(e,t){return f.on(e,t),function(){return f.off(e,t)}},supportsFiber:!0,checkDCE:function(e){try{Function.prototype.toString.call(e).indexOf("^_^")>-1&&(i=!0,setTimeout((function(){throw new Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build")})))}catch(e){}},onCommitFiberUnmount:function(e,t){var n=c.get(e);null!=n&&n.handleCommitFiberUnmount(t)},onCommitFiberRoot:function(e,t,n){var r=f.getFiberRoots(e),a=t.current,i=r.has(t),o=null==a.memoizedState||null==a.memoizedState.element;i||o?i&&o&&r.delete(t):r.add(t);var s=c.get(e);null!=s&&s.handleCommitFiberRoot(t,n)},onPostCommitFiberRoot:function(e,t){var n=c.get(e);null!=n&&n.handlePostCommitFiberRoot(t)},setStrictMode:function(e,t){var a=c.get(e);null!=a?t?a.patchConsoleForStrictMode():a.unpatchConsoleForStrictMode():t?r({hideConsoleLogsInStrictMode:!0===window.__REACT_DEVTOOLS_HIDE_CONSOLE_LOGS_IN_STRICT_MODE__,browserTheme:window.__REACT_DEVTOOLS_BROWSER_THEME__}):null!==n&&(n(),n=null)},getInternalModuleRanges:function(){return s},registerInternalModuleStart:function(e){var t=u(e);null!==t&&o.push(t)},registerInternalModuleStop:function(e){if(o.length>0){var t=o.pop(),n=u(e);null!==n&&s.push([t,n])}}};Object.defineProperty(e,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!1,enumerable:!1,get:function(){return f}})}(window);var Ke=window.__REACT_DEVTOOLS_GLOBAL_HOOK__,Ye=Object(Ce.g)();function Qe(e){if(s.s){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];(t=console).log.apply(t,["%c[core/backend] %c".concat(e),"color: teal; font-weight: bold;","font-weight: bold;"].concat(r))}}function Xe(e){if(null!=Ke){var t=e||{},n=t.host,r=void 0===n?"localhost":n,a=t.nativeStyleEditorValidAttributes,i=t.useHttps,o=void 0!==i&&i,u=t.port,l=void 0===u?8097:u,c=t.websocket,p=t.resolveRNStyle,d=void 0===p?null:p,f=t.retryConnectionDelay,m=void 0===f?2e3:f,h=t.isAppActive,g=void 0===h?function(){return!0}:h,y=t.devToolsSettingsManager,v=o?"wss":"ws",b=null;if(null!=y)try{Ge(y)}catch(e){console.error(e)}if(g()){var w=null,_=[],x=v+"://"+r+":"+l,k=c||new window.WebSocket(x);k.onclose=function(){s.s&&Qe("WebSocket.onclose");null!==w&&w.emit("shutdown");S()},k.onerror=function(){s.s&&Qe("WebSocket.onerror");S()},k.onmessage=function(e){var t;try{if("string"!=typeof e.data)throw Error();t=JSON.parse(e.data),s.s&&Qe("WebSocket.onmessage",t)}catch(t){return void console.error("[React DevTools] Failed to parse JSON: "+e.data)}_.forEach((function(e){try{e(t)}catch(e){throw console.log("[React DevTools] Error calling listener",t),console.log("error:",e),e}}))},k.onopen=function(){(w=new ce({listen:function(e){return _.push(e),function(){var t=_.indexOf(e);t>=0&&_.splice(t,1)}},send:function(e,t,n){k.readyState===k.OPEN?(s.s&&Qe("wall.send()",e,t),k.send(JSON.stringify({event:e,payload:t}))):(s.s&&Qe("wall.send()","Shutting down bridge because of closed WebSocket connection"),null!==w&&w.shutdown(),S())}})).addListener("updateComponentFilters",(function(e){Ye=e})),null!=y&&null!=w&&w.addListener("updateConsolePatchSettings",(function(e){return function(e,t){null!=e.setConsolePatchSettings&&e.setConsolePatchSettings(JSON.stringify(t))}(y,e)})),null==window.__REACT_DEVTOOLS_COMPONENT_FILTERS__&&w.send("overrideComponentFilters",Ye);var e=new we(w);if(e.addListener("shutdown",(function(){Ke.emit("shutdown")})),function(e,t,n){if(null==e)return function(){};var r=[e.sub("renderer-attached",(function(e){var n=e.id;e.renderer;var r=e.rendererInterface;t.setRendererInterface(n,r),r.flushInitialOperations()})),e.sub("unsupported-renderer-version",(function(e){t.onUnsupportedRenderer(e)})),e.sub("fastRefreshScheduled",t.onFastRefreshScheduled),e.sub("operations",t.onHookOperations),e.sub("traceUpdates",t.onTraceUpdates)],a=function(t,r){var a=e.rendererInterfaces.get(t);null==a&&("function"==typeof r.findFiberByHostInstance?a=Object(Se.a)(e,t,r,n):r.ComponentTree&&(a=Le(e,t,r,n)),null!=a&&e.rendererInterfaces.set(t,a)),null!=a?e.emit("renderer-attached",{id:t,renderer:r,rendererInterface:a}):e.emit("unsupported-renderer-version",t)};e.renderers.forEach((function(e,t){a(t,e)})),r.push(e.sub("renderer",(function(e){var t=e.id,n=e.renderer;a(t,n)}))),e.emit("react-devtools",t),e.reactDevtoolsAgent=t;var i=function(){r.forEach((function(e){return e()})),e.rendererInterfaces.forEach((function(e){e.cleanup()})),e.reactDevtoolsAgent=null};t.addListener("shutdown",i),r.push((function(){t.removeListener("shutdown",i)}))}(Ke,e,window),null!=d||null!=Ke.resolveRNStyle)qe(w,e,d||Ke.resolveRNStyle,a||Ke.nativeStyleEditorValidAttributes||null);else{var t,n,r=function(){null!==w&&qe(w,e,t,n)};Ke.hasOwnProperty("resolveRNStyle")||Object.defineProperty(Ke,"resolveRNStyle",{enumerable:!1,get:function(){return t},set:function(e){t=e,r()}}),Ke.hasOwnProperty("nativeStyleEditorValidAttributes")||Object.defineProperty(Ke,"nativeStyleEditorValidAttributes",{enumerable:!1,get:function(){return n},set:function(e){n=e,r()}})}}}else S()}function S(){null===b&&(b=setTimeout((function(){return Xe(e)}),m))}}}])}))}(nU)),nU.exports}var aU=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ZF,"__esModule",{value:!0});const iU=ez.exports,oU=aU(uz.exports),sU=aU(ne.default),uU=xz;"true"===process.env.DEV&&(tU||(tU=1,Object.defineProperty(xB,"__esModule",{value:!0}),function(){if(HB)return kB;HB=1;var e=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(kB,"__esModule",{value:!0});const t=e(ZB()),n=oe;n.WebSocket||(n.WebSocket=t.default),n.window||(n.window=oe),n.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__=[{type:1,value:7,isEnabled:!0},{type:2,value:"InternalApp",isEnabled:!0,isValid:!0},{type:2,value:"InternalAppContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStdoutContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStderrContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStdinContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalFocusContext",isEnabled:!0,isValid:!0}]}(),rU().connectToDevTools()));const lU=e=>{null==e||e.unsetMeasureFunc(),null==e||e.freeRecursive()};ZF.default=oU.default({schedulePassiveEffects:iU.unstable_scheduleCallback,cancelPassiveEffects:iU.unstable_cancelCallback,now:Date.now,getRootHostContext:()=>({isInsideText:!1}),prepareForCommit:()=>null,preparePortalMount:()=>null,clearContainer:()=>!1,shouldDeprioritizeSubtree:()=>!1,resetAfterCommit:e=>{if(e.isStaticDirty)return e.isStaticDirty=!1,void("function"==typeof e.onImmediateRender&&e.onImmediateRender());"function"==typeof e.onRender&&e.onRender()},getChildHostContext:(e,t)=>{const n="ink-text"===t||"ink-virtual-text"===t;return e.isInsideText===n?e:{isInsideText:n}},shouldSetTextContent:()=>!1,createInstance:(e,t,n,r)=>{if(r.isInsideText&&"ink-box"===e)throw new Error("<Box> can’t be nested inside <Text> component");const a="ink-text"===e&&r.isInsideText?"ink-virtual-text":e,i=uU.createNode(a);for(const[e,n]of Object.entries(t))"children"!==e&&("style"===e?uU.setStyle(i,n):"internal_transform"===e?i.internal_transform=n:"internal_static"===e?i.internal_static=!0:uU.setAttribute(i,e,n));return i},createTextInstance:(e,t,n)=>{if(!n.isInsideText)throw new Error(`Text string "${e}" must be rendered inside <Text> component`);return uU.createTextNode(e)},resetTextContent:()=>{},hideTextInstance:e=>{uU.setTextNodeValue(e,"")},unhideTextInstance:(e,t)=>{uU.setTextNodeValue(e,t)},getPublicInstance:e=>e,hideInstance:e=>{var t;null===(t=e.yogaNode)||void 0===t||t.setDisplay(sU.default.DISPLAY_NONE)},unhideInstance:e=>{var t;null===(t=e.yogaNode)||void 0===t||t.setDisplay(sU.default.DISPLAY_FLEX)},appendInitialChild:uU.appendChildNode,appendChild:uU.appendChildNode,insertBefore:uU.insertBeforeNode,finalizeInitialChildren:(e,t,n,r)=>(e.internal_static&&(r.isStaticDirty=!0,r.staticNode=e),!1),supportsMutation:!0,appendChildToContainer:uU.appendChildNode,insertInContainerBefore:uU.insertBeforeNode,removeChildFromContainer:(e,t)=>{uU.removeChildNode(e,t),lU(t.yogaNode)},prepareUpdate:(e,t,n,r,a)=>{e.internal_static&&(a.isStaticDirty=!0);const i={},o=Object.keys(r);for(const e of o)if(r[e]!==n[e]){if("style"===e&&"object"==typeof r.style&&"object"==typeof n.style){const e=r.style,t=n.style,a=Object.keys(e);for(const n of a){if("borderStyle"===n||"borderColor"===n){if("object"!=typeof i.style){const e={};i.style=e}i.style.borderStyle=e.borderStyle,i.style.borderColor=e.borderColor}if(e[n]!==t[n]){if("object"!=typeof i.style){const e={};i.style=e}i.style[n]=e[n]}}continue}i[e]=r[e]}return i},commitUpdate:(e,t)=>{for(const[n,r]of Object.entries(t))"children"!==n&&("style"===n?uU.setStyle(e,r):"internal_transform"===n?e.internal_transform=r:"internal_static"===n?e.internal_static=!0:uU.setAttribute(e,n,r))},commitTextUpdate:(e,t,n)=>{uU.setTextNodeValue(e,n)},removeChild:(e,t)=>{uU.removeChildNode(e,t),lU(t.yogaNode)}});var cU={},pU={},dU={},fU=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dU,"__esModule",{value:!0});const mU=fU(ne.default);dU.default=e=>e.getComputedWidth()-e.getComputedPadding(mU.default.EDGE_LEFT)-e.getComputedPadding(mU.default.EDGE_RIGHT)-e.getComputedBorder(mU.default.EDGE_LEFT)-e.getComputedBorder(mU.default.EDGE_RIGHT);var hU={},gU={exports:{}};const yU={single:{topLeft:"┌",topRight:"┐",bottomRight:"┘",bottomLeft:"└",vertical:"│",horizontal:"─"},double:{topLeft:"╔",topRight:"╗",bottomRight:"╝",bottomLeft:"╚",vertical:"║",horizontal:"═"},round:{topLeft:"╭",topRight:"╮",bottomRight:"╯",bottomLeft:"╰",vertical:"│",horizontal:"─"},bold:{topLeft:"┏",topRight:"┓",bottomRight:"┛",bottomLeft:"┗",vertical:"┃",horizontal:"━"},singleDouble:{topLeft:"╓",topRight:"╖",bottomRight:"╜",bottomLeft:"╙",vertical:"║",horizontal:"─"},doubleSingle:{topLeft:"╒",topRight:"╕",bottomRight:"╛",bottomLeft:"╘",vertical:"│",horizontal:"═"},classic:{topLeft:"+",topRight:"+",bottomRight:"+",bottomLeft:"+",vertical:"|",horizontal:"-"}};gU.exports=yU,gU.exports.default=yU;var vU={},bU=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vU,"__esModule",{value:!0});const wU=bU(jo),_U=/^(rgb|hsl|hsv|hwb)\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/,xU=/^(ansi|ansi256)\(\s?(\d+)\s?\)$/,kU=(e,t)=>"foreground"===t?e:"bg"+e[0].toUpperCase()+e.slice(1);vU.default=(e,t,n)=>{if(!t)return e;if(t in wU.default){const r=kU(t,n);return wU.default[r](e)}if(t.startsWith("#")){const r=kU("hex",n);return wU.default[r](t)(e)}if(t.startsWith("ansi")){const r=xU.exec(t);if(!r)return e;const a=kU(r[1],n),i=Number(r[2]);return wU.default[a](i)(e)}if(t.startsWith("rgb")||t.startsWith("hsl")||t.startsWith("hsv")||t.startsWith("hwb")){const r=_U.exec(t);if(!r)return e;const a=kU(r[1],n),i=Number(r[2]),o=Number(r[3]),s=Number(r[4]);return wU.default[a](i,o,s)(e)}return e};var SU=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hU,"__esModule",{value:!0});const EU=SU(gU.exports),CU=SU(vU);hU.default=(e,t,n,r)=>{if("string"==typeof n.style.borderStyle){const a=n.yogaNode.getComputedWidth(),i=n.yogaNode.getComputedHeight(),o=n.style.borderColor,s=EU.default[n.style.borderStyle],u=CU.default(s.topLeft+s.horizontal.repeat(a-2)+s.topRight,o,"foreground"),l=(CU.default(s.vertical,o,"foreground")+"\n").repeat(i-2),c=CU.default(s.bottomLeft+s.horizontal.repeat(a-2)+s.bottomRight,o,"foreground");r.write(e,t,u,{transformers:[]}),r.write(e,t+1,l,{transformers:[]}),r.write(e+a-1,t+1,l,{transformers:[]}),r.write(e,t+i-1,c,{transformers:[]})}};var DU=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pU,"__esModule",{value:!0});const OU=DU(ne.default),NU=DU(Sz.exports),jU=DU(((e,t=1,n)=>{if(n={indent:" ",includeEmptyLines:!1,...n},"string"!=typeof e)throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if("string"!=typeof n.indent)throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);if(0===t)return e;const r=n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(r,n.indent.repeat(t))})),PU=DU(qz),TU=DU(dU),AU=DU(fB),RU=DU(hU),IU=(e,t,n)=>{var r;const{offsetX:a=0,offsetY:i=0,transformers:o=[],skipStaticElements:s}=n;if(s&&e.internal_static)return;const{yogaNode:u}=e;if(u){if(u.getDisplay()===OU.default.DISPLAY_NONE)return;const n=a+u.getComputedLeft(),l=i+u.getComputedTop();let c=o;if("function"==typeof e.internal_transform&&(c=[e.internal_transform,...o]),"ink-text"===e.nodeName){let a=AU.default(e);if(a.length>0){const i=NU.default(a),o=TU.default(u);if(i>o){const t=null!==(r=e.style.textWrap)&&void 0!==r?r:"wrap";a=PU.default(a,o,t)}a=((e,t)=>{var n;const r=null===(n=e.childNodes[0])||void 0===n?void 0:n.yogaNode;if(r){const e=r.getComputedLeft(),n=r.getComputedTop();t="\n".repeat(n)+jU.default(t,e)}return t})(e,a),t.write(n,l,a,{transformers:c})}return}if("ink-box"===e.nodeName&&RU.default(n,l,e,t),"ink-root"===e.nodeName||"ink-box"===e.nodeName)for(const r of e.childNodes)IU(r,t,{offsetX:n,offsetY:l,transformers:c,skipStaticElements:s})}};pU.default=IU;var MU={},LU=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(MU,"__esModule",{value:!0});const FU=LU(iB),zU=LU(Ez.exports);MU.default=class{constructor(e){this.writes=[];const{width:t,height:n}=e;this.width=t,this.height=n}write(e,t,n,r){const{transformers:a}=r;n&&this.writes.push({x:e,y:t,text:n,transformers:a})}get(){const e=[];for(let t=0;t<this.height;t++)e.push(" ".repeat(this.width));for(const t of this.writes){const{x:n,y:r,text:a,transformers:i}=t,o=a.split("\n");let s=0;for(let t of o){const a=e[r+s];if(!a)continue;const o=zU.default(t);for(const e of i)t=e(t);e[r+s]=FU.default(a,0,n)+t+FU.default(a,n+o),s++}}return{output:e.map((e=>e.trimRight())).join("\n"),height:e.length}}};var BU=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cU,"__esModule",{value:!0});const UU=BU(ne.default),qU=BU(pU),$U=BU(MU);cU.default=(e,t)=>{var n;if(e.yogaNode.setWidth(t),e.yogaNode){e.yogaNode.calculateLayout(void 0,void 0,UU.default.DIRECTION_LTR);const t=new $U.default({width:e.yogaNode.getComputedWidth(),height:e.yogaNode.getComputedHeight()});let r;qU.default(e,t,{skipStaticElements:!0}),(null===(n=e.staticNode)||void 0===n?void 0:n.yogaNode)&&(r=new $U.default({width:e.staticNode.yogaNode.getComputedWidth(),height:e.staticNode.yogaNode.getComputedHeight()}),qU.default(e.staticNode,r,{skipStaticElements:!1}));const{output:a,height:i}=t.get();return{output:a,outputHeight:i,staticOutput:r?`${r.get().output}\n`:""}}return{output:"",outputHeight:0,staticOutput:""}};const VU=z.default,HU=["assert","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"];let WU={};var GU=e=>{const t=new VU.PassThrough,n=new VU.PassThrough;t.write=t=>e("stdout",t),n.write=t=>e("stderr",t);const r=new console.Console(t,n);for(const e of HU)WU[e]=console[e],console[e]=r[e];return()=>{for(const e of HU)console[e]=WU[e];WU={}}},KU={};Object.defineProperty(KU,"__esModule",{value:!0}),KU.default=new WeakMap;var YU={},QU={};Object.defineProperty(QU,"__esModule",{value:!0});const XU=AF.exports.createContext({exit:()=>{}});XU.displayName="InternalAppContext",QU.default=XU;var JU={};Object.defineProperty(JU,"__esModule",{value:!0});const ZU=AF.exports.createContext({stdin:void 0,setRawMode:()=>{},isRawModeSupported:!1,internal_exitOnCtrlC:!0});ZU.displayName="InternalStdinContext",JU.default=ZU;var eq={};Object.defineProperty(eq,"__esModule",{value:!0});const tq=AF.exports.createContext({stdout:void 0,write:()=>{}});tq.displayName="InternalStdoutContext",eq.default=tq;var nq={};Object.defineProperty(nq,"__esModule",{value:!0});const rq=AF.exports.createContext({stderr:void 0,write:()=>{}});rq.displayName="InternalStderrContext",nq.default=rq;var aq={};Object.defineProperty(aq,"__esModule",{value:!0});const iq=AF.exports.createContext({activeId:void 0,add:()=>{},remove:()=>{},activate:()=>{},deactivate:()=>{},enableFocus:()=>{},disableFocus:()=>{},focusNext:()=>{},focusPrevious:()=>{},focus:()=>{}});iq.displayName="InternalFocusContext",aq.default=iq;var oq={};const sq=/[|\\{}()[\]^$+*?.-]/g;const uq=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(sq,"\\$&")},lq="object"==typeof process&&process&&"function"==typeof process.cwd?process.cwd():".",cq=[].concat(ee.default.builtinModules,"bootstrap_node","node").map((e=>new RegExp(`(?:\\((?:node:)?${e}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${e}(?:\\.js)?:\\d+:\\d+$)`)));cq.push(/\((?:node:)?internal\/[^:]+:\d+:\d+\)$/,/\s*at (?:node:)?internal\/[^:]+:\d+:\d+$/,/\/\.node-spawn-wrap-\w+-\w+\/node:\d+:\d+\)?$/);class pq{constructor(e){"internals"in(e={ignoredPackages:[],...e})==!1&&(e.internals=pq.nodeInternals()),"cwd"in e==!1&&(e.cwd=lq),this._cwd=e.cwd.replace(/\\/g,"/"),this._internals=[].concat(e.internals,function(e){if(0===e.length)return[];const t=e.map((e=>uq(e)));return new RegExp(`[/\\\\]node_modules[/\\\\](?:${t.join("|")})[/\\\\][^:]+:\\d+:\\d+`)}(e.ignoredPackages)),this._wrapCallSite=e.wrapCallSite||!1}static nodeInternals(){return[...cq]}clean(e,t=0){t=" ".repeat(t),Array.isArray(e)||(e=e.split("\n")),!/^\s*at /.test(e[0])&&/^\s*at /.test(e[1])&&(e=e.slice(1));let n=!1,r=null;const a=[];return e.forEach((e=>{if(e=e.replace(/\\/g,"/"),this._internals.some((t=>t.test(e))))return;const t=/^\s*at /.test(e);n?e=e.trimEnd().replace(/^(\s+)at /,"$1"):(e=e.trim(),t&&(e=e.slice(3))),(e=e.replace(`${this._cwd}/`,""))&&(t?(r&&(a.push(r),r=null),a.push(e)):(n=!0,r=e))})),a.map((e=>`${t}${e}\n`)).join("")}captureString(e,t=this.captureString){"function"==typeof e&&(t=e,e=1/0);const{stackTraceLimit:n}=Error;e&&(Error.stackTraceLimit=e);const r={};Error.captureStackTrace(r,t);const{stack:a}=r;return Error.stackTraceLimit=n,this.clean(a)}capture(e,t=this.capture){"function"==typeof e&&(t=e,e=1/0);const{prepareStackTrace:n,stackTraceLimit:r}=Error;Error.prepareStackTrace=(e,t)=>this._wrapCallSite?t.map(this._wrapCallSite):t,e&&(Error.stackTraceLimit=e);const a={};Error.captureStackTrace(a,t);const{stack:i}=a;return Object.assign(Error,{prepareStackTrace:n,stackTraceLimit:r}),i}at(e=this.at){const[t]=this.capture(1,e);if(!t)return{};const n={line:t.getLineNumber(),column:t.getColumnNumber()};let r;dq(n,t.getFileName(),this._cwd),t.isConstructor()&&Object.defineProperty(n,"constructor",{value:!0,configurable:!0}),t.isEval()&&(n.evalOrigin=t.getEvalOrigin()),t.isNative()&&(n.native=!0);try{r=t.getTypeName()}catch(e){}r&&"Object"!==r&&"[object Object]"!==r&&(n.type=r);const a=t.getFunctionName();a&&(n.function=a);const i=t.getMethodName();return i&&a!==i&&(n.method=i),n}parseLine(e){const t=e&&e.match(fq);if(!t)return null;const n="new"===t[1];let r=t[2];const a=t[3],i=t[4],o=Number(t[5]),s=Number(t[6]);let u=t[7];const l=t[8],c=t[9],p="native"===t[10],d=")"===t[11];let f;const m={};if(l&&(m.line=Number(l)),c&&(m.column=Number(c)),d&&u){let e=0;for(let t=u.length-1;t>0;t--)if(")"===u.charAt(t))e++;else if("("===u.charAt(t)&&" "===u.charAt(t-1)&&(e--,-1===e&&" "===u.charAt(t-1))){const e=u.slice(0,t-1),n=u.slice(t+1);u=n,r+=` (${e}`;break}}if(r){const e=r.match(mq);e&&(r=e[1],f=e[2])}return dq(m,u,this._cwd),n&&Object.defineProperty(m,"constructor",{value:!0,configurable:!0}),a&&(m.evalOrigin=a,m.evalLine=o,m.evalColumn=s,m.evalFile=i&&i.replace(/\\/g,"/")),p&&(m.native=!0),r&&(m.function=r),f&&r!==f&&(m.method=f),m}}function dq(e,t,n){t&&((t=t.replace(/\\/g,"/")).startsWith(`${n}/`)&&(t=t.slice(n.length+1)),e.file=t)}const fq=new RegExp("^(?:\\s*at )?(?:(new) )?(?:(.*?) \\()?(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?(?:(.+?):(\\d+):(\\d+)|(native))(\\)?)$"),mq=/^(.*?) \[as (.*?)\]$/;var hq=pq;const gq=(e,t)=>e.replace(/^\t+/gm,(e=>" ".repeat(e.length*(t||2))));var yq={},vq=oe&&oe.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),bq=oe&&oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),wq=oe&&oe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&vq(t,e,n);return bq(t,e),t},_q=oe&&oe.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};Object.defineProperty(yq,"__esModule",{value:!0});const xq=wq(AF.exports),kq=xq.forwardRef(((e,t)=>{var{children:n}=e,r=_q(e,["children"]);const a=Object.assign(Object.assign({},r),{marginLeft:r.marginLeft||r.marginX||r.margin||0,marginRight:r.marginRight||r.marginX||r.margin||0,marginTop:r.marginTop||r.marginY||r.margin||0,marginBottom:r.marginBottom||r.marginY||r.margin||0,paddingLeft:r.paddingLeft||r.paddingX||r.padding||0,paddingRight:r.paddingRight||r.paddingX||r.padding||0,paddingTop:r.paddingTop||r.paddingY||r.padding||0,paddingBottom:r.paddingBottom||r.paddingY||r.padding||0});return xq.default.createElement("ink-box",{ref:t,style:a},n)}));kq.displayName="Box",kq.defaultProps={flexDirection:"row",flexGrow:0,flexShrink:1},yq.default=kq;var Sq={},Eq=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Sq,"__esModule",{value:!0});const Cq=Eq(AF.exports),Dq=Eq(jo),Oq=Eq(vU),Nq=({color:e,backgroundColor:t,dimColor:n,bold:r,italic:a,underline:i,strikethrough:o,inverse:s,wrap:u,children:l})=>{if(null==l)return null;return Cq.default.createElement("ink-text",{style:{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:u},internal_transform:u=>(n&&(u=Dq.default.dim(u)),e&&(u=Oq.default(u,e,"foreground")),t&&(u=Oq.default(u,t,"background")),r&&(u=Dq.default.bold(u)),a&&(u=Dq.default.italic(u)),i&&(u=Dq.default.underline(u)),o&&(u=Dq.default.strikethrough(u)),s&&(u=Dq.default.inverse(u)),u)},l)};Nq.displayName="Text",Nq.defaultProps={dimColor:!1,bold:!1,italic:!1,underline:!1,strikethrough:!1,wrap:"wrap"},Sq.default=Nq;var jq=oe&&oe.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),Pq=oe&&oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Tq=oe&&oe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&jq(t,e,n);return Pq(t,e),t},Aq=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(oq,"__esModule",{value:!0});const Rq=Tq(R.default),Iq=Aq(AF.exports),Mq=Aq(hq),Lq=Aq(((e,t,n)=>{if("string"!=typeof e)throw new TypeError("Source code is missing.");if(!t||t<1)throw new TypeError("Line number must start from `1`.");if(!(t>(e=gq(e).split(/\r?\n/)).length))return((e,t)=>{const n=[],r=e+t;for(let a=e-t;a<=r;a++)n.push(a);return n})(t,(n={around:3,...n}).around).filter((t=>void 0!==e[t-1])).map((t=>({line:t,value:e[t-1]})))})),Fq=Aq(yq),zq=Aq(Sq),Bq=new Mq.default({cwd:process.cwd(),internals:Mq.default.nodeInternals()});oq.default=({error:e})=>{const t=e.stack?e.stack.split("\n").slice(1):void 0,n=t?Bq.parseLine(t[0]):void 0;let r,a=0;if((null==n?void 0:n.file)&&(null==n?void 0:n.line)&&Rq.existsSync(n.file)){const e=Rq.readFileSync(n.file,"utf8");if(r=Lq.default(e,n.line),r)for(const{line:e}of r)a=Math.max(a,String(e).length)}return Iq.default.createElement(Fq.default,{flexDirection:"column",padding:1},Iq.default.createElement(Fq.default,null,Iq.default.createElement(zq.default,{backgroundColor:"red",color:"white"}," ","ERROR"," "),Iq.default.createElement(zq.default,null," ",e.message)),n&&Iq.default.createElement(Fq.default,{marginTop:1},Iq.default.createElement(zq.default,{dimColor:!0},n.file,":",n.line,":",n.column)),n&&r&&Iq.default.createElement(Fq.default,{marginTop:1,flexDirection:"column"},r.map((({line:e,value:t})=>Iq.default.createElement(Fq.default,{key:e},Iq.default.createElement(Fq.default,{width:a+1},Iq.default.createElement(zq.default,{dimColor:e!==n.line,backgroundColor:e===n.line?"red":void 0,color:e===n.line?"white":void 0},String(e).padStart(a," "),":")),Iq.default.createElement(zq.default,{key:e,backgroundColor:e===n.line?"red":void 0,color:e===n.line?"white":void 0}," "+t))))),e.stack&&Iq.default.createElement(Fq.default,{marginTop:1,flexDirection:"column"},e.stack.split("\n").slice(1).map((e=>{const t=Bq.parseLine(e);return t?Iq.default.createElement(Fq.default,{key:e},Iq.default.createElement(zq.default,{dimColor:!0},"- "),Iq.default.createElement(zq.default,{dimColor:!0,bold:!0},t.function),Iq.default.createElement(zq.default,{dimColor:!0,color:"gray"}," ","(",t.file,":",t.line,":",t.column,")")):Iq.default.createElement(Fq.default,{key:e},Iq.default.createElement(zq.default,{dimColor:!0},"- "),Iq.default.createElement(zq.default,{dimColor:!0,bold:!0},e))}))))};var Uq=oe&&oe.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),qq=oe&&oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),$q=oe&&oe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&Uq(t,e,n);return qq(t,e),t},Vq=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(YU,"__esModule",{value:!0});const Hq=$q(AF.exports),Wq=Vq(qF),Gq=Vq(QU),Kq=Vq(JU),Yq=Vq(eq),Qq=Vq(nq),Xq=Vq(aq),Jq=Vq(oq);class Zq extends Hq.PureComponent{constructor(){super(...arguments),this.state={isFocusEnabled:!0,activeFocusId:void 0,focusables:[],error:void 0},this.rawModeEnabledCount=0,this.handleSetRawMode=e=>{const{stdin:t}=this.props;if(!this.isRawModeSupported())throw t===process.stdin?new Error("Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.\nRead about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported"):new Error("Raw mode is not supported on the stdin provided to Ink.\nRead about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported");if(t.setEncoding("utf8"),e)return 0===this.rawModeEnabledCount&&(t.addListener("data",this.handleInput),t.resume(),t.setRawMode(!0)),void this.rawModeEnabledCount++;0==--this.rawModeEnabledCount&&(t.setRawMode(!1),t.removeListener("data",this.handleInput),t.pause())},this.handleInput=e=>{""===e&&this.props.exitOnCtrlC&&this.handleExit(),""===e&&this.state.activeFocusId&&this.setState({activeFocusId:void 0}),this.state.isFocusEnabled&&this.state.focusables.length>0&&("\t"===e&&this.focusNext(),"[Z"===e&&this.focusPrevious())},this.handleExit=e=>{this.isRawModeSupported()&&this.handleSetRawMode(!1),this.props.onExit(e)},this.enableFocus=()=>{this.setState({isFocusEnabled:!0})},this.disableFocus=()=>{this.setState({isFocusEnabled:!1})},this.focus=e=>{this.setState((t=>t.focusables.some((t=>(null==t?void 0:t.id)===e))?{activeFocusId:e}:t))},this.focusNext=()=>{this.setState((e=>{var t;const n=null===(t=e.focusables[0])||void 0===t?void 0:t.id;return{activeFocusId:this.findNextFocusable(e)||n}}))},this.focusPrevious=()=>{this.setState((e=>{var t;const n=null===(t=e.focusables[e.focusables.length-1])||void 0===t?void 0:t.id;return{activeFocusId:this.findPreviousFocusable(e)||n}}))},this.addFocusable=(e,{autoFocus:t})=>{this.setState((n=>{let r=n.activeFocusId;return!r&&t&&(r=e),{activeFocusId:r,focusables:[...n.focusables,{id:e,isActive:!0}]}}))},this.removeFocusable=e=>{this.setState((t=>({activeFocusId:t.activeFocusId===e?void 0:t.activeFocusId,focusables:t.focusables.filter((t=>t.id!==e))})))},this.activateFocusable=e=>{this.setState((t=>({focusables:t.focusables.map((t=>t.id!==e?t:{id:e,isActive:!0}))})))},this.deactivateFocusable=e=>{this.setState((t=>({activeFocusId:t.activeFocusId===e?void 0:t.activeFocusId,focusables:t.focusables.map((t=>t.id!==e?t:{id:e,isActive:!1}))})))},this.findNextFocusable=e=>{var t;for(let n=e.focusables.findIndex((t=>t.id===e.activeFocusId))+1;n<e.focusables.length;n++)if(null===(t=e.focusables[n])||void 0===t?void 0:t.isActive)return e.focusables[n].id},this.findPreviousFocusable=e=>{var t;for(let n=e.focusables.findIndex((t=>t.id===e.activeFocusId))-1;n>=0;n--)if(null===(t=e.focusables[n])||void 0===t?void 0:t.isActive)return e.focusables[n].id}}static getDerivedStateFromError(e){return{error:e}}isRawModeSupported(){return this.props.stdin.isTTY}render(){return Hq.default.createElement(Gq.default.Provider,{value:{exit:this.handleExit}},Hq.default.createElement(Kq.default.Provider,{value:{stdin:this.props.stdin,setRawMode:this.handleSetRawMode,isRawModeSupported:this.isRawModeSupported(),internal_exitOnCtrlC:this.props.exitOnCtrlC}},Hq.default.createElement(Yq.default.Provider,{value:{stdout:this.props.stdout,write:this.props.writeToStdout}},Hq.default.createElement(Qq.default.Provider,{value:{stderr:this.props.stderr,write:this.props.writeToStderr}},Hq.default.createElement(Xq.default.Provider,{value:{activeId:this.state.activeFocusId,add:this.addFocusable,remove:this.removeFocusable,activate:this.activateFocusable,deactivate:this.deactivateFocusable,enableFocus:this.enableFocus,disableFocus:this.disableFocus,focusNext:this.focusNext,focusPrevious:this.focusPrevious,focus:this.focus}},this.state.error?Hq.default.createElement(Jq.default,{error:this.state.error}):this.props.children)))))}componentDidMount(){Wq.default.hide(this.props.stdout)}componentWillUnmount(){Wq.default.show(this.props.stdout),this.isRawModeSupported()&&this.handleSetRawMode(!1)}componentDidCatch(e){this.handleExit(e)}}YU.default=Zq,Zq.displayName="InternalApp";var e$=oe&&oe.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t$=oe&&oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n$=oe&&oe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&e$(t,e,n);return t$(t,e),t},r$=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(TF,"__esModule",{value:!0});const a$=r$(AF.exports),i$=zF.exports,o$=r$(BF),s$=r$(UF.exports),u$=r$(XF),l$=r$(((e,{include:t,exclude:n}={})=>{const r=e=>{const r=t=>"string"==typeof t?e===t:t.test(e);return t?t.some(r):!n||!n.some(r)};for(const[t,n]of(e=>{const t=new Set;do{for(const n of Reflect.ownKeys(e))t.add([e,n])}while((e=Reflect.getPrototypeOf(e))&&e!==Object.prototype);return t})(e.constructor.prototype)){if("constructor"===n||!r(n))continue;const a=Reflect.getOwnPropertyDescriptor(t,n);a&&"function"==typeof a.value&&(e[n]=e[n].bind(e))}return e})),c$=r$(ZF),p$=r$(cU),d$=r$(tN.exports),f$=r$(GU),m$=n$(xz),h$=r$(KU),g$=r$(YU),y$="false"!==process.env.CI&&u$.default,v$=()=>{};TF.default=class{constructor(e){this.resolveExitPromise=()=>{},this.rejectExitPromise=()=>{},this.unsubscribeExit=()=>{},this.onRender=()=>{if(this.isUnmounted)return;const{output:e,outputHeight:t,staticOutput:n}=p$.default(this.rootNode,this.options.stdout.columns||80),r=n&&"\n"!==n;return this.options.debug?(r&&(this.fullStaticOutput+=n),void this.options.stdout.write(this.fullStaticOutput+e)):y$?(r&&this.options.stdout.write(n),void(this.lastOutput=e)):(r&&(this.fullStaticOutput+=n),t>=this.options.stdout.rows?(this.options.stdout.write(s$.default.clearTerminal+this.fullStaticOutput+e),void(this.lastOutput=e)):(r&&(this.log.clear(),this.options.stdout.write(n),this.log(e)),r||e===this.lastOutput||this.throttledLog(e),void(this.lastOutput=e)))},l$.default(this),this.options=e,this.rootNode=m$.createNode("ink-root"),this.rootNode.onRender=e.debug?this.onRender:i$.throttle(this.onRender,32,{leading:!0,trailing:!0}),this.rootNode.onImmediateRender=this.onRender,this.log=o$.default.create(e.stdout),this.throttledLog=e.debug?this.log:i$.throttle(this.log,void 0,{leading:!0,trailing:!0}),this.isUnmounted=!1,this.lastOutput="",this.fullStaticOutput="",this.container=c$.default.createContainer(this.rootNode,0,!1,null),this.unsubscribeExit=d$.default(this.unmount,{alwaysLast:!1}),"true"===process.env.DEV&&c$.default.injectIntoDevTools({bundleType:0,version:"16.13.1",rendererPackageName:"ink"}),e.patchConsole&&this.patchConsole(),y$||(e.stdout.on("resize",this.onRender),this.unsubscribeResize=()=>{e.stdout.off("resize",this.onRender)})}render(e){const t=a$.default.createElement(g$.default,{stdin:this.options.stdin,stdout:this.options.stdout,stderr:this.options.stderr,writeToStdout:this.writeToStdout,writeToStderr:this.writeToStderr,exitOnCtrlC:this.options.exitOnCtrlC,onExit:this.unmount},e);c$.default.updateContainer(t,this.container,null,v$)}writeToStdout(e){this.isUnmounted||(this.options.debug?this.options.stdout.write(e+this.fullStaticOutput+this.lastOutput):y$?this.options.stdout.write(e):(this.log.clear(),this.options.stdout.write(e),this.log(this.lastOutput)))}writeToStderr(e){if(!this.isUnmounted)return this.options.debug?(this.options.stderr.write(e),void this.options.stdout.write(this.fullStaticOutput+this.lastOutput)):void(y$?this.options.stderr.write(e):(this.log.clear(),this.options.stderr.write(e),this.log(this.lastOutput)))}unmount(e){this.isUnmounted||(this.onRender(),this.unsubscribeExit(),"function"==typeof this.restoreConsole&&this.restoreConsole(),"function"==typeof this.unsubscribeResize&&this.unsubscribeResize(),y$?this.options.stdout.write(this.lastOutput+"\n"):this.options.debug||this.log.done(),this.isUnmounted=!0,c$.default.updateContainer(null,this.container,null,v$),h$.default.delete(this.options.stdout),e instanceof Error?this.rejectExitPromise(e):this.resolveExitPromise())}waitUntilExit(){return this.exitPromise||(this.exitPromise=new Promise(((e,t)=>{this.resolveExitPromise=e,this.rejectExitPromise=t}))),this.exitPromise}clear(){y$||this.options.debug||this.log.clear()}patchConsole(){this.options.debug||(this.restoreConsole=f$.default(((e,t)=>{if("stdout"===e&&this.writeToStdout(t),"stderr"===e){t.startsWith("The above error occurred")||this.writeToStderr(t)}})))}};var b$=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(PF,"__esModule",{value:!0});const w$=b$(TF),_$=b$(KU),x$=z.default;PF.default=(e,t)=>{const n=Object.assign({stdout:process.stdout,stdin:process.stdin,stderr:process.stderr,debug:!1,exitOnCtrlC:!0,patchConsole:!0},k$(t)),r=S$(n.stdout,(()=>new w$.default(n)));return r.render(e),{rerender:r.render,unmount:()=>r.unmount(),waitUntilExit:r.waitUntilExit,cleanup:()=>_$.default.delete(n.stdout),clear:r.clear}};const k$=(e={})=>e instanceof x$.Stream?{stdout:e,stdin:process.stdin}:e,S$=(e,t)=>{let n;return _$.default.has(e)?n=_$.default.get(e):(n=t(),_$.default.set(e,n)),n};var E$={},C$=oe&&oe.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),D$=oe&&oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),O$=oe&&oe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&C$(t,e,n);return D$(t,e),t};Object.defineProperty(E$,"__esModule",{value:!0});const N$=O$(AF.exports),j$=e=>{const{items:t,children:n,style:r}=e,[a,i]=N$.useState(0),o=N$.useMemo((()=>t.slice(a)),[t,a]);N$.useLayoutEffect((()=>{i(t.length)}),[t.length]);const s=o.map(((e,t)=>n(e,a+t))),u=N$.useMemo((()=>Object.assign({position:"absolute",flexDirection:"column"},r)),[r]);return N$.default.createElement("ink-box",{internal_static:!0,style:u},s)};j$.displayName="Static",E$.default=j$;var P$={},T$=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(P$,"__esModule",{value:!0});const A$=T$(AF.exports),R$=({children:e,transform:t})=>null==e?null:A$.default.createElement("ink-text",{style:{flexGrow:0,flexShrink:1,flexDirection:"row"},internal_transform:t},e);R$.displayName="Transform",P$.default=R$;var I$={},M$=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(I$,"__esModule",{value:!0});const L$=M$(AF.exports),F$=({count:e=1})=>L$.default.createElement("ink-text",null,"\n".repeat(e));F$.displayName="Newline",I$.default=F$;var z$={},B$=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(z$,"__esModule",{value:!0});const U$=B$(AF.exports),q$=B$(yq),$$=()=>U$.default.createElement(q$.default,{flexGrow:1});$$.displayName="Spacer",z$.default=$$;var V$={},H$={},W$=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(H$,"__esModule",{value:!0});const G$=AF.exports,K$=W$(JU);H$.default=()=>G$.useContext(K$.default);var Y$=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(V$,"__esModule",{value:!0});const Q$=AF.exports,X$=Y$(H$);V$.default=(e,t={})=>{const{stdin:n,setRawMode:r,internal_exitOnCtrlC:a}=X$.default();Q$.useEffect((()=>{if(!1!==t.isActive)return r(!0),()=>{r(!1)}}),[t.isActive,r]),Q$.useEffect((()=>{if(!1===t.isActive)return;const r=t=>{let n=String(t);const r={upArrow:"[A"===n,downArrow:"[B"===n,leftArrow:"[D"===n,rightArrow:"[C"===n,pageDown:"[6~"===n,pageUp:"[5~"===n,return:"\r"===n,escape:""===n,ctrl:!1,shift:!1,tab:"\t"===n||"[Z"===n,backspace:"\b"===n,delete:""===n||"[3~"===n,meta:!1};n<=""&&!r.return&&(n=String.fromCharCode(n.charCodeAt(0)+"a".charCodeAt(0)-1),r.ctrl=!0),n.startsWith("")&&(n=n.slice(1),r.meta=!0);const i=n>="A"&&n<="Z",o=n>="А"&&n<="Я";1===n.length&&(i||o)&&(r.shift=!0),r.tab&&"[Z"===n&&(r.shift=!0),(r.tab||r.backspace||r.delete)&&(n=""),"c"===n&&r.ctrl&&a||e(n,r)};return null==n||n.on("data",r),()=>{null==n||n.off("data",r)}}),[t.isActive,n,a,e])};var J$={},Z$=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(J$,"__esModule",{value:!0});const eV=AF.exports,tV=Z$(QU);J$.default=()=>eV.useContext(tV.default);var nV={},rV=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nV,"__esModule",{value:!0});const aV=AF.exports,iV=rV(eq);nV.default=()=>aV.useContext(iV.default);var oV={},sV=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(oV,"__esModule",{value:!0});const uV=AF.exports,lV=sV(nq);oV.default=()=>uV.useContext(lV.default);var cV={},pV=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cV,"__esModule",{value:!0});const dV=AF.exports,fV=pV(aq),mV=pV(H$);cV.default=({isActive:e=!0,autoFocus:t=!1,id:n}={})=>{const{isRawModeSupported:r,setRawMode:a}=mV.default(),{activeId:i,add:o,remove:s,activate:u,deactivate:l,focus:c}=dV.useContext(fV.default),p=dV.useMemo((()=>null!=n?n:Math.random().toString().slice(2,7)),[n]);return dV.useEffect((()=>(o(p,{autoFocus:t}),()=>{s(p)})),[p,t]),dV.useEffect((()=>{e?u(p):l(p)}),[e,p]),dV.useEffect((()=>{if(r&&e)return a(!0),()=>{a(!1)}}),[e]),{isFocused:Boolean(p)&&i===p,focus:c}};var hV={},gV=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hV,"__esModule",{value:!0});const yV=AF.exports,vV=gV(aq);hV.default=()=>{const e=yV.useContext(vV.default);return{enableFocus:e.enableFocus,disableFocus:e.disableFocus,focusNext:e.focusNext,focusPrevious:e.focusPrevious,focus:e.focus}};var bV={};Object.defineProperty(bV,"__esModule",{value:!0}),bV.default=e=>{var t,n,r,a;return{width:null!==(n=null===(t=e.yogaNode)||void 0===t?void 0:t.getComputedWidth())&&void 0!==n?n:0,height:null!==(a=null===(r=e.yogaNode)||void 0===r?void 0:r.getComputedHeight())&&void 0!==a?a:0}},function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=PF;Object.defineProperty(e,"render",{enumerable:!0,get:function(){return t.default}});var n=yq;Object.defineProperty(e,"Box",{enumerable:!0,get:function(){return n.default}});var r=Sq;Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return r.default}});var a=E$;Object.defineProperty(e,"Static",{enumerable:!0,get:function(){return a.default}});var i=P$;Object.defineProperty(e,"Transform",{enumerable:!0,get:function(){return i.default}});var o=I$;Object.defineProperty(e,"Newline",{enumerable:!0,get:function(){return o.default}});var s=z$;Object.defineProperty(e,"Spacer",{enumerable:!0,get:function(){return s.default}});var u=V$;Object.defineProperty(e,"useInput",{enumerable:!0,get:function(){return u.default}});var l=J$;Object.defineProperty(e,"useApp",{enumerable:!0,get:function(){return l.default}});var c=H$;Object.defineProperty(e,"useStdin",{enumerable:!0,get:function(){return c.default}});var p=nV;Object.defineProperty(e,"useStdout",{enumerable:!0,get:function(){return p.default}});var d=oV;Object.defineProperty(e,"useStderr",{enumerable:!0,get:function(){return d.default}});var f=cV;Object.defineProperty(e,"useFocus",{enumerable:!0,get:function(){return f.default}});var m=hV;Object.defineProperty(e,"useFocusManager",{enumerable:!0,get:function(){return m.default}});var h=bV;Object.defineProperty(e,"measureElement",{enumerable:!0,get:function(){return h.default}})}(jF);var wV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ProgressStatus",{enumerable:!0,get:()=>i});const t=jF,n=a(AF.exports);function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}return a.default=e,n&&n.set(e,a),a}function i(e){const{waiting:r,completed:a,total:i}=e.progress,o=`Waiting: ${r} | Completed: ${a} | Total: ${i} | ${i>0?`${(a/i*100).toFixed(2)}%`:"0%"}`;return n.createElement(t.Box,null,n.createElement(t.Text,null,o))}}(wV);var _V={},xV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ErrorMessages",{enumerable:!0,get:()=>i});const t=a(AF.exports),n=jF;function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}return a.default=e,n&&n.set(e,a),a}function i(e){const{errors:r}=e;return t.createElement(n.Box,{flexDirection:"column"},t.createElement(n.Text,{color:"redBright"},"Errors"),t.createElement(n.Box,{flexDirection:"column",marginLeft:2,marginY:1},[...r.entries()].map((([e,r])=>t.createElement(n.Box,{flexDirection:"column",key:`errorlogs-${e}`,marginBottom:1},t.createElement(n.Text,{color:"cyanBright",underline:!0,bold:!0},e),t.createElement(n.Text,null,r.map((e=>e.msg)).join("\n")))))))}}(xV),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"SummaryInfo",{enumerable:!0,get:()=>u});const t=iF,n=jF,r=s(AF.exports),a=uF,i=xV;function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function u(e){const{summary:o}=e,{schedulerRunSummary:s,logEntries:u}=o,{targetRunByStatus:l,targetRuns:c,duration:p}=s,d=(0,a.slowestTargetRuns)([...c.values()]),{failed:f,aborted:m,skipped:h,success:g,pending:y}=l,v=f&&f.length>0?new Map(f.map((e=>[e,u.get(e)||[]]))):new Map;return r.createElement(n.Box,{flexDirection:"column"},r.createElement(n.Text,{color:"greenBright"},"Summary"),r.createElement(n.Newline,null),r.createElement(n.Text,{color:"yellow"},"Slowest targets"),r.createElement(n.Box,{flexDirection:"column",marginLeft:2,marginY:1},d.slice(0,10).filter((e=>!e.target.hidden)).map((e=>r.createElement(n.Text,{key:e.target.id},e.target.id," - ",(0,t.formatDuration)((0,t.hrToSeconds)(e.duration)))))),v.size>0?r.createElement(i.ErrorMessages,{errors:v}):null,r.createElement(n.Text,null,`success: ${g.length}, skipped: ${h.length}, pending: ${y.length}, aborted: ${m.length}, failed: ${f.length}`),r.createElement(n.Text,null,"Took a total of ",(0,t.formatDuration)((0,t.hrToSeconds)(p))," to complete."))}}(_V);var kV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ThreadItem",{enumerable:!0,get:()=>i});const t=a(AF.exports),n=jF;function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}return a.default=e,n&&n.set(e,a),a}function i(e){const{targetId:r}=e;return r?t.createElement(n.Text,{color:"whiteBright"},r," "):t.createElement(n.Text,{color:"gray"},"IDLE")}}(kV),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ProgressReporterApp",{enumerable:!0,get:()=>u});const t=jF,n=s(AF.exports),r=wV,a=_V,i=kV;function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function u(e){const o=new Set,[s,u]=n.useState(o),[l,c]=n.useState({waiting:0,completed:0,total:0}),[p,d]=n.useState(),{logEvent:f}=e;n.useEffect((()=>{f.on("status",(e=>{const{target:t,threadId:n,status:r}=e.data;"running"===r?u((e=>new Set(e).add(t.id))):"success"!==r&&"aborted"!==r&&"failed"!==r&&"skipped"!==r||u((e=>{const n=new Set(e);return n.delete(t.id),n}))})),f.on("progress",(e=>{c(e)})),f.on("summary",(e=>{d(e)}))}),[f]);const m=s.size>16;return n.createElement(t.Box,{flexDirection:"column"},n.createElement(t.Text,null,"Lage running tasks with ",e.concurrency," workers"),p?n.createElement(a.SummaryInfo,{summary:p}):n.createElement(t.Box,{flexDirection:"column"},n.createElement(r.ProgressStatus,{progress:l}),n.createElement(t.Box,{flexDirection:"column",marginLeft:2,marginY:1},[...s].slice(Math.max(0,s.size-16)).map((e=>n.createElement(i.ThreadItem,{key:e,targetId:e}))),m&&n.createElement(t.Text,null,"... (displaying most recent ",16,")"))))}}(NF),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ProgressReporter",{enumerable:!0,get:()=>u});const t=NF,n=jF,r=s(AF.exports),a=i(P.default);function i(e){return e&&e.__esModule?e:{default:e}}function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}class u{log(e){e.data?.target?.id&&(this.logEntries.has(e.data.target.id)||this.logEntries.set(e.data.target.id,[]),this.logEntries.get(e.data.target.id).push(e)),e?.data?.target?.hidden||(e.data&&e.data.schedulerRun&&(this.startTime=e.data.schedulerRun.startTime),e.data&&e.data.status&&this.logEvent.emit("status",e),e.data&&e.data.progress&&this.logEvent.emit("progress",e.data.progress))}summarize(e){this.logEvent.emit("summary",{schedulerRunSummary:e,logEntries:this.logEntries})}constructor(e={concurrency:0}){this.startTime=[0,0],this.logEvent=new a.default,this.logEntries=new Map,(0,n.render)(r.createElement(t.ProgressReporterApp,{logEvent:this.logEvent,concurrency:e.concurrency}))}}}(OF),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{AdoReporter:()=>t.AdoReporter,JsonReporter:()=>n.JsonReporter,LogReporter:()=>r.LogReporter,ChromeTraceEventsReporter:()=>a.ChromeTraceEventsReporter,ProgressReporter:()=>i.ProgressReporter});const t=aF,n=lF,r=cF,a=CF,i=OF}(rF),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createReporter",{enumerable:!0,get:()=>r});const t=GL,n=rF;function r(e,r){const{verbose:a,grouped:i,logLevel:o,concurrency:s,profile:u,progress:l}=r,c=t.LogLevel[o];switch(e){case"profile":return new n.ChromeTraceEventsReporter({concurrency:s,outputFile:"string"==typeof u?u:void 0});case"json":return new n.JsonReporter({logLevel:c});case"azureDevops":case"adoLog":return new n.AdoReporter({grouped:i,logLevel:a?t.LogLevel.verbose:c});case"npmLog":case"old":return new n.LogReporter({grouped:i,logLevel:a?t.LogLevel.verbose:c});default:return l&&!(c>=t.LogLevel.verbose||a||i)?new n.ProgressReporter({concurrency:s}):new n.LogReporter({grouped:i,logLevel:a?t.LogLevel.verbose:c})}}}(nF),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"initializeReporters",{enumerable:!0,get:()=>n});const t=nF;function n(e,n){const{reporter:r}=n,a=(Array.isArray(r)?r:[r]).filter(Boolean);0===a.length&&a.push("default"),n.profile&&a.push("profile");for(const r of a){const a=(0,t.createReporter)(r,n);e.addReporter(a)}return e.reporters}}(tF);var SV={},EV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NpmScriptRunner",{enumerable:!0,get:()=>i});const t=R.default,n=A.default,r=re.default,a=T.default;class i{getNpmArgs(e,t){return["run",e,...t.length>0?["--",...t]:[]]}async hasNpmScript(e){const t=e.options?.script??e.task,a=(0,n.join)(e.cwd,"package.json"),i=JSON.parse(await(0,r.readFile)(a,"utf8"));return!!i.scripts?.[t]}validateOptions(e){if(!(0,t.existsSync)(e.npmCmd))throw new Error(`NPM Script Runner: ${this.options.npmCmd} does not exist`)}async shouldRun(e){return await this.hasNpmScript(e)}async run(e){const{target:t,weight:n,abortSignal:r}=e,{nodeOptions:o,npmCmd:s,taskArgs:u}=this.options,l=t.options?.script??t.task;let c;if(r){if(r.aborted)return;const e=()=>{if(r.removeEventListener("abort",e),c&&!c.killed){const e=c.pid;process.stdout.write(`Abort signal detected, attempting to killing process id ${e}\n`),c.kill("SIGTERM");const t=setTimeout((()=>{c&&!c.killed&&c.kill("SIGKILL")}),i.gracefulKillTimeout);t.unref&&t.unref()}};r.addEventListener("abort",e)}const p=this.getNpmArgs(l,u),d=[o,t.options?.nodeOptions].filter((e=>e)).join(" ");await new Promise(((e,r)=>{c=(0,a.spawn)(s,p,{cwd:t.cwd,stdio:["inherit","pipe","pipe"],env:{...process.env,...process.stdout.isTTY&&{FORCE_COLOR:"1"},...d&&{NODE_OPTIONS:d},LAGE_PACKAGE_NAME:t.packageName,LAGE_TASK:t.task,LAGE_WEIGHT:String(n)}});let i=!1;const o=t=>{if(c?.off("exit",o),c?.off("error",o),!i){if(i=!0,c?.stdout?.destroy(),c?.stderr?.destroy(),c?.stdin?.destroy(),0===t)return e();r(new Error(`NPM Script Runner: ${s} ${p.join(" ")} exited with code ${t}`))}},{pid:u}=c;process.stdout.write(`Running ${[s,...p].join(" ")}, pid: ${u}\n`);const l=c.stdout,f=c.stderr;l.pipe(process.stdout),f.pipe(process.stderr),c.on("exit",o),c.on("error",(()=>o(1)))}))}constructor(e){this.options=e,this.validateOptions(e)}}i.gracefulKillTimeout=2500}(EV);var CV={},DV={},OV={},NV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{START_MARKER_PREFIX:()=>t,END_MARKER_PREFIX:()=>n,startMarker:()=>r,endMarker:()=>a});const t="## WORKER:START:",n="## WORKER:END:";function r(e){return`${t}${e}`}function a(e){return`${n}${e}`}}(NV),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"registerWorker",{enumerable:!0,get:()=>r});const t=ae.default,n=NV;function r(e){t.parentPort?.on("message",(async r=>{let a;switch(r.type){case"start":return a=new AbortController,r.task&&await async function(r,a,i){try{process.stdout.write(`${(0,n.startMarker)(r)}\n`),process.stderr.write(`${(0,n.startMarker)(r)}\n`);const o=await e(a,i);t.parentPort?.postMessage({type:"status",err:void 0,results:o})}catch(e){t.parentPort?.postMessage({type:"status",err:e,results:void 0})}finally{process.stdout.write(`${(0,n.endMarker)(r)}\n`),process.stderr.write(`${(0,n.endMarker)(r)}\n`)}}(r.id,r.task,a.signal);case"abort":return a?.abort();case"check-memory-usage":return function(e){const t={type:"report-memory-usage",memoryUsage:process.memoryUsage().heapUsed};e.postMessage(t)}(t.parentPort)}}))}}(OV);var jV={},PV={},TV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createFilteredStreamTransform",{enumerable:!0,get:()=>r});const t=z.default,n=NV;function r(){const e=new t.Transform({transform(e,t,r){let a=e.toString();a.includes(n.START_MARKER_PREFIX)&&(a=a.replace(new RegExp(n.START_MARKER_PREFIX+"[0-9a-z]{64}\n"),"")),a.includes(n.END_MARKER_PREFIX)&&(a=a.replace(new RegExp(n.END_MARKER_PREFIX+"[0-9a-z]{64}\n"),"")),r(null,a)}});return e}}(TV);var AV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"TaskInfo",{enumerable:!0,get:()=>n});const t=ie.default;class n extends t.AsyncResource{get id(){return this.options.id}get weight(){return this.options.weight}get abortSignal(){return this.options.abortSignal}done(e,t){const{cleanup:n,worker:r,resolve:a,reject:i}=this.options;n&&this.runInAsyncScope(n,null,r),e?this.runInAsyncScope(i,null,e,r):this.runInAsyncScope(a,null,t,r),this.emitDestroy()}constructor(e){super("WorkerPoolTaskInfo"),this.options=e,e.setup&&this.runInAsyncScope(e.setup,null,e.worker,e.worker.stdout,e.worker.stderr)}}}(AV),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ThreadWorker",{enumerable:!0,get:()=>D});const t=TV,n=te.default,r=NV,a=P.default,i=z.default,o=AV,s=ae.default,u=y(q.default),l=y(M.default);function c(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function p(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function d(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,p(e,t,"get"))}function f(e,t,n){c(e,t),t.set(e,n)}function m(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,p(e,t,"set"),n),n}function h(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function g(e,t){c(e,t),t.add(e)}function y(e){return e&&e.__esModule?e:{default:e}}const v="free";var b=new WeakMap,w=new WeakMap,_=new WeakMap,x=new WeakMap,k=new WeakSet,S=new WeakSet,E=new WeakSet,C=new WeakSet;class D extends a.EventEmitter{start(e,t){this.status="busy";const{task:n,resolve:r,reject:a,cleanup:i,setup:s}=e;t?.addEventListener("abort",h(this,C,T));const l=u.default.randomBytes(32).toString("hex");m(this,b,new o.TaskInfo({id:l,weight:e.weight,cleanup:i,resolve:r,reject:a,worker:this,setup:s,abortSignal:t})),d(this,w).promise=new Promise((e=>{d(this,w).resolve=e})),d(this,_).promise=new Promise((e=>{d(this,_).resolve=e})),d(this,x).postMessage({type:"start",task:{...n,weight:e.weight},id:l})}get weight(){return d(this,b)?.weight??1}get stdout(){return d(this,w).stream}get stderr(){return d(this,_).stream}get resourceLimits(){return d(this,x).resourceLimits}get threadId(){return d(this,x).threadId}terminate(){d(this,x).removeAllListeners(),d(this,x).terminate(),d(this,x).unref()}restart(){this.restarts++,this.status="busy",d(this,x).terminate(),h(this,k,O).call(this)}async checkMemoryUsage(){d(this,x).postMessage({type:"check-memory-usage"})}constructor(e,t){super(),g(this,k),g(this,S),g(this,E),g(this,C),f(this,b,{writable:!0,value:void 0}),f(this,w,{writable:!0,value:void 0}),f(this,_,{writable:!0,value:void 0}),f(this,x,{writable:!0,value:void 0}),this.script=e,this.options=t,m(this,w,{stream:new i.Readable,promise:Promise.resolve(),resolve:()=>{}}),m(this,_,{stream:new i.Readable,promise:Promise.resolve(),resolve:()=>{}}),this.status="busy",this.restarts=0,this.maxWorkerMemoryUsage=0,h(this,k,O).call(this)}}function O(){const{workerOptions:e}=this.options,n=this.script,r=new s.Worker(n,{...e,stdout:!0,stderr:!0});h(this,E,j).call(this,r);const a=r.stdout.pipe((0,t.createFilteredStreamTransform)()),i=r.stderr.pipe((0,t.createFilteredStreamTransform)());let o=()=>{};const u=new Promise((e=>{o=e,e()}));let c=()=>{};const p=new Promise((e=>{c=e,e()}));r.on("message",(e=>{if("status"===e.type)Promise.all([d(this,w).promise,d(this,_).promise]).then((()=>{const{err:t,results:n}=e;d(this,b)&&(d(this,b).abortSignal?.removeEventListener("abort",h(this,C,T)),d(this,b).done(t,n)),this.checkMemoryUsage()}));else if("report-memory-usage"===e.type){this.maxWorkerMemoryUsage=Math.max(this.maxWorkerMemoryUsage,e.memoryUsage);const t=this.options.workerIdleMemoryLimit??l.default.totalmem();t&&e.memoryUsage>t?this.restart():h(this,S,N).call(this)}}));r.on("error",(e=>{Promise.all([d(this,w).promise,d(this,_).promise]).then((()=>{d(this,b)&&d(this,b).done(e,null),this.emit("error",e),this.restart()}))})),m(this,x,r),m(this,w,{stream:a,promise:u,resolve:o}),m(this,_,{stream:i,promise:p,resolve:c}),h(this,S,N).call(this)}function N(){let e=1;d(this,b)&&(e=d(this,b).weight,m(this,b,void 0)),this.status="free",this.emit(v,{weight:e})}function j(e){const t=e.stdout,a=(0,n.createInterface)({input:t,crlfDelay:1/0}),i=e.stderr,o=(0,n.createInterface)({input:i,crlfDelay:1/0}),s=e=>{let t,n=[];return a=>{d(this,b)&&(a.includes((0,r.startMarker)(d(this,b).id))?(n=[],t="stdout"===e?d(this,w).resolve:d(this,_).resolve):a.includes((0,r.endMarker)(d(this,b).id))?t():n.push(a))}},u=s("stdout"),l=s("stderr");a.on("line",u),o.on("line",l)}function T(){d(this,x).postMessage({type:"abort"})}}(PV),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"WorkerPool",{enumerable:!0,get:()=>o});const t=P.default,n=PV,r=a(M.default);function a(e){return e&&e.__esModule?e:{default:e}}const i="free";class o extends t.EventEmitter{get workerRestarts(){return this.workers.reduce(((e,t)=>e+t.restarts),0)}get maxWorkerMemoryUsage(){return this.workers.reduce(((e,t)=>Math.max(e,t.maxWorkerMemoryUsage)),0)}stats(){return{maxWorkerMemoryUsage:this.maxWorkerMemoryUsage,workerRestarts:this.workerRestarts}}ensureWorkers(){if(0===this.workers.length)for(let e=0;e<this.maxWorkers;e++)this.addNewWorker()}addNewWorker(){const{script:e,workerOptions:t}=this.options,r=new n.ThreadWorker(e,{workerOptions:t,workerIdleMemoryLimit:this.options.workerIdleMemoryLimit});r.on("free",(e=>{const{weight:t}=e;this.availability+=t,this.emit(i)})),this.workers.push(r)}exec(e,t,n,r,a){return a?.aborted?Promise.resolve():(t=Math.min(Math.max(1,t),this.maxWorkers),new Promise(((i,o)=>{this.queue.push({task:{...e,weight:t},weight:t,resolve:i,reject:o,cleanup:r,setup:n}),this._exec(a)})))}_exec(e){const t=this.queue.findIndex((e=>e.weight<=this.availability));if(-1===t)return;const n=this.workers.find((e=>"free"===e.status));if(n){const r=this.queue[t];this.queue.splice(t,1),this.availability-=r.weight,n.start(r,e)}}async close(){await Promise.all(this.workers.map((e=>e.terminate())))}constructor(e){super(),this.options=e,this.workers=[],this.freeWorkers=[],this.queue=[],this.maxWorkers=0,this.availability=0,this.maxWorkers=this.options.maxWorkers??r.default.cpus().length-1,this.availability=this.maxWorkers,this.workers=[],this.freeWorkers=[],this.queue=[],this.ensureWorkers(),this.on(i,(()=>{this.queue.length>0&&this._exec()}))}}}(jV);var RV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AggregatedPool",{enumerable:!0,get:()=>n});const t=jV;class n{stats(){return[...this.groupedPools.values(),this.defaultPool].reduce(((e,t)=>{if(t){const n=t.stats();e.maxWorkerMemoryUsage=Math.max(e.maxWorkerMemoryUsage,n.maxWorkerMemoryUsage),e.workerRestarts=e.workerRestarts+n.workerRestarts}return e}),{maxWorkerMemoryUsage:0,workerRestarts:0})}async exec(e,t,n,r,a){const i=this.options.groupBy(e),o=this.groupedPools.get(i)??this.defaultPool;if(!o)throw new Error(`No pool found to be able to run ${i} tasks, try adjusting the maxWorkers & concurrency values`);return o.exec(e,t,n,r,a)}async close(){const e=[...this.groupedPools.values(),this.defaultPool].map((e=>e?.close()));return Promise.all(e)}constructor(e){this.options=e,this.groupedPools=new Map;const{maxWorkers:n,maxWorkersByGroup:r,script:a,workerOptions:i}=e;let o=0;for(const[n,s]of r.entries()){const r=new t.WorkerPool({maxWorkers:s,workerOptions:i,script:a,workerIdleMemoryLimit:e.workerIdleMemoryLimit});this.groupedPools.set(n,r),o+=s}if(o>n)throw new Error(`Total maxWorkers (${o}) configured across all groups exceeds concurrency (${n}). Try reducing the maxWorkers, or increasing the --concurrency CLI argument, or separate the tasks to be run`);const s=n-o;s>0&&(this.defaultPool=new t.WorkerPool({maxWorkers:s,workerOptions:i,script:a,workerIdleMemoryLimit:e.workerIdleMemoryLimit})),this.options.logger.verbose(`Workers pools created: ${[...r.entries(),["default",s]].map((([e,t])=>`${e} (${t})`)).join(", ")}`)}}}(RV),function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{registerWorker:()=>t.registerWorker,WorkerPool:()=>n.WorkerPool,AggregatedPool:()=>r.AggregatedPool});const t=OV,n=jV,r=RV}(DV);var IV={};!function(e){function t(e){return`${(e/1024/1024).toFixed(2)} MB`}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"formatBytes",{enumerable:!0,get:()=>t})}(IV);var MV={};!function(e){function t(e){const t={aborted:[],failed:[],skipped:[],success:[],running:[],pending:[],queued:[]};for(const n of e){const{status:e}=n;n.target.hidden||t[e].push(n.target.id)}return t}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"categorizeTargetRuns",{enumerable:!0,get:()=>t})}(MV);var LV={},FV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"bufferTransform",{enumerable:!0,get:()=>n});const t=z.default;function n(){const e=[];return{get buffer(){return e.join("")},transform:new t.Transform({transform(t,n,r){e.push(t.toString()),r()}})}}}(FV);var zV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getLageOutputCacheLocation",{enumerable:!0,get:()=>a});const t=Ve,n=r(A.default);function r(e){return e&&e.__esModule?e:{default:e}}function a(e,r){const a=(0,t.getLogsCacheDirectory)(e,r);return n.default.join(a,r+".log")}}(zV),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"WrappedTarget",{enumerable:!0,get:()=>u});const t=FV,n=zV,r=GL,a=s(R.default),i=s(A.default),o=re.default;function s(e){return e&&e.__esModule?e:{default:e}}class u{get abortController(){return this.options.abortController}set abortController(e){this.options.abortController=e}get successful(){return"skipped"===this.status||"success"===this.status}get waiting(){return"pending"===this.status||"queued"===this.status}onQueued(){this.status="queued",this.queueTime=process.hrtime()}onAbort(){this.status="aborted",this.duration=process.hrtime(this.startTime),this.options.logger.info("",{target:this.target,status:"aborted",threadId:this.threadId})}onStart(e){"running"!==this.status&&(this.threadId=e,this.status="running",this.startTime=process.hrtime(),this.options.logger.info("",{target:this.target,status:"running",threadId:e}))}onComplete(){this.status="success",this.duration=process.hrtime(this.startTime),this.options.logger.info("",{target:this.target,status:"success",duration:this.duration,threadId:this.threadId})}onFail(){this.status="failed",this.duration=process.hrtime(this.startTime),this.options.logger.info("",{target:this.target,status:"failed",duration:this.duration,threadId:this.threadId}),!this.options.continueOnError&&this.options.abortController&&this.options.abortController.abort()}onSkipped(e){0!==this.startTime[0]&&0!==this.startTime[1]&&(this.duration=process.hrtime(this.startTime)),this.status="skipped",e&&this.options.logger.info("",{target:this.target,status:"skipped",duration:this.duration,hash:e,threadId:this.threadId})}async getCache(){const{cacheProvider:e,hasher:t}=this.options;let n,r=!1;const{target:a,shouldCache:i,shouldResetCache:o}=this.options;return i&&a.cache&&e&&t?(n=await t.hash(a),n&&!o&&(r=await e.fetch(n,a)),{hash:n,cacheHit:r}):{hash:n,cacheHit:r}}async saveCache(e){const{logger:t,target:n,cacheProvider:r}=this.options;e&&r&&(t.verbose(`hash put ${e}`,{target:n}),await r.put(e,n))}async run(){const{target:e,logger:t,shouldCache:s,abortController:u}=this.options,l=u.signal;if(l.aborted)return this.onStart(0),void this.onAbort();try{const{hash:u,cacheHit:l}=await this.getCache(),c=e.cache&&s&&u;if(l){t.verbose(`hash: ${u}, cache hit? ${l}`,{target:e}),this.onStart(0);const i=(0,n.getLageOutputCacheLocation)(this.options.root,u??"");if(a.default.existsSync(i)){const t=a.default.createReadStream(i,"utf8");return this.options.logger.verbose(">> Replaying cached output",{target:e}),this.options.logger.stream(r.LogLevel.verbose,t,{target:e}),await new Promise((e=>{t.on("close",(()=>{this.onSkipped(u),e()}))}))}return void this.onSkipped(u)}t.verbose(`hash: ${u}, cache hit? ${l}`,{target:e});const p=await this.runInPool();if(c&&u){await this.saveCache(u);const e=(0,n.getLageOutputCacheLocation)(this.options.root,u),t=i.default.dirname(e);await(0,o.mkdir)(t,{recursive:!0});const r=`${p.stdoutBuffer}\n${p.stderrBuffer}`;await(0,o.writeFile)(e,r)}this.onComplete()}catch(n){throw t.error(String(n),{target:e}),l.aborted?this.onAbort():this.onFail(),n}}async runInPool(){const{target:e,logger:n,abortController:a,pool:i}=this.options,o=a.signal;let s,u;const l=(0,t.bufferTransform)(),c=(0,t.bufferTransform)();return this.result=i.exec({target:e},e.weight??1,((t,a,i)=>{const o=t.threadId;this.onStart(o),a.pipe(l.transform),i.pipe(c.transform);const p=n.stream(r.LogLevel.verbose,a,{target:e,threadId:o});s=()=>{p(),a.unpipe(l.transform)};const d=n.stream(r.LogLevel.verbose,i,{target:e,threadId:o});u=()=>{d(),i.unpipe(c.transform)}}),(()=>{s(),u()}),o),await this.result,{stdoutBuffer:l.buffer,stderrBuffer:c.buffer}}toJSON(){return{target:this.target.id,status:this.status}}constructor(e){this.options=e,this.queueTime=[0,0],this.startTime=[0,0],this.duration=[0,0],this.threadId=0,this.status="pending",this.target=e.target}}}(LV);var BV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"TargetRunnerPicker",{enumerable:!0,get:()=>i});const t=a(A.default),n=gI,r=W.default;function a(e){return e&&e.__esModule?e:{default:e}}class i{async pick(e){if(e.id===(0,n.getStartTargetId)())return new((await Promise.resolve().then((function(){return $V}))).NoOpRunner);if(e.type||(e.type="npmScript"),this.options[e.type]){const n=this.options[e.type],{script:a,options:i}=n;let o=a;o.startsWith("file://")||(o=(0,r.pathToFileURL)(o).toString());const s=await import(o),u=t.default.basename(a),l=u.replace(t.default.extname(u),"");return new("function"==typeof s[l]?s[l]:"function"==typeof s.default?s.default:"function"==typeof s.default[l]?s.default[l]:s)(i)}throw new Error(`No runner found for target ${e.id}`)}constructor(e){this.options=e}}}(BV),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"SimpleScheduler",{enumerable:!0,get:()=>c});const t=DV,n=IV,r=MV,a=gI,i=LV,o=BV;function s(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function u(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}var l=new WeakSet;class c{getTargetsByPriority(){return(0,a.sortTargetsByPriority)([...this.targetRuns.values()].map((e=>e.target)))}async run(e,t,n=!1){const o=process.hrtime(),{continueOnError:s,logger:u,cacheProvider:l,shouldCache:c,shouldResetCache:p,hasher:d}=this.options;u.verbose("",{schedulerRun:{startTime:o}});const{pool:f,abortController:m}=this,{targets:h}=t;for(const t of h.values()){let r;const o=this.targetRuns.get(t.id);o?(r=o,o.successful&&n?this.markTargetAndDependentsPending(t.id):o.waiting&&n?this.rerunTargets.add(r.target.id):o.successful||this.markTargetAndDependentsPending(t.id)):r=new i.WrappedTarget({target:t,root:e,logger:u,cacheProvider:l,hasher:d,shouldCache:c,shouldResetCache:p,continueOnError:s,abortController:m,pool:f}),t.id===(0,a.getStartTargetId)()&&(r.status="success"),this.targetRuns.set(t.id,r)}let g,y,v="failed",b=[0,0];try{await this.scheduleReadyTargets()}catch(e){g=e instanceof Error?e.message:String(e)}finally{b=process.hrtime(o),y=(0,r.categorizeTargetRuns)(this.targetRuns.values()),y.failed.length+y.aborted.length+y.pending.length+y.running.length===0&&(v="success")}const w=f.stats();return{targetRunByStatus:y,targetRuns:this.targetRuns,duration:b,startTime:o,results:v,error:g,workerRestarts:w.workerRestarts,maxWorkerMemoryUsage:w.maxWorkerMemoryUsage}}markTargetAndDependentsPending(e){const t=[e];for(;t.length>0;){const e=t.shift(),n=this.targetRuns.get(e);if("pending"!==n.status){n.status="pending",this.rerunTargets.add(n.target.id);const e=n.target.dependents;for(const n of e)t.push(n)}}}getReadyTargets(){const e=new Set;for(const t of this.getTargetsByPriority()){if(t.id===(0,a.getStartTargetId)())continue;const n=this.targetRuns.get(t.id);if("pending"===n.status){n.target.dependencies.every((e=>this.targetRuns.get(e).successful||e===(0,a.getStartTargetId)()))&&e.add(n)}}return[...e]}isAllDone(){for(const e of this.targetRuns.values())if("skipped"!==e.status&&"success"!==e.status&&e.target.id!==(0,a.getStartTargetId)())return!1;return!0}async scheduleReadyTargets(){if(this.isAllDone()||this.abortSignal.aborted)return Promise.resolve();this.options.logger.silly(`Max Worker Memory Usage: ${(0,n.formatBytes)(this.pool.stats().maxWorkerMemoryUsage)}`);const e=[];for(const t of this.getReadyTargets()){const n=s(this,l,p).call(this,t);e.push(n)}await Promise.all(e)}logProgress(){const e=(0,r.categorizeTargetRuns)(this.targetRuns.values()),t=[...this.targetRuns.values()].filter((e=>!e.target.hidden)).length;this.options.logger.verbose("",{poolStats:this.pool.stats(),progress:{waiting:e.pending.length+e.queued.length,completed:e.aborted.length+e.failed.length+e.skipped.length+e.success.length,total:t}})}async cleanup(){this.options.logger.silly(`Max Worker Memory Usage: ${(0,n.formatBytes)(this.pool.stats().maxWorkerMemoryUsage)}`),await this.pool.close()}abort(){this.abortController.abort()}constructor(e){u(this,l),this.options=e,this.targetRuns=new Map,this.rerunTargets=new Set,this.abortController=new AbortController,this.abortSignal=this.abortController.signal,this.runPromise=Promise.resolve(),this.pool=e.pool??new t.AggregatedPool({logger:e.logger,maxWorkersByGroup:e.maxWorkersPerTask,groupBy:({target:e})=>e.task,maxWorkers:e.concurrency,script:require.resolve("./workers/targetWorker"),workerOptions:{stdout:!0,stderr:!0,workerData:{runners:e.runners}},workerIdleMemoryLimit:e.workerIdleMemoryLimit}),this.runnerPicker=new o.TargetRunnerPicker(e.runners)}}async function p(e){let t;if(e.result&&e.successful&&!this.rerunTargets.has(e.target.id))await e.result;else{do{this.rerunTargets.delete(e.target.id),e.onQueued();try{let t=!0;try{const n=await this.runnerPicker.pick(e.target);t=await n.shouldRun(e.target)}catch(e){}t?await e.run():e.onSkipped()}catch(e){t=e}}while(this.rerunTargets.has(e.target.id));if(t&&!this.options?.continueOnError&&!this.options?.continueOnError)throw t}this.logProgress(),await this.scheduleReadyTargets()}}(CV);var UV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"WorkerRunner",{enumerable:!0,get:()=>n});const t=W.default;class n{async shouldRun(e){const t=await this.getScriptModule(e);return"function"!=typeof t.shouldRun||await t.shouldRun(e)}async run(e){const{target:t,weight:n,abortSignal:r}=e,{taskArgs:a}=this.options,i=await this.getScriptModule(t),o="function"==typeof i.run?i.run:"function"==typeof i.default?i.default:i;if("function"!=typeof o)throw new Error("WorkerRunner: worker script must export a function; you likely need to use `module.exports = function() {...}`");await o({target:t,weight:n,taskArgs:a,abortSignal:r})}async getScriptModule(e){const n=e.options?.worker??e.options?.script;if(!n)throw new Error('WorkerRunner: "script" configuration is required - e.g. { type: "worker", script: "./worker.js" }');let r=n;return r.startsWith("file://")||(r=(0,t.pathToFileURL)(r).toString()),await import(r)}constructor(e){this.options=e}}n.gracefulKillTimeout=2500}(UV);var qV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NoOpRunner",{enumerable:!0,get:()=>t});class t{async shouldRun(){return!0}async run(){}}}(qV);var $V=j({__proto__:null,default:se(qV)},[qV]);!function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{NpmScriptRunner:()=>t.NpmScriptRunner,SimpleScheduler:()=>n.SimpleScheduler,TargetRunnerPicker:()=>r.TargetRunnerPicker,WorkerRunner:()=>a.WorkerRunner,NoOpRunner:()=>i.NoOpRunner});const t=EV,n=CV,r=BV,a=UV,i=qV}(SV);var VV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getConcurrency",{enumerable:!0,get:()=>r});const t=n(M.default);function n(e){return e&&e.__esModule?e:{default:e}}function r(e,n){return e||n||t.default.cpus().length-1}}(VV);var HV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NoTargetFoundError",{enumerable:!0,get:()=>t});const t=new Error("No target found")}(HV),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"runAction",{enumerable:!0,get:()=>h});const t=$e,n=hI,r=DI,a=XL,i=JL,o=NI,s=eF,u=Uj,l=tF,c=SV,p=m(GL),d=VV,f=HV;function m(e){return e&&e.__esModule?e:{default:e}}async function h(e,m){const h=process.cwd(),g=await(0,o.getConfig)(h),y=(0,d.getConcurrency)(e.concurrency,g.concurrency),v=e.allowNoTargetRuns||g.allowNoTargetRuns,b=(0,p.default)();(0,l.initializeReporters)(b,{...e,concurrency:y});const w=(0,u.getWorkspaceRoot)(process.cwd()),_=(0,u.getPackageInfos)(w),{tasks:x,taskArgs:k}=(0,r.filterArgsForTasks)(m.args),S=(0,n.createTargetGraph)({logger:b,root:w,dependencies:e.dependencies,dependents:e.dependents&&!e.to,ignore:e.ignore.concat(g.ignore),pipeline:g.pipeline,repoWideChanges:g.repoWideChanges,scope:(e.scope??[]).concat(e.to??[]),since:e.since,outputs:g.cacheOptions.outputGlob,tasks:x,packageInfos:_});!function(e,t){const n=Array.from(e.targets.values()).filter((e=>!e.hidden));if(0===n.length&&!t)throw f.NoTargetFoundError}(S,v);const{cacheProvider:E,hasher:C}=(0,t.createCache)({root:w,logger:b,cacheOptions:g.cacheOptions,skipLocalCache:e.skipLocalCache,cliArgs:k});b.verbose(`Running with ${y} workers`);const D=(0,a.filterPipelineDefinitions)(S.targets.values(),g.pipeline),O=(0,s.getMaxWorkersPerTaskFromOptions)(e.maxWorkersPerTask),N=new c.SimpleScheduler({logger:b,concurrency:y,cacheProvider:E,hasher:C,continueOnError:e.continue,shouldCache:e.cache,shouldResetCache:e.resetCache,maxWorkersPerTask:new Map([...(0,s.getMaxWorkersPerTask)(D,y),...O]),runners:{npmScript:{script:require.resolve("./runners/NpmScriptRunner.js"),options:{nodeArg:e.nodeArg,taskArgs:k,npmCmd:(0,i.findNpmClient)(g.npmClient)}},worker:{script:require.resolve("./runners/WorkerRunner.js"),options:{taskArgs:k}},noop:{script:require.resolve("./runners/NoOpRunner.js"),options:{}},...g.runners},workerIdleMemoryLimit:g.workerIdleMemoryLimit}),j=await N.run(w,S);await N.cleanup(),function(e,t){"success"!==e.results&&(process.exitCode=1);for(const n of t)n.summarize(e)}(j,b.reporters)}}(QL);var WV={},GV={},KV={};const YV=R.default,{Readable:QV}=z.default,XV=A.default,{promisify:JV}=L.default,ZV=e_.exports,eH=JV(YV.readdir),tH=JV(YV.stat),nH=JV(YV.lstat),rH=JV(YV.realpath),aH="READDIRP_RECURSIVE_ERROR",iH=new Set(["ENOENT","EPERM","EACCES","ELOOP",aH]),oH="files",sH="directories",uH="files_directories",lH="all",cH=[oH,sH,uH,lH],[pH,dH]=process.versions.node.split(".").slice(0,2).map((e=>Number.parseInt(e,10))),fH="win32"===process.platform&&(pH>10||10===pH&&dH>=5),mH=e=>{if(void 0!==e){if("function"==typeof e)return e;if("string"==typeof e){const t=ZV(e.trim());return e=>t(e.basename)}if(Array.isArray(e)){const t=[],n=[];for(const r of e){const e=r.trim();"!"===e.charAt(0)?n.push(ZV(e.slice(1))):t.push(ZV(e))}return n.length>0?t.length>0?e=>t.some((t=>t(e.basename)))&&!n.some((t=>t(e.basename))):e=>!n.some((t=>t(e.basename))):e=>t.some((t=>t(e.basename)))}}};class hH extends QV{static get defaultOptions(){return{root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:oH,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark||4096});const t={...hH.defaultOptions,...e},{root:n,type:r}=t;this._fileFilter=mH(t.fileFilter),this._directoryFilter=mH(t.directoryFilter);const a=t.lstat?nH:tH;this._stat=fH?e=>a(e,{bigint:!0}):a,this._maxDepth=t.depth,this._wantsDir=[sH,uH,lH].includes(r),this._wantsFile=[oH,uH,lH].includes(r),this._wantsEverything=r===lH,this._root=XV.resolve(n),this._isDirent="Dirent"in YV&&!t.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(n,1)],this.reading=!1,this.parent=void 0}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){const{path:t,depth:n,files:r=[]}=this.parent||{};if(r.length>0){const a=r.splice(0,e).map((e=>this._formatEntry(e,t)));for(const t of await Promise.all(a)){if(this.destroyed)return;const r=await this._getEntryType(t);"directory"===r&&this._directoryFilter(t)?(n<=this._maxDepth&&this.parents.push(this._exploreDir(t.fullPath,n+1)),this._wantsDir&&(this.push(t),e--)):("file"===r||this._includeAsFile(t))&&this._fileFilter(t)&&this._wantsFile&&(this.push(t),e--)}}else{const e=this.parents.pop();if(!e){this.push(null);break}if(this.parent=await e,this.destroyed)return}}}catch(e){this.destroy(e)}finally{this.reading=!1}}}async _exploreDir(e,t){let n;try{n=await eH(e,this._rdOptions)}catch(e){this._onError(e)}return{files:n,depth:t,path:e}}async _formatEntry(e,t){let n;try{const r=this._isDirent?e.name:e,a=XV.resolve(XV.join(t,r));n={path:XV.relative(this._root,a),fullPath:a,basename:r},n[this._statsProp]=this._isDirent?e:await this._stat(a)}catch(e){this._onError(e)}return n}_onError(e){(e=>iH.has(e.code))(e)&&!this.destroyed?this.emit("warn",e):this.destroy(e)}async _getEntryType(e){const t=e&&e[this._statsProp];if(t){if(t.isFile())return"file";if(t.isDirectory())return"directory";if(t&&t.isSymbolicLink()){const t=e.fullPath;try{const e=await rH(t),n=await nH(e);if(n.isFile())return"file";if(n.isDirectory()){const n=e.length;if(t.startsWith(e)&&t.substr(n,1)===XV.sep){const n=new Error(`Circular symlink detected: "${t}" points to "${e}"`);return n.code=aH,this._onError(n)}return"directory"}}catch(e){this._onError(e)}}}}_includeAsFile(e){const t=e&&e[this._statsProp];return t&&this._wantsEverything&&!t.isDirectory()}}const gH=(e,t={})=>{let n=t.entryType||t.type;if("both"===n&&(n=uH),n&&(t.type=n),!e)throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");if("string"!=typeof e)throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(n&&!cH.includes(n))throw new Error(`readdirp: Invalid type passed. Use one of ${cH.join(", ")}`);return t.root=e,new hH(t)};gH.promise=(e,t={})=>new Promise(((n,r)=>{const a=[];gH(e,t).on("data",(e=>a.push(e))).on("end",(()=>n(a))).on("error",(e=>r(e)))})),gH.ReaddirpStream=hH,gH.default=gH;var yH=gH,vH={exports:{}},bH=function(e,t){if("string"!=typeof e)throw new TypeError("expected path to be a string");if("\\"===e||"/"===e)return"/";var n=e.length;if(n<=1)return e;var r="";if(n>4&&"\\"===e[3]){var a=e[2];"?"!==a&&"."!==a||"\\\\"!==e.slice(0,2)||(e=e.slice(2),r="//")}var i=e.split(/[/\\]+/);return!1!==t&&""===i[i.length-1]&&i.pop(),r+i.join("/")};Object.defineProperty(vH.exports,"__esModule",{value:!0});const wH=e_.exports,_H=bH,xH={returnIndex:!1},kH=(e,t,n,r)=>{const a=Array.isArray(n),i=a?n[0]:n;if(!a&&"string"!=typeof i)throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(i));const o=_H(i,!1);for(let e=0;e<t.length;e++){if((0,t[e])(o))return!!r&&-1}const s=a&&[o].concat(n.slice(1));for(let t=0;t<e.length;t++){const n=e[t];if(a?n(...s):n(o))return!r||t}return!!r&&-1},SH=(e,t,n=xH)=>{if(null==e)throw new TypeError("anymatch: specify first argument");const r="boolean"==typeof n?{returnIndex:n}:n,a=r.returnIndex||!1,i=(o=e,Array.isArray(o)?o:[o]);var o;const s=i.filter((e=>"string"==typeof e&&"!"===e.charAt(0))).map((e=>e.slice(1))).map((e=>wH(e,r))),u=i.filter((e=>"string"!=typeof e||"string"==typeof e&&"!"!==e.charAt(0))).map((e=>((e,t)=>{if("function"==typeof e)return e;if("string"==typeof e){const n=wH(e,t);return t=>e===t||n(t)}return e instanceof RegExp?t=>e.test(t):e=>!1})(e,r)));return null==t?(e,t=!1)=>kH(u,s,e,"boolean"==typeof t&&t):kH(u,s,t,a)};SH.default=SH,vH.exports=SH;var EH={exports:{}};EH.exports=["3dm","3ds","3g2","3gp","7z","a","aac","adp","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"];const CH=A.default,DH=new Set(EH.exports);var OH={};!function(e){const{sep:t}=A.default,{platform:n}=process,r=M.default;e.EV_ALL="all",e.EV_READY="ready",e.EV_ADD="add",e.EV_CHANGE="change",e.EV_ADD_DIR="addDir",e.EV_UNLINK="unlink",e.EV_UNLINK_DIR="unlinkDir",e.EV_RAW="raw",e.EV_ERROR="error",e.STR_DATA="data",e.STR_END="end",e.STR_CLOSE="close",e.FSEVENT_CREATED="created",e.FSEVENT_MODIFIED="modified",e.FSEVENT_DELETED="deleted",e.FSEVENT_MOVED="moved",e.FSEVENT_CLONED="cloned",e.FSEVENT_UNKNOWN="unknown",e.FSEVENT_TYPE_FILE="file",e.FSEVENT_TYPE_DIRECTORY="directory",e.FSEVENT_TYPE_SYMLINK="symlink",e.KEY_LISTENERS="listeners",e.KEY_ERR="errHandlers",e.KEY_RAW="rawEmitters",e.HANDLER_KEYS=[e.KEY_LISTENERS,e.KEY_ERR,e.KEY_RAW],e.DOT_SLASH=`.${t}`,e.BACK_SLASH_RE=/\\/g,e.DOUBLE_SLASH_RE=/\/\//,e.SLASH_OR_BACK_SLASH_RE=/[/\\]/,e.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,e.REPLACER_RE=/^\.[/\\]/,e.SLASH="/",e.SLASH_SLASH="//",e.BRACE_START="{",e.BANG="!",e.ONE_DOT=".",e.TWO_DOTS="..",e.STAR="*",e.GLOBSTAR="**",e.ROOT_GLOBSTAR="/**/*",e.SLASH_GLOBSTAR="/**",e.DIR_SUFFIX="Dir",e.ANYMATCH_OPTS={dot:!0},e.STRING_TYPE="string",e.FUNCTION_TYPE="function",e.EMPTY_STR="",e.EMPTY_FN=()=>{},e.IDENTITY_FN=e=>e,e.isWindows="win32"===n,e.isMacos="darwin"===n,e.isLinux="linux"===n,e.isIBMi="OS400"===r.type()}(OH);const NH=R.default,jH=A.default,{promisify:PH}=L.default,TH=e=>DH.has(CH.extname(e).slice(1).toLowerCase()),{isWindows:AH,isLinux:RH,EMPTY_FN:IH,EMPTY_STR:MH,KEY_LISTENERS:LH,KEY_ERR:FH,KEY_RAW:zH,HANDLER_KEYS:BH,EV_CHANGE:UH,EV_ADD:qH,EV_ADD_DIR:$H,EV_ERROR:VH,STR_DATA:HH,STR_END:WH,BRACE_START:GH,STAR:KH}=OH,YH=PH(NH.open),QH=PH(NH.stat),XH=PH(NH.lstat),JH=PH(NH.close),ZH=PH(NH.realpath),eW={lstat:XH,stat:QH},tW=(e,t)=>{e instanceof Set?e.forEach(t):t(e)},nW=(e,t,n)=>{let r=e[t];r instanceof Set||(e[t]=r=new Set([r])),r.add(n)},rW=(e,t,n)=>{const r=e[t];r instanceof Set?r.delete(n):r===n&&delete e[t]},aW=e=>e instanceof Set?0===e.size:!e,iW=new Map;function oW(e,t,n,r,a){const i=(t,r)=>{n(e),a(t,r,{watchedPath:e}),r&&e!==r&&sW(jH.resolve(e,r),LH,jH.join(e,r))};try{return NH.watch(e,t,i)}catch(e){r(e)}}const sW=(e,t,n,r,a)=>{const i=iW.get(e);i&&tW(i[t],(e=>{e(n,r,a)}))},uW=(e,t,n,r)=>{const{listener:a,errHandler:i,rawEmitter:o}=r;let s,u=iW.get(t);if(!n.persistent)return s=oW(e,n,a,i,o),s.close.bind(s);if(u)nW(u,LH,a),nW(u,FH,i),nW(u,zH,o);else{if(s=oW(e,n,sW.bind(null,t,LH),i,sW.bind(null,t,zH)),!s)return;s.on(VH,(async n=>{const r=sW.bind(null,t,FH);if(u.watcherUnusable=!0,AH&&"EPERM"===n.code)try{const t=await YH(e,"r");await JH(t),r(n)}catch(e){}else r(n)})),u={listeners:a,errHandlers:i,rawEmitters:o,watcher:s},iW.set(t,u)}return()=>{rW(u,LH,a),rW(u,FH,i),rW(u,zH,o),aW(u.listeners)&&(u.watcher.close(),iW.delete(t),BH.forEach((e=>t=>{const n=e[t];n instanceof Set?n.clear():delete e[t]})(u)),u.watcher=void 0,Object.freeze(u))}},lW=new Map;var cW=class{constructor(e){this.fsw=e,this._boundHandleError=t=>e._handleError(t)}_watchWithNodeFs(e,t){const n=this.fsw.options,r=jH.dirname(e),a=jH.basename(e);this.fsw._getWatchedDir(r).add(a);const i=jH.resolve(e),o={persistent:n.persistent};let s;return t||(t=IH),n.usePolling?(o.interval=n.enableBinaryInterval&&TH(a)?n.binaryInterval:n.interval,s=((e,t,n,r)=>{const{listener:a,rawEmitter:i}=r;let o=lW.get(t);const s=o&&o.options;return s&&(s.persistent<n.persistent||s.interval>n.interval)&&(o.listeners,o.rawEmitters,NH.unwatchFile(t),o=void 0),o?(nW(o,LH,a),nW(o,zH,i)):(o={listeners:a,rawEmitters:i,options:n,watcher:NH.watchFile(t,n,((n,r)=>{tW(o.rawEmitters,(e=>{e(UH,t,{curr:n,prev:r})}));const a=n.mtimeMs;(n.size!==r.size||a>r.mtimeMs||0===a)&&tW(o.listeners,(t=>t(e,n)))}))},lW.set(t,o)),()=>{rW(o,LH,a),rW(o,zH,i),aW(o.listeners)&&(lW.delete(t),NH.unwatchFile(t),o.options=o.watcher=void 0,Object.freeze(o))}})(e,i,o,{listener:t,rawEmitter:this.fsw._emitRaw})):s=uW(e,i,o,{listener:t,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),s}_handleFile(e,t,n){if(this.fsw.closed)return;const r=jH.dirname(e),a=jH.basename(e),i=this.fsw._getWatchedDir(r);let o=t;if(i.has(a))return;const s=async(t,n)=>{if(this.fsw._throttle("watch",e,5))if(n&&0!==n.mtimeMs){if(i.has(a)){const t=n.atimeMs,r=n.mtimeMs;(!t||t<=r||r!==o.mtimeMs)&&this.fsw._emit(UH,e,n),o=n}}else try{const n=await QH(e);if(this.fsw.closed)return;const r=n.atimeMs,a=n.mtimeMs;(!r||r<=a||a!==o.mtimeMs)&&this.fsw._emit(UH,e,n),RH&&o.ino!==n.ino?(this.fsw._closeFile(t),o=n,this.fsw._addPathCloser(t,this._watchWithNodeFs(e,s))):o=n}catch(e){this.fsw._remove(r,a)}},u=this._watchWithNodeFs(e,s);if((!n||!this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(qH,e,0))return;this.fsw._emit(qH,e,t)}return u}async _handleSymlink(e,t,n,r){if(this.fsw.closed)return;const a=e.fullPath,i=this.fsw._getWatchedDir(t);if(!this.fsw.options.followSymlinks){let t;this.fsw._incrReadyCount();try{t=await ZH(n)}catch(e){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;return i.has(r)?this.fsw._symlinkPaths.get(a)!==t&&(this.fsw._symlinkPaths.set(a,t),this.fsw._emit(UH,n,e.stats)):(i.add(r),this.fsw._symlinkPaths.set(a,t),this.fsw._emit(qH,n,e.stats)),this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(a))return!0;this.fsw._symlinkPaths.set(a,!0)}_handleRead(e,t,n,r,a,i,o){if(e=jH.join(e,MH),!n.hasGlob&&!(o=this.fsw._throttle("readdir",e,1e3)))return;const s=this.fsw._getWatchedDir(n.path),u=new Set;let l=this.fsw._readdirp(e,{fileFilter:e=>n.filterPath(e),directoryFilter:e=>n.filterDir(e),depth:0}).on(HH,(async o=>{if(this.fsw.closed)return void(l=void 0);const c=o.path;let p=jH.join(e,c);u.add(c),o.stats.isSymbolicLink()&&await this._handleSymlink(o,e,p,c)||(this.fsw.closed?l=void 0:c!==r&&(r||s.has(c))||(this.fsw._incrReadyCount(),p=jH.join(a,jH.relative(a,p)),this._addToNodeFs(p,t,n,i+1)))})).on(VH,this._boundHandleError);return new Promise((t=>l.once(WH,(()=>{if(this.fsw.closed)return void(l=void 0);const c=!!o&&o.clear();t(),s.getChildren().filter((t=>t!==e&&!u.has(t)&&(!n.hasGlob||n.filterPath({fullPath:jH.resolve(e,t)})))).forEach((t=>{this.fsw._remove(e,t)})),l=void 0,c&&this._handleRead(e,!1,n,r,a,i,o)}))))}async _handleDir(e,t,n,r,a,i,o){const s=this.fsw._getWatchedDir(jH.dirname(e)),u=s.has(jH.basename(e));let l,c;n&&this.fsw.options.ignoreInitial||a||u||i.hasGlob&&!i.globFilter(e)||this.fsw._emit($H,e,t),s.add(jH.basename(e)),this.fsw._getWatchedDir(e);const p=this.fsw.options.depth;if((null==p||r<=p)&&!this.fsw._symlinkPaths.has(o)){if(!a&&(await this._handleRead(e,n,i,a,e,r,l),this.fsw.closed))return;c=this._watchWithNodeFs(e,((t,n)=>{n&&0===n.mtimeMs||this._handleRead(t,!1,i,a,e,r,l)}))}return c}async _addToNodeFs(e,t,n,r,a){const i=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return i(),!1;const o=this.fsw._getWatchHelpers(e,r);!o.hasGlob&&n&&(o.hasGlob=n.hasGlob,o.globFilter=n.globFilter,o.filterPath=e=>n.filterPath(e),o.filterDir=e=>n.filterDir(e));try{const n=await eW[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,n))return i(),!1;const s=this.fsw.options.followSymlinks&&!e.includes(KH)&&!e.includes(GH);let u;if(n.isDirectory()){const i=jH.resolve(e),l=s?await ZH(e):e;if(this.fsw.closed)return;if(u=await this._handleDir(o.watchPath,n,t,r,a,o,l),this.fsw.closed)return;i!==l&&void 0!==l&&this.fsw._symlinkPaths.set(i,l)}else if(n.isSymbolicLink()){const a=s?await ZH(e):e;if(this.fsw.closed)return;const i=jH.dirname(o.watchPath);if(this.fsw._getWatchedDir(i).add(o.watchPath),this.fsw._emit(qH,o.watchPath,n),u=await this._handleDir(i,n,t,r,e,o,a),this.fsw.closed)return;void 0!==a&&this.fsw._symlinkPaths.set(jH.resolve(e),a)}else u=this._handleFile(o.watchPath,n,t);return i(),this.fsw._addPathCloser(e,u),!1}catch(t){if(this.fsw._handleError(t))return i(),e}}},pW={exports:{}};const dW=R.default,fW=A.default,{promisify:mW}=L.default;let hW;try{hW=require("fsevents")}catch(QO){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(QO)}if(hW){const e=process.version.match(/v(\d+)\.(\d+)/);if(e&&e[1]&&e[2]){const t=Number.parseInt(e[1],10),n=Number.parseInt(e[2],10);8===t&&n<16&&(hW=void 0)}}const{EV_ADD:gW,EV_CHANGE:yW,EV_ADD_DIR:vW,EV_UNLINK:bW,EV_ERROR:wW,STR_DATA:_W,STR_END:xW,FSEVENT_CREATED:kW,FSEVENT_MODIFIED:SW,FSEVENT_DELETED:EW,FSEVENT_MOVED:CW,FSEVENT_UNKNOWN:DW,FSEVENT_TYPE_FILE:OW,FSEVENT_TYPE_DIRECTORY:NW,FSEVENT_TYPE_SYMLINK:jW,ROOT_GLOBSTAR:PW,DIR_SUFFIX:TW,DOT_SLASH:AW,FUNCTION_TYPE:RW,EMPTY_FN:IW,IDENTITY_FN:MW}=OH,LW=mW(dW.stat),FW=mW(dW.lstat),zW=mW(dW.realpath),BW={stat:LW,lstat:FW},UW=new Map,qW=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),$W=(e,t)=>({stop:hW.watch(e,t)});const VW=e=>{let t=0;for(const n of UW.keys())if(0===n.indexOf(e)&&(t++,t>=10))return!0;return!1},HW=(e,t)=>{let n=0;for(;!e.indexOf(t)&&(e=fW.dirname(e))!==t;)n++;return n},WW=(e,t)=>e.type===NW&&t.isDirectory()||e.type===jW&&t.isSymbolicLink()||e.type===OW&&t.isFile();pW.exports=class{constructor(e){this.fsw=e}checkIgnored(e,t){const n=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,t))return n.add(e),t&&t.isDirectory()&&n.add(e+PW),!0;n.delete(e),n.delete(e+PW)}addOrChange(e,t,n,r,a,i,o,s){const u=a.has(i)?yW:gW;this.handleEvent(u,e,t,n,r,a,i,o,s)}async checkExists(e,t,n,r,a,i,o,s){try{const u=await LW(e);if(this.fsw.closed)return;WW(o,u)?this.addOrChange(e,t,n,r,a,i,o,s):this.handleEvent(bW,e,t,n,r,a,i,o,s)}catch(u){"EACCES"===u.code?this.addOrChange(e,t,n,r,a,i,o,s):this.handleEvent(bW,e,t,n,r,a,i,o,s)}}handleEvent(e,t,n,r,a,i,o,s,u){if(!this.fsw.closed&&!this.checkIgnored(t))if(e===bW){const e=s.type===NW;(e||i.has(o))&&this.fsw._remove(a,o,e)}else{if(e===gW){if(s.type===NW&&this.fsw._getWatchedDir(t),s.type===jW&&u.followSymlinks){const e=void 0===u.depth?void 0:HW(n,r)+1;return this._addToFsEvents(t,!1,!0,e)}this.fsw._getWatchedDir(a).add(o)}const i=s.type===NW?e+TW:e;this.fsw._emit(i,t),i===vW&&this._addToFsEvents(t,!1,!0)}}_watchWithFsEvents(e,t,n,r){if(this.fsw.closed||this.fsw._isIgnored(e))return;const a=this.fsw.options,i=function(e,t,n,r){let a=fW.extname(t)?fW.dirname(t):t;const i=fW.dirname(a);let o=UW.get(a);VW(i)&&(a=i);const s=fW.resolve(e),u=s!==t,l=(e,r,a)=>{u&&(e=e.replace(t,s)),e!==s&&e.indexOf(s+fW.sep)||n(e,r,a)};let c=!1;for(const e of UW.keys())if(0===t.indexOf(fW.resolve(e)+fW.sep)){a=e,o=UW.get(a),c=!0;break}return o||c?o.listeners.add(l):(o={listeners:new Set([l]),rawEmitter:r,watcher:$W(a,((e,t)=>{if(!o.listeners.size)return;const n=hW.getInfo(e,t);o.listeners.forEach((r=>{r(e,t,n)})),o.rawEmitter(n.event,e,n)}))},UW.set(a,o)),()=>{const e=o.listeners;if(e.delete(l),!e.size&&(UW.delete(a),o.watcher))return o.watcher.stop().then((()=>{o.rawEmitter=o.watcher=void 0,Object.freeze(o)}))}}(e,t,(async(i,o,s)=>{if(this.fsw.closed)return;if(void 0!==a.depth&&HW(i,t)>a.depth)return;const u=n(fW.join(e,fW.relative(e,i)));if(r&&!r(u))return;const l=fW.dirname(u),c=fW.basename(u),p=this.fsw._getWatchedDir(s.type===NW?u:l);if(qW.has(o)||s.event===DW)if(typeof a.ignored===RW){let e;try{e=await LW(u)}catch(e){}if(this.fsw.closed)return;if(this.checkIgnored(u,e))return;WW(s,e)?this.addOrChange(u,i,t,l,p,c,s,a):this.handleEvent(bW,u,i,t,l,p,c,s,a)}else this.checkExists(u,i,t,l,p,c,s,a);else switch(s.event){case kW:case SW:return this.addOrChange(u,i,t,l,p,c,s,a);case EW:case CW:return this.checkExists(u,i,t,l,p,c,s,a)}}),this.fsw._emitRaw);return this.fsw._emitReady(),i}async _handleFsEventsSymlink(e,t,n,r){if(!this.fsw.closed&&!this.fsw._symlinkPaths.has(t)){this.fsw._symlinkPaths.set(t,!0),this.fsw._incrReadyCount();try{const t=await zW(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(t))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(t||e,(r=>{let a=e;return t&&t!==AW?a=r.replace(t,e):r!==AW&&(a=fW.join(e,r)),n(a)}),!1,r)}catch(e){if(this.fsw._handleError(e))return this.fsw._emitReady()}}}emitAdd(e,t,n,r,a){const i=n(e),o=t.isDirectory(),s=this.fsw._getWatchedDir(fW.dirname(i)),u=fW.basename(i);o&&this.fsw._getWatchedDir(i),s.has(u)||(s.add(u),r.ignoreInitial&&!0!==a||this.fsw._emit(o?vW:gW,i,t))}initWatch(e,t,n,r){if(this.fsw.closed)return;const a=this._watchWithFsEvents(n.watchPath,fW.resolve(e||n.watchPath),r,n.globFilter);this.fsw._addPathCloser(t,a)}async _addToFsEvents(e,t,n,r){if(this.fsw.closed)return;const a=this.fsw.options,i=typeof t===RW?t:MW,o=this.fsw._getWatchHelpers(e);try{const t=await BW[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,t))throw null;if(t.isDirectory()){if(o.globFilter||this.emitAdd(i(e),t,i,a,n),r&&r>a.depth)return;this.fsw._readdirp(o.watchPath,{fileFilter:e=>o.filterPath(e),directoryFilter:e=>o.filterDir(e),...(s=a.depth-(r||0),isNaN(s)?{}:{depth:s})}).on(_W,(e=>{if(this.fsw.closed)return;if(e.stats.isDirectory()&&!o.filterPath(e))return;const t=fW.join(o.watchPath,e.path),{fullPath:r}=e;if(o.followSymlinks&&e.stats.isSymbolicLink()){const e=void 0===a.depth?void 0:HW(t,fW.resolve(o.watchPath))+1;this._handleFsEventsSymlink(t,r,i,e)}else this.emitAdd(t,e.stats,i,a,n)})).on(wW,IW).on(xW,(()=>{this.fsw._emitReady()}))}else this.emitAdd(o.watchPath,t,i,a,n),this.fsw._emitReady()}catch(e){e&&!this.fsw._handleError(e)||(this.fsw._emitReady(),this.fsw._emitReady())}var s;if(a.persistent&&!0!==n)if(typeof t===RW)this.initWatch(void 0,e,o,i);else{let t;try{t=await zW(o.watchPath)}catch(e){}this.initWatch(t,e,o,i)}}},pW.exports.canUse=()=>hW&&UW.size<128;const{EventEmitter:GW}=P.default,KW=R.default,YW=A.default,{promisify:QW}=L.default,XW=yH,JW=vH.exports.default,ZW=Hb,eG=Lb,tG=Zw,nG=bH,rG=cW,aG=pW.exports,{EV_ALL:iG,EV_READY:oG,EV_ADD:sG,EV_CHANGE:uG,EV_UNLINK:lG,EV_ADD_DIR:cG,EV_UNLINK_DIR:pG,EV_RAW:dG,EV_ERROR:fG,STR_CLOSE:mG,STR_END:hG,BACK_SLASH_RE:gG,DOUBLE_SLASH_RE:yG,SLASH_OR_BACK_SLASH_RE:vG,DOT_RE:bG,REPLACER_RE:wG,SLASH:_G,SLASH_SLASH:xG,BRACE_START:kG,BANG:SG,ONE_DOT:EG,TWO_DOTS:CG,GLOBSTAR:DG,SLASH_GLOBSTAR:OG,ANYMATCH_OPTS:NG,STRING_TYPE:jG,FUNCTION_TYPE:PG,EMPTY_STR:TG,EMPTY_FN:AG,isWindows:RG,isMacos:IG,isIBMi:MG}=OH,LG=QW(KW.stat),FG=QW(KW.readdir),zG=(e=[])=>Array.isArray(e)?e:[e],BG=(e,t=[])=>(e.forEach((e=>{Array.isArray(e)?BG(e,t):t.push(e)})),t),UG=e=>{const t=BG(zG(e));if(!t.every((e=>typeof e===jG)))throw new TypeError(`Non-string provided as watch path: ${t}`);return t.map($G)},qG=e=>{let t=e.replace(gG,_G),n=!1;for(t.startsWith(xG)&&(n=!0);t.match(yG);)t=t.replace(yG,_G);return n&&(t=_G+t),t},$G=e=>qG(YW.normalize(qG(e))),VG=(e=TG)=>t=>typeof t!==jG?t:$G(YW.isAbsolute(t)?t:YW.join(e,t)),HG=(e,t)=>void 0===e[t];class WG{constructor(e,t){this.path=e,this._removeWatcher=t,this.items=new Set}add(e){const{items:t}=this;t&&e!==EG&&e!==CG&&t.add(e)}async remove(e){const{items:t}=this;if(!t)return;if(t.delete(e),t.size>0)return;const n=this.path;try{await FG(n)}catch(e){this._removeWatcher&&this._removeWatcher(YW.dirname(n),YW.basename(n))}}has(e){const{items:t}=this;if(t)return t.has(e)}getChildren(){const{items:e}=this;if(e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}}class GG{constructor(e,t,n,r){this.fsw=r,this.path=e=e.replace(wG,TG),this.watchPath=t,this.fullWatchPath=YW.resolve(t),this.hasGlob=t!==e,e===TG&&(this.hasGlob=!1),this.globSymlink=!(!this.hasGlob||!n)&&void 0,this.globFilter=!!this.hasGlob&&JW(e,void 0,NG),this.dirParts=this.getDirParts(e),this.dirParts.forEach((e=>{e.length>1&&e.pop()})),this.followSymlinks=n,this.statMethod=n?"stat":"lstat"}checkGlobSymlink(e){return void 0===this.globSymlink&&(this.globSymlink=e.fullParentDir!==this.fullWatchPath&&{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return YW.join(this.watchPath,YW.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){const{stats:t}=e;if(t&&t.isSymbolicLink())return this.filterDir(e);const n=this.entryPath(e);return(!this.hasGlob||typeof this.globFilter!==PG||this.globFilter(n))&&this.fsw._isntIgnored(n,t)&&this.fsw._hasReadPermissions(t)}getDirParts(e){if(!this.hasGlob)return[];const t=[];return(e.includes(kG)?tG.expand(e):[e]).forEach((e=>{t.push(YW.relative(this.watchPath,e).split(vG))})),t}filterDir(e){if(this.hasGlob){const t=this.getDirParts(this.checkGlobSymlink(e));let n=!1;this.unmatchedGlob=!this.dirParts.some((e=>e.every(((e,r)=>(e===DG&&(n=!0),n||!t[0][r]||JW(e,t[0][r],NG))))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}}class KG extends GW{constructor(e){super();const t={};e&&Object.assign(t,e),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,HG(t,"persistent")&&(t.persistent=!0),HG(t,"ignoreInitial")&&(t.ignoreInitial=!1),HG(t,"ignorePermissionErrors")&&(t.ignorePermissionErrors=!1),HG(t,"interval")&&(t.interval=100),HG(t,"binaryInterval")&&(t.binaryInterval=300),HG(t,"disableGlobbing")&&(t.disableGlobbing=!1),t.enableBinaryInterval=t.binaryInterval!==t.interval,HG(t,"useFsEvents")&&(t.useFsEvents=!t.usePolling);aG.canUse()||(t.useFsEvents=!1),HG(t,"usePolling")&&!t.useFsEvents&&(t.usePolling=IG),MG&&(t.usePolling=!0);const n=process.env.CHOKIDAR_USEPOLLING;if(void 0!==n){const e=n.toLowerCase();t.usePolling="false"!==e&&"0"!==e&&("true"===e||"1"===e||!!e)}const r=process.env.CHOKIDAR_INTERVAL;r&&(t.interval=Number.parseInt(r,10)),HG(t,"atomic")&&(t.atomic=!t.usePolling&&!t.useFsEvents),t.atomic&&(this._pendingUnlinks=new Map),HG(t,"followSymlinks")&&(t.followSymlinks=!0),HG(t,"awaitWriteFinish")&&(t.awaitWriteFinish=!1),!0===t.awaitWriteFinish&&(t.awaitWriteFinish={});const a=t.awaitWriteFinish;a&&(a.stabilityThreshold||(a.stabilityThreshold=2e3),a.pollInterval||(a.pollInterval=100),this._pendingWrites=new Map),t.ignored&&(t.ignored=zG(t.ignored));let i=0;this._emitReady=()=>{i++,i>=this._readyCount&&(this._emitReady=AG,this._readyEmitted=!0,process.nextTick((()=>this.emit(oG))))},this._emitRaw=(...e)=>this.emit(dG,...e),this._readyEmitted=!1,this.options=t,t.useFsEvents?this._fsEventsHandler=new aG(this):this._nodeFsHandler=new rG(this),Object.freeze(t)}add(e,t,n){const{cwd:r,disableGlobbing:a}=this.options;this.closed=!1;let i=UG(e);return r&&(i=i.map((e=>{const t=((e,t)=>YW.isAbsolute(e)?e:e.startsWith(SG)?SG+YW.join(t,e.slice(1)):YW.join(t,e))(e,r);return a||!eG(e)?t:nG(t)}))),i=i.filter((e=>e.startsWith(SG)?(this._ignoredPaths.add(e.slice(1)),!1):(this._ignoredPaths.delete(e),this._ignoredPaths.delete(e+OG),this._userIgnored=void 0,!0))),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=i.length),this.options.persistent&&(this._readyCount*=2),i.forEach((e=>this._fsEventsHandler._addToFsEvents(e)))):(this._readyCount||(this._readyCount=0),this._readyCount+=i.length,Promise.all(i.map((async e=>{const r=await this._nodeFsHandler._addToNodeFs(e,!n,0,0,t);return r&&this._emitReady(),r}))).then((e=>{this.closed||e.filter((e=>e)).forEach((e=>{this.add(YW.dirname(e),YW.basename(t||e))}))}))),this}unwatch(e){if(this.closed)return this;const t=UG(e),{cwd:n}=this.options;return t.forEach((e=>{YW.isAbsolute(e)||this._closers.has(e)||(n&&(e=YW.join(n,e)),e=YW.resolve(e)),this._closePath(e),this._ignoredPaths.add(e),this._watched.has(e)&&this._ignoredPaths.add(e+OG),this._userIgnored=void 0})),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();const e=[];return this._closers.forEach((t=>t.forEach((t=>{const n=t();n instanceof Promise&&e.push(n)})))),this._streams.forEach((e=>e.destroy())),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach((e=>e.dispose())),["closers","watched","streams","symlinkPaths","throttled"].forEach((e=>{this[`_${e}`].clear()})),this._closePromise=e.length?Promise.all(e).then((()=>{})):Promise.resolve(),this._closePromise}getWatched(){const e={};return this._watched.forEach(((t,n)=>{const r=this.options.cwd?YW.relative(this.options.cwd,n):n;e[r||EG]=t.getChildren().sort()})),e}emitWithAll(e,t){this.emit(...t),e!==fG&&this.emit(iG,...t)}async _emit(e,t,n,r,a){if(this.closed)return;const i=this.options;RG&&(t=YW.normalize(t)),i.cwd&&(t=YW.relative(i.cwd,t));const o=[e,t];void 0!==a?o.push(n,r,a):void 0!==r?o.push(n,r):void 0!==n&&o.push(n);const s=i.awaitWriteFinish;let u;if(s&&(u=this._pendingWrites.get(t)))return u.lastChange=new Date,this;if(i.atomic){if(e===lG)return this._pendingUnlinks.set(t,o),setTimeout((()=>{this._pendingUnlinks.forEach(((e,t)=>{this.emit(...e),this.emit(iG,...e),this._pendingUnlinks.delete(t)}))}),"number"==typeof i.atomic?i.atomic:100),this;e===sG&&this._pendingUnlinks.has(t)&&(e=o[0]=uG,this._pendingUnlinks.delete(t))}if(s&&(e===sG||e===uG)&&this._readyEmitted){const n=(t,n)=>{t?(e=o[0]=fG,o[1]=t,this.emitWithAll(e,o)):n&&(o.length>2?o[2]=n:o.push(n),this.emitWithAll(e,o))};return this._awaitWriteFinish(t,s.stabilityThreshold,e,n),this}if(e===uG){if(!this._throttle(uG,t,50))return this}if(i.alwaysStat&&void 0===n&&(e===sG||e===cG||e===uG)){const e=i.cwd?YW.join(i.cwd,t):t;let n;try{n=await LG(e)}catch(e){}if(!n||this.closed)return;o.push(n)}return this.emitWithAll(e,o),this}_handleError(e){const t=e&&e.code;return e&&"ENOENT"!==t&&"ENOTDIR"!==t&&(!this.options.ignorePermissionErrors||"EPERM"!==t&&"EACCES"!==t)&&this.emit(fG,e),e||this.closed}_throttle(e,t,n){this._throttled.has(e)||this._throttled.set(e,new Map);const r=this._throttled.get(e),a=r.get(t);if(a)return a.count++,!1;let i;const o=()=>{const e=r.get(t),n=e?e.count:0;return r.delete(t),clearTimeout(i),e&&clearTimeout(e.timeoutObject),n};i=setTimeout(o,n);const s={timeoutObject:i,clear:o,count:0};return r.set(t,s),s}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,t,n,r){let a,i=e;this.options.cwd&&!YW.isAbsolute(e)&&(i=YW.join(this.options.cwd,e));const o=new Date,s=n=>{KW.stat(i,((i,o)=>{if(i||!this._pendingWrites.has(e))return void(i&&"ENOENT"!==i.code&&r(i));const u=Number(new Date);n&&o.size!==n.size&&(this._pendingWrites.get(e).lastChange=u);u-this._pendingWrites.get(e).lastChange>=t?(this._pendingWrites.delete(e),r(void 0,o)):a=setTimeout(s,this.options.awaitWriteFinish.pollInterval,o)}))};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:o,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(a),n)}),a=setTimeout(s,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,t){if(this.options.atomic&&bG.test(e))return!0;if(!this._userIgnored){const{cwd:e}=this.options,t=this.options.ignored,n=t&&t.map(VG(e)),r=zG(n).filter((e=>typeof e===jG&&!eG(e))).map((e=>e+OG)),a=this._getGlobIgnored().map(VG(e)).concat(n,r);this._userIgnored=JW(a,void 0,NG)}return this._userIgnored([e,t])}_isntIgnored(e,t){return!this._isIgnored(e,t)}_getWatchHelpers(e,t){const n=t||this.options.disableGlobbing||!eG(e)?e:ZW(e),r=this.options.followSymlinks;return new GG(e,n,r,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));const t=YW.resolve(e);return this._watched.has(t)||this._watched.set(t,new WG(t,this._boundRemove)),this._watched.get(t)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;const t=511&(e&&Number.parseInt(e.mode,10)),n=Number.parseInt(t.toString(8)[0],10);return Boolean(4&n)}_remove(e,t,n){const r=YW.join(e,t),a=YW.resolve(r);if(n=null!=n?n:this._watched.has(r)||this._watched.has(a),!this._throttle("remove",r,100))return;n||this.options.useFsEvents||1!==this._watched.size||this.add(e,t,!0);this._getWatchedDir(r).getChildren().forEach((e=>this._remove(r,e)));const i=this._getWatchedDir(e),o=i.has(t);i.remove(t),this._symlinkPaths.has(a)&&this._symlinkPaths.delete(a);let s=r;if(this.options.cwd&&(s=YW.relative(this.options.cwd,r)),this.options.awaitWriteFinish&&this._pendingWrites.has(s)){if(this._pendingWrites.get(s).cancelWait()===sG)return}this._watched.delete(r),this._watched.delete(a);const u=n?pG:lG;o&&!this._isIgnored(r)&&this._emit(u,r),this.options.useFsEvents||this._closePath(r)}_closePath(e){this._closeFile(e);const t=YW.dirname(e);this._getWatchedDir(t).remove(YW.basename(e))}_closeFile(e){const t=this._closers.get(e);t&&(t.forEach((e=>e())),this._closers.delete(e))}_addPathCloser(e,t){if(!t)return;let n=this._closers.get(e);n||(n=[],this._closers.set(e,n)),n.push(t)}_readdirp(e,t){if(this.closed)return;const n={type:iG,alwaysStat:!0,lstat:!0,...t};let r=XW(e,n);return this._streams.add(r),r.once(mG,(()=>{r=void 0})),r.once(hG,(()=>{r&&(this._streams.delete(r),r=void 0)})),r}}KV.FSWatcher=KG;KV.watch=(e,t)=>{const n=new KG(t);return n.add(e),n},function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"watch",{enumerable:!0,get:()=>o});const t=i(KV),n=i(A.default),r=Uj,a=i(P.default);function i(e){return e&&e.__esModule?e:{default:e}}function o(e){const i=new a.default,o=(0,r.getWorkspaceRoot)(e),s=(0,r.getPackageInfos)(e),u=function(e,t){const r={};for(const[a,i]of Object.entries(t)){const t=n.default.relative(e,n.default.dirname(i.packageJsonPath)).split(/[/\\]/);let o=r;for(const e of t)o[e]||(o[e]={}),o=o[e];o.packageName=a}return r}(o,s),l=Object.values(s).map((e=>n.default.dirname(e.packageJsonPath)));let c;return t.default.watch(l,{cwd:o,ignored:["**/node_modules/**","**/dist/**","**/build/**","**/lib/**"]}).on("change",(e=>{c&&clearTimeout(c),c=setTimeout((()=>{const t=function(e,t){const n=e.split(/[/\\]/);let r=t;for(const t of n){if(!r[t]){console.log(t,e);break}if(r[t].packageName)return r[t].packageName;r=r[t]}return}(e,u);i.emit("change",t)}),200)})),i}}(GV),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"watchAction",{enumerable:!0,get:()=>g});const t=$e,n=hI,r=DI,a=JL,i=NI,o=eF,s=Uj,u=XL,l=rF,c=SV,p=GV,d=h(GL),f=VV;function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}function h(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}async function g(e,m){const h=process.cwd(),g=await(0,i.getConfig)(h),v=(0,f.getConcurrency)(e.concurrency,g.concurrency),b=(0,d.default)(),w=new l.LogReporter({logLevel:d.LogLevel[e.logLevel]});b.addReporter(w);const _=(0,s.getWorkspaceRoot)(process.cwd()),x=(0,s.getPackageInfos)(_),{tasks:k,taskArgs:S}=(0,r.filterArgsForTasks)(m.args),E=(0,n.createTargetGraph)({logger:b,root:_,dependencies:e.dependencies,dependents:e.dependents&&!e.to,ignore:e.ignore.concat(g.ignore),pipeline:g.pipeline,repoWideChanges:g.repoWideChanges,scope:(e.scope??[]).concat(e.to??[]),since:e.since,outputs:g.cacheOptions.outputGlob,tasks:k,packageInfos:x});g.cacheOptions.writeRemoteCache=!1;const{cacheProvider:C,hasher:D}=(0,t.createCache)({root:_,logger:b,cacheOptions:g.cacheOptions,skipLocalCache:!1,cliArgs:S}),O=(0,u.filterPipelineDefinitions)(E.targets.values(),g.pipeline),N=(0,o.getMaxWorkersPerTaskFromOptions)(e.maxWorkersPerTask),j=new c.SimpleScheduler({logger:b,concurrency:v,cacheProvider:C,hasher:D,continueOnError:!0,shouldCache:e.cache,shouldResetCache:e.resetCache,maxWorkersPerTask:new Map([...(0,o.getMaxWorkersPerTask)(O,v),...N]),runners:{npmScript:{script:require.resolve("./runners/NpmScriptRunner.js"),options:{nodeArg:e.nodeArg,taskArgs:S,npmCmd:(0,a.findNpmClient)(g.npmClient)}},worker:{script:require.resolve("./runners/WorkerRunner.js"),options:{taskArgs:S}},noop:{script:require.resolve("./runners/NoOpRunner.js"),options:{}},...g.runners},workerIdleMemoryLimit:g.workerIdleMemoryLimit});y(await j.run(_,E),b.reporters),b.info("Running scheduler in watch mode");for(const e of j.targetRuns.values())e.options.cacheProvider=void 0,e.options.hasher=void 0,e.options.shouldCache=!1;(0,p.watch)(_).on("change",(async e=>{w.resetLogEntries();const t=new Map;for(const n of E.targets.values())n.packageName===e&&t.set(n.id,n);const n={targets:t};y(await j.run(_,n,!0),b.reporters)}))}function y(e,t){for(const n of t)n.summarize(e)}}(WV),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"action",{enumerable:!0,get:()=>a});const t=qe,n=QL,r=WV;async function a(e,a){return e.info?(0,t.infoAction)(e,a):e.unstableWatch?(0,r.watchAction)(e,a):(0,n.runAction)(e,a)}}(Ue);var YG={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLoggerOptions",{enumerable:!0,get:()=>n});const t=ce.exports;function n(e){const n=process.env.CI||process.env.TF_BUILD;return e.option("--reporter <reporter...>","reporter").option("--grouped","groups the logs",!1).addOption(new t.Option("--progress").conflicts(["reporter","grouped","verbose"]).default(!n)).addOption(new t.Option("--log-level <level>","log level").choices(["info","warn","error","verbose","silly"]).conflicts("verbose")).option("--verbose","verbose output",!1)}}(YG);var QG={};!function(e){function t(e){return e.option("--scope <scope...>","scopes the run to a subset of packages (by default, includes the dependencies and dependents as well)").option("--no-deps|--no-dependents","disables running any dependents of the scoped packages").option("--include-dependencies|--dependencies",'adds the scoped packages dependencies as the "entry points" for the target graph run').option("--to <scope...>","runs up to a package (shorthand for --scope=<scope...> --no-dependents)").option("--since <since>","only runs packages that have changed since the given commit, tag, or branch").option("--ignore <ignore...>","ignores files when calculating the scope with `--since` in addition to the files specified in lage.config",[])}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addFilterOptions",{enumerable:!0,get:()=>t})}(QG),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"runCommand",{enumerable:!0,get:()=>o});const t=ce.exports,n=Ue,r=YG,a=mI,i=QG,o=new t.Command("run");(0,i.addFilterOptions)((0,r.addLoggerOptions)(o)).action(n.action).option("-c, --concurrency <n>","concurrency",(e=>parseInt(e,10))).option("--max-workers-per-task <maxWorkersPerTarget...>","set max worker per task, e.g. --max-workers-per-task build=2 test=4",[]).option("--no-cache","disables the cache").option("--reset-cache","resets the cache, filling it after a run").option("--skip-local-cache","skips caching locally (defaults to true in CI environments)",a.isRunningFromCI).option("--profile [profile]","writes a run profile into a file that can be processed by Chromium devtool").option("--nodearg|--node-arg <nodeArg>",'arguments to be passed to node (e.g. --nodearg="--max_old_space_size=1234 --heap-prof" - set via "NODE_OPTIONS" environment variable').option("--continue","continues the run even on error").option("--allow-no-target-runs").addOption(new t.Option("--info","outputs information about a run action, suitable for calculating shards or as an input for another task runner").conflicts("unstableWatch")).option("--unstable-watch","runs in watch mode").allowUnknownOption(!0).addHelpCommand("[run] command1 [command2...commandN] [options]","run commands").addHelpText("after",'\nRuns a set of commands in a target graph. The targets are defined by packages and their scripts as defined the package.json files.\n\nExamples\n========\n \n### Basic case, running "build", "test", and "lint" against all packages\n\n $ lage build test lint\n\n### Concurrency\n \n $ lage build test lint --concurrency=4\n\n### Filtering by certain packages\n\nScoped to "package-a" and "package-b" and their dependencies and dependents:\n\n $ lage build test lint --scope package-a package-b\n\nScoped to "package-a" and "package-b" only:\n\n $ lage build test lint --scope package-a package-b --no-deps\n\nScoped to packages that have changed in the current branch against a target merge branch:\n\n $ lage build test lint --since origin/master\n\n### Providing node.js arguments for each command\n\n $ lage build test lint --nodearg=--max_old_space_size=1234 --nodearg=--heap-prof\n\n### Continue running even after encountering an error for one of the targets\n\n $ lage build test lint --continue\n\n### Controlling logged outputs\n\nShow verbose output for each target:\n\n $ lage build test lint --verbose\n\nShow only errors for each target:\n\n $ lage build test lint --log-level=error\n\nShow logs as grouped by each target:\n\n $ lage build test lint --grouped --verbose\n\nChoosing a different reporter while logging (e.g. nice outputs for Azure DevOps):\n\n $ lage build test lint --reporter=azureDevOps\n\nIgnoring files when calculating the scope with --since in addition to files specified in lage.config:\n\n $ lage build test lint --since origin/master --ignore "package.json" "yarn.lock" "**/.azure-pipelines/**"\n\n')}(Be);var XG={},JG={},ZG={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"clearCache",{enumerable:!0,get:()=>i});const t=NI,n=Uj,r=VV,a=Ve;async function i(e){const{logger:i,cwd:o}=e,s=await(0,t.getConfig)(o),u=(0,n.getWorkspaceRoot)(o),l=(0,r.getConcurrency)(e.concurrency,s.concurrency);if(!u)return;const c=new a.BackfillCacheProvider({root:o,cacheOptions:s.cacheOptions,logger:i});console.log("Clearing Cache"),c.clear(l),console.log("Cache Cleared")}}(ZG);var eK={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pruneCache",{enumerable:!0,get:()=>i});const t=Uj,n=NI,r=VV,a=Ve;async function i(e){const{logger:i,cwd:o,pruneDays:s}=e,u=await(0,n.getConfig)(o),l=(0,t.getWorkspaceRoot)(o),c=(0,r.getConcurrency)(e.concurrency,u.concurrency);if(!l)return;const p=s||30,d=new a.BackfillCacheProvider({root:o,cacheOptions:u.cacheOptions,logger:i});console.log("Clearing Cache"),d.purge(p,c),console.log("Cache Cleared")}}(eK),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"cacheAction",{enumerable:!0,get:()=>o});const t=ZG,n=NI,r=eK,a=i(GL);function i(e){return e&&e.__esModule?e:{default:e}}async function o(e,i){const o=process.cwd(),s=await(0,n.getConfig)(o),u=(0,a.default)();return e.clear?await(0,t.clearCache)({cwd:process.cwd(),internalCacheFolder:s.cacheOptions.internalCacheFolder,logger:u,concurrency:e.concurrency}):e.prune?await(0,r.pruneCache)({pruneDays:e.prune,cwd:process.cwd(),internalCacheFolder:s.cacheOptions.internalCacheFolder,logger:u,concurrency:e.concurrency}):void i.help()}}(JG),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"cacheCommand",{enumerable:!0,get:()=>a});const t=ce.exports,n=YG,r=JG,a=new t.Command("cache");(0,n.addLoggerOptions)(a).action(r.cacheAction).addOption(new t.Option("--prune <days>","Prunes cache older than certain number of <days>").argParser(parseInt).conflicts("--clear")).option("--clear","Clears the cache locally")}(XG);var tK={},nK={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"affectedAction",{enumerable:!0,get:()=>o});const t=i(GL),n=Uj,r=NI,a=CI;function i(e){return e&&e.__esModule?e:{default:e}}async function o(e){const{dependencies:i,dependents:o,since:u,scope:l,ignore:c,outputFormat:p}=e,d=process.cwd(),f=await(0,r.getConfig)(d),m=(0,t.default)(),h=(0,n.getWorkspaceRoot)(d),g=(0,n.getPackageInfos)(h),y=(0,a.getFilteredPackages)({root:h,logger:m,packageInfos:g,includeDependencies:i,includeDependents:o,since:u,scope:l,repoWideChanges:f.repoWideChanges,sinceIgnoreGlobs:c});let v="";switch(p){case"graph":v=function(e){const t=s(e),{packages:n}=t,r=[];for(const[e,t]of Object.entries(n))for(const n of t.dependencies)r.push([e,n]);return`\ndigraph affected {\n${r.map((e=>` "${e[0]}" -> "${e[1]}"`)).join("\n")}\n} \n`}({packages:y,packageInfos:g});break;case"json":v=function(e){const t=s(e);return JSON.stringify(t)}({packages:y,packageInfos:g});break;default:v=function(e){const{packages:t}=e;return`\nAll Affected Packages\n---------------------\n\n${t.join("\n")}\n`}({packages:y})}console.log(v)}function s(e){const{packages:t,packageInfos:n}=e,r=t.reduce(((e,r)=>{const a=Object.keys(n[r].dependencies??{}).filter((e=>t.includes(e))),i=Object.keys(n[r].dependents??{}).filter((e=>t.includes(e)));return e[r]={dependencies:a,dependents:i},e}),{});return{packages:r,count:t.length}}}(nK),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"affectedCommand",{enumerable:!0,get:()=>r});const t=QG,n=nK,r=new ce.exports.Command("affected");(0,t.addFilterOptions)(r).action(n.affectedAction).option("--output-format <graph|json|default>",'Generate a report about what packages are affected by the current change (defaults to human readable format) "graph" will generate a GraphViz .dot file format').option("--since <branch>","Calculate changes since this branch (defaults to origin/master)","origin/master")}(tK),Object.defineProperty(le,"__esModule",{value:!0});const rK=ce.exports,aK=Be,iK=XG,oK=HV,sK=tK;(async function(){const e=new rK.Command;e.addCommand(aK.runCommand,{isDefault:!0}),e.addCommand(iK.cacheCommand),e.addCommand(sK.affectedCommand),await e.parseAsync(process.argv)})().catch((e=>{if(e===oK.NoTargetFoundError)console.log("lage: no targets found that matches the given scope.");else console.error(e);process.exitCode=1})),module.exports=le;
|
|
633
633
|
//# sourceMappingURL=lage.js.map
|