(("undefined"!==typeofself?self:this)["webpackChunkharvester_1_8_0_dev"]=("undefined"!==typeofself?self:this)["webpackChunkharvester_1_8_0_dev"]||[]).push([[37],{49037:function(e){constt=[{generic:{tip:"Tip",resourceExternalLinkTips:"External Link",namespace:"Namespace",notReady:"Not Ready",labels:"Labels",inProgress:"In Progress",basic:"Basic",loading:"Loading..."},unsupported:{serverVersion:"Current version: <code>{serverVersion}</code>",description:"Harvester ui only supports Harvester cluster version greater or equal to 1.3.0.",learnMore:'Learn more about Harvester from the <a target="_blank" href="https://harvesterhci.io/" rel="noopener noreferrer nofollow">Harvester Web Site</a> or read the <a target="_blank" href="https://docs.harvesterhci.io/" rel="noopener noreferrer nofollow">Harvester Docs</a>'},nav:{group:{networks:"Networks",backupAndSnapshot:"Backup and Snapshots",Monitoring:"Monitoring",Logging:"Logging","Monitoring and Logging":"Monitoring and Logging",vmimport:"Virtual Machine Imports"}},resourceTable:{groupBy:{device:"Group by Device"}},validation:{arrayCountRequired:"At least {count} {key} {count, plural, =1 {is} other {are}} required, and {key} can not be empty."},members:{clusterMemebership:"Cluster Membership",projectMembership:"Project Membership"},asyncButton:{restart:{action:"Save and Restart",success:"Restarted",waiting:"Restarting…"}},dialog:{confirmExecution:{title:"Are you sure?",andOthers:"{count, plural,\n=0 {}\n=1 { and <b>one other </b>}\nother { and <b>{count} other </b>}\n}",protip:"Tip: Hold the {alternateLabel} key while clicking action to bypass this confirmation",stop:{message:"Are you sure you want to stop the {type} {names}?"},pause:{message:"Are you sure you want to pause the {type} {names}?"},restart:{message:"Are you sure you want to restart the {type} {names}?"},softreboot:{message:"Are you sure you want to soft reboot the {type} {names}?"}},promptRemove:{title:"Delete {type}",warningMessage:"Deleting the selected {type} permanently removes all resources on {thisOrThese} {type}. This action is irreversible. Do you want to continue?",confirmName:"Type <b>{nameToMatch}</b> to delete the {type}:",protip:"Tip: Hold the {alternateLabel} key while clicking Delete to bypass the confirmation step."}},harvester:{branding:{logos:{tip:"Upload a logo to replace the Harvester logo in the top-level navigation header. Image height should be 21 pixels with a max width of 200 pixels. Max file size is 20KB. Accepted formats: JPEG, PNG, SVG."},favicon:{tip:"Upload an icon to replace the Harvester favicon in the browser tab. Max file size is 20KB"}},productLabel:"Harvester",modal:{backup:{success:"Backup { backUpName } has been initiated.",addBackup:"Add Backup"},quota:{editVMQuota:"Edit VM Quota",editQuota:"Edit Quota",bannerMessage:"Set to empty string or 0 to remove total snapshot size quota."},restore:{success:"Restore { name } created successfully.",title:"Backup and Restore",selectBackup:"Select Backup",message:{backup:"Please select the backup that needs to be restored."}},createTemplate:{title:"Generate Template",name:"Name",description:"Description",message:{tip:"Please enter a template name!",success:"Template { templateName } created successfully.",failed:"Failed generated template!"}},schedule:{title:"Create Schedule",message:{tip:"Please enter a schedule name!",success:"Schedule { name } created successfully.",failed:"Failed create schedule!"}},cloneVM:{title:"Clone Virtual Machine",name:"New Virtual Machine Name",type:"Clone volume data",action:{create:"Create",clone:"Clone"},message:{tip:"Please enter a virtual machine name!",success:"Virtual machine { name } cloned successfully.",failed:"Failed clone virtual machine!"}},osImage:{title:"Delete Image",message:"Are you sure you want to delete the image { name } ?"},downloadImage:{title:"Download Image",banner:"This action takes a while depending on the image size ({ size }). Please be patient.",startMessage:"The download process will auto start once the conversion is complete.",download:"Download"},exportImage:{title:"Export to Image",name:"Name",namespace:"Namespace",message:{success:"Image { name } created successfully."}},migration:{failedMessage:"Latest migration failed!",title:"Migration",fields:{nodeName:{label:"Target Node",placeholder:"Choose Target Node"}}},ejectCDROM:{title:"Eject CD-ROM",warnTip:"Eject volume will restart the virtual machine.",operationTip:"Select the volume you want to delete:",delete:"Delete"},bundle:{title:"Generate a Support Bundle",titleDescription:"Collect system-related logs in Harvester to assist with troubleshooting and support.",tip:'Each field below specifies an aspect of the support bundle. For detailed explanations, please refer to the <a href="{doc}" target="_blank">documentation</a>.',url:"Issue URL",description:"Description",namespaces:{label:"Namespaces",tooltip:"Selectadditionalnamespacestoincludeinthesupportbundle.<br/>Seedocssupport-bundle-namespacesfLine truncated
(("undefined"!==typeofself?self:this)["webpackChunkharvester_1_8_0_dev"]=("undefined"!==typeofself?self:this)["webpackChunkharvester_1_8_0_dev"]||[]).push([[37],{49037:function(e){constt=[{generic:{tip:"Tip",resourceExternalLinkTips:"External Link",namespace:"Namespace",notReady:"Not Ready",labels:"Labels",inProgress:"In Progress",basic:"Basic",loading:"Loading..."},unsupported:{serverVersion:"Current version: <code>{serverVersion}</code>",description:"Harvester ui only supports Harvester cluster version greater or equal to 1.3.0.",learnMore:'Learn more about Harvester from the <a target="_blank" href="https://harvesterhci.io/" rel="noopener noreferrer nofollow">Harvester Web Site</a> or read the <a target="_blank" href="https://docs.harvesterhci.io/" rel="noopener noreferrer nofollow">Harvester Docs</a>'},nav:{group:{networks:"Networks",backupAndSnapshot:"Backup and Snapshots",Monitoring:"Monitoring",Logging:"Logging","Monitoring and Logging":"Monitoring and Logging",vmimport:"Virtual Machine Imports"}},resourceTable:{groupBy:{device:"Group by Device"}},validation:{arrayCountRequired:"At least {count} {key} {count, plural, =1 {is} other {are}} required, and {key} can not be empty."},members:{clusterMemebership:"Cluster Membership",projectMembership:"Project Membership"},asyncButton:{restart:{action:"Save and Restart",success:"Restarted",waiting:"Restarting…"}},dialog:{confirmExecution:{title:"Are you sure?",andOthers:"{count, plural,\n=0 {}\n=1 { and <b>one other </b>}\nother { and <b>{count} other </b>}\n}",protip:"Tip: Hold the {alternateLabel} key while clicking action to bypass this confirmation",stop:{message:"Are you sure you want to stop the {type} {names}?"},pause:{message:"Are you sure you want to pause the {type} {names}?"},restart:{message:"Are you sure you want to restart the {type} {names}?"},softreboot:{message:"Are you sure you want to soft reboot the {type} {names}?"}},promptRemove:{title:"Delete {type}",warningMessage:"Deleting the selected {type} permanently removes all resources on {thisOrThese} {type}. This action is irreversible. Do you want to continue?",confirmName:"Type <b>{nameToMatch}</b> to delete the {type}:",protip:"Tip: Hold the {alternateLabel} key while clicking Delete to bypass the confirmation step."}},harvester:{branding:{logos:{tip:"Upload a logo to replace the Harvester logo in the top-level navigation header. Image height should be 21 pixels with a max width of 200 pixels. Max file size is 20KB. Accepted formats: JPEG, PNG, SVG."},favicon:{tip:"Upload an icon to replace the Harvester favicon in the browser tab. Max file size is 20KB"}},productLabel:"Harvester",modal:{backup:{success:"Backup { backUpName } has been initiated.",addBackup:"Add Backup"},quota:{editVMQuota:"Edit VM Quota",editQuota:"Edit Quota",bannerMessage:"Set to empty string or 0 to remove total snapshot size quota."},restore:{success:"Restore { name } created successfully.",title:"Backup and Restore",selectBackup:"Select Backup",message:{backup:"Please select the backup that needs to be restored."}},createTemplate:{title:"Generate Template",name:"Name",description:"Description",message:{tip:"Please enter a template name!",success:"Template { templateName } created successfully.",failed:"Failed generated template!"}},schedule:{title:"Create Schedule",message:{tip:"Please enter a schedule name!",success:"Schedule { name } created successfully.",failed:"Failed create schedule!"}},cloneVM:{title:"Clone Virtual Machine",name:"New Virtual Machine Name",type:"Clone volume data",action:{create:"Create",clone:"Clone"},message:{tip:"Please enter a virtual machine name!",success:"Virtual machine { name } cloned successfully.",failed:"Failed clone virtual machine!"}},osImage:{title:"Delete Image",message:"Are you sure you want to delete the image { name } ?"},downloadImage:{title:"Download Image",banner:"This action takes a while depending on the image size ({ size }). Please be patient.",startMessage:"The download process will auto start once the conversion is complete.",download:"Download"},exportImage:{title:"Export to Image",name:"Name",namespace:"Namespace",message:{success:"Image { name } created successfully."}},migration:{failedMessage:"Latest migration failed!",title:"Migration",fields:{nodeName:{label:"Target Node",placeholder:"Choose Target Node"}}},ejectCDROM:{title:"Eject CD-ROM",warnTip:"Eject volume will restart the virtual machine.",operationTip:"Select the volume you want to delete:",delete:"Delete"},bundle:{title:"Generate a Support Bundle",titleDescription:"Collect system-related logs in Harvester to assist with troubleshooting and support.",tip:'Each field below specifies an aspect of the support bundle. For detailed explanations, please refer to the <a href="{doc}" target="_blank">documentation</a>.',url:"Issue URL",description:"Description",namespaces:{label:"Namespaces",tooltip:"Selectadditionalnamespacestoincludeinthesupportbundle.<br/>Seedocssupport-bundle-namespacesfLine truncated
functionF(e,t){(null==t||t>e.length)&&(t=e.length);for(varr=0,n=Array(t);r<t;r++)n[r]=e[r];returnn}function$(e){if(Array.isArray(e))returnF(e)}functionU(e,t,r){return(t=q(t))ine?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}functionj(e){if("undefined"!=typeofSymbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])returnArray.from(e)}functionV(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}functionK(e,t){varr=Object.keys(e);if(Object.getOwnPropertySymbols){varn=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}returnr}functionH(e){for(vart=1;t<arguments.length;t++){varr=null!=arguments[t]?arguments[t]:{};t%2?K(Object(r),!0).forEach((function(t){U(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}returne}functionG(e){return$(e)||j(e)||X(e)||V()}functionz(e,t){if("object"!=typeofe||!e)returne;varr=e[Symbol.toPrimitive];if(void0!==r){varn=r.call(e,t);if("object"!=typeofn)returnn;thrownewTypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}functionq(e){vart=z(e,"string");return"symbol"==typeoft?t:t+""}functionX(e,t){if(e){if("string"==typeofe)returnF(e,t);varr={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?F(e,t):void0}}varW={activateTrap:function(e,t){if(e.length>0){varr=e[e.length-1];r!==t&&r._setPausedState(!0)}varn=e.indexOf(t);-1===n||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){varr=e.indexOf(t);-1!==r&&e.splice(r,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},Y=function(e){returne.tagName&&"input"===e.tagName.toLowerCase()&&"function"===typeofe.select},Q=function(e){return"Escape"===(null===e||void0===e?void0:e.key)||"Esc"===(null===e||void0===e?void0:e.key)||27===(null===e||void0===e?void0:e.keyCode)},J=function(e){return"Tab"===(null===e||void0===e?void0:e.key)||9===(null===e||void0===e?void0:e.keyCode)},Z=function(e){returnJ(e)&&!e.shiftKey},ee=function(e){returnJ(e)&&e.shiftKey},te=function(e){returnsetTimeout(e,0)},re=function(e){for(vart=arguments.length,r=newArray(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return"function"===typeofe?e.apply(void0,r):e},ne=function(e){returne.target.shadowRoot&&"function"===typeofe.composedPath?e.composedPath()[0]:e.target},ie=[],ae=function(e,t){varr,n=(null===t||void0===t?void0:t.document)||document,i=(null===t||void0===t?void0:t.trapStack)||ie,a=H({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Z,isKeyBackward:ee},t),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void0,recentNavEvent:void0},s=function(e,t,r){returne&&void0!==e[t]?e[t]:a[r||t]},l=function(e,t){varr="function"===typeof(null===t||void0===t?void0:t.composedPath)?t.composedPath():void0;returno.containerGroups.findIndex((function(t){varn=t.container,i=t.tabbableNodes;returnn.contains(e)||(null===r||void0===r?void0:r.includes(n))||i.find((function(t){returnt===e}))}))},c=function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},r=t.hasFallback,i=void0!==r&&r,o=t.params,s=void0===o?[]:o,l=a[e];if("function"===typeofl&&(l=l.apply(void0,G(s))),!0===l&&(l=void0),!l){if(void0===l||!1===l)returnl;thrownewError("`".concat(e,"` was specified but was not a node, or did not return a node"))}varc=l;if("string"===typeofl){try{c=n.querySelector(l)}catch(u){thrownewError("`".concat(e,'` appears to be an invalid selector; error="').concat(u.message,'"'))}if(!c&&!i)thrownewError("`".concat(e,"` as selector refers to no known node"))}returnc},u=function(){vare=c("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void0===e||e&&!B(e,a.tabbableOptions))if(l(n.activeElement)>=0)e=n.activeElement;else{vart=o.tabbableGroups[0],r=t&&t.firstTabbableNode;e=r||c("fallbackFocus")}elsenull===e&&(e=c("fallbackFocus"));if(!e)thrownewError("Your focus-trap needs to have at least one focusable element");returne},d=function(){if(o.containerGroups=o.containers.map((function(e){vart=L(e,a.tabbableOptions),r=D(e,a.tabbableOptions),n=t.length>0?t[0]:void0,i=t.length>0?t[t.length-1]:void0,o=r.find((function(e){returnP(e)})),s=r.slice().reverse().find((function(e){returnP(e)})),l=!!t.find((function(e){returnm(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:l,firstTabbableNode:n,lastTabbableNoLine truncated
functionF(e,t){(null==t||t>e.length)&&(t=e.length);for(varr=0,n=Array(t);r<t;r++)n[r]=e[r];returnn}function$(e){if(Array.isArray(e))returnF(e)}functionU(e,t,r){return(t=q(t))ine?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}functionj(e){if("undefined"!=typeofSymbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])returnArray.from(e)}functionV(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}functionK(e,t){varr=Object.keys(e);if(Object.getOwnPropertySymbols){varn=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}returnr}functionH(e){for(vart=1;t<arguments.length;t++){varr=null!=arguments[t]?arguments[t]:{};t%2?K(Object(r),!0).forEach((function(t){U(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}returne}functionG(e){return$(e)||j(e)||X(e)||V()}functionz(e,t){if("object"!=typeofe||!e)returne;varr=e[Symbol.toPrimitive];if(void0!==r){varn=r.call(e,t);if("object"!=typeofn)returnn;thrownewTypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}functionq(e){vart=z(e,"string");return"symbol"==typeoft?t:t+""}functionX(e,t){if(e){if("string"==typeofe)returnF(e,t);varr={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?F(e,t):void0}}varW={activateTrap:function(e,t){if(e.length>0){varr=e[e.length-1];r!==t&&r._setPausedState(!0)}varn=e.indexOf(t);-1===n||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){varr=e.indexOf(t);-1!==r&&e.splice(r,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},Y=function(e){returne.tagName&&"input"===e.tagName.toLowerCase()&&"function"===typeofe.select},Q=function(e){return"Escape"===(null===e||void0===e?void0:e.key)||"Esc"===(null===e||void0===e?void0:e.key)||27===(null===e||void0===e?void0:e.keyCode)},J=function(e){return"Tab"===(null===e||void0===e?void0:e.key)||9===(null===e||void0===e?void0:e.keyCode)},Z=function(e){returnJ(e)&&!e.shiftKey},ee=function(e){returnJ(e)&&e.shiftKey},te=function(e){returnsetTimeout(e,0)},re=function(e){for(vart=arguments.length,r=newArray(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return"function"===typeofe?e.apply(void0,r):e},ne=function(e){returne.target.shadowRoot&&"function"===typeofe.composedPath?e.composedPath()[0]:e.target},ie=[],ae=function(e,t){varr,n=(null===t||void0===t?void0:t.document)||document,i=(null===t||void0===t?void0:t.trapStack)||ie,a=H({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Z,isKeyBackward:ee},t),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void0,recentNavEvent:void0},s=function(e,t,r){returne&&void0!==e[t]?e[t]:a[r||t]},l=function(e,t){varr="function"===typeof(null===t||void0===t?void0:t.composedPath)?t.composedPath():void0;returno.containerGroups.findIndex((function(t){varn=t.container,i=t.tabbableNodes;returnn.contains(e)||(null===r||void0===r?void0:r.includes(n))||i.find((function(t){returnt===e}))}))},c=function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},r=t.hasFallback,i=void0!==r&&r,o=t.params,s=void0===o?[]:o,l=a[e];if("function"===typeofl&&(l=l.apply(void0,G(s))),!0===l&&(l=void0),!l){if(void0===l||!1===l)returnl;thrownewError("`".concat(e,"` was specified but was not a node, or did not return a node"))}varc=l;if("string"===typeofl){try{c=n.querySelector(l)}catch(u){thrownewError("`".concat(e,'` appears to be an invalid selector; error="').concat(u.message,'"'))}if(!c&&!i)thrownewError("`".concat(e,"` as selector refers to no known node"))}returnc},u=function(){vare=c("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void0===e||e&&!B(e,a.tabbableOptions))if(l(n.activeElement)>=0)e=n.activeElement;else{vart=o.tabbableGroups[0],r=t&&t.firstTabbableNode;e=r||c("fallbackFocus")}elsenull===e&&(e=c("fallbackFocus"));if(!e)thrownewError("Your focus-trap needs to have at least one focusable element");returne},d=function(){if(o.containerGroups=o.containers.map((function(e){vart=L(e,a.tabbableOptions),r=D(e,a.tabbableOptions),n=t.length>0?t[0]:void0,i=t.length>0?t[t.length-1]:void0,o=r.find((function(e){returnP(e)})),s=r.slice().reverse().find((function(e){returnP(e)})),l=!!t.find((function(e){returnm(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:l,firstTabbableNode:n,lastTabbableNoLine truncated
/*!
diffv4.0.1
@@ -53,7 +53,7 @@ IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISI
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
*/
varc,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d="=";functionh(e){vart,r,n="";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),n+=u.charAt(r>>6)+u.charAt(63&r);if(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),n+=u.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),n+=u.charAt(r>>2)+u.charAt((3&r)<<4)),d)while((3&n.length)>0)n+=d;returnn}functionp(e){vart,r,n,i="",a=0;for(t=0;t<e.length;++t){if(e.charAt(t)==d)break;n=u.indexOf(e.charAt(t)),n<0||(0==a?(i+=C(n>>2),r=3&n,a=1):1==a?(i+=C(r<<2|n>>4),r=15&n,a=2):2==a?(i+=C(r),i+=C(n>>2),r=3&n,a=3):(i+=C(r<<2|n>>4),i+=C(15&n),a=0))}return1==a&&(i+=C(r<<2)),i}functionf(e){vart,r=p(e),n=newArray;for(t=0;2*t<r.length;++t)n[t]=parseInt(r.substring(2*t,2*t+2),16);returnn}varm=0xdeadbeefcafe,g=15715070==(16777215&m);functionv(e,t,r){null!=e&&("number"==typeofe?this.fromNumber(e,t,r):null==t&&"string"!=typeofe?this.fromString(e,256):this.fromString(e,t))}functionb(){returnnewv(null)}functiony(e,t,r,n,i,a){while(--a>=0){varo=t*this[e++]+r[n]+i;i=Math.floor(o/67108864),r[n++]=67108863&o}returni}functionE(e,t,r,n,i,a){varo=32767&t,s=t>>15;while(--a>=0){varl=32767&this[e],c=this[e++]>>15,u=s*l+c*o;l=o*l+((32767&u)<<15)+r[n]+(1073741823&i),i=(l>>>30)+(u>>>15)+s*c+(i>>>30),r[n++]=1073741823&l}returni}functionw(e,t,r,n,i,a){varo=16383&t,s=t>>14;while(--a>=0){varl=16383&this[e],c=this[e++]>>14,u=s*l+c*o;l=o*l+((16383&u)<<14)+r[n]+i,i=(l>>28)+(u>>14)+s*c,r[n++]=268435455&l}returni}g&&"Microsoft Internet Explorer"==i.appName?(v.prototype.am=E,c=30):g&&"Netscape"!=i.appName?(v.prototype.am=y,c=26):(v.prototype.am=w,c=28),v.prototype.DB=c,v.prototype.DM=(1<<c)-1,v.prototype.DV=1<<c;var_=52;v.prototype.FV=Math.pow(2,_),v.prototype.F1=_-c,v.prototype.F2=2*c-_;varS,k,x="0123456789abcdefghijklmnopqrstuvwxyz",A=newArray;for(S="0".charCodeAt(0),k=0;k<=9;++k)A[S++]=k;for(S="a".charCodeAt(0),k=10;k<36;++k)A[S++]=k;for(S="A".charCodeAt(0),k=10;k<36;++k)A[S++]=k;functionC(e){returnx.charAt(e)}functionN(e,t){varr=A[e.charCodeAt(t)];returnnull==r?-1:r}functionT(e){for(vart=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s}functionR(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0}functionO(e){vart=b();returnt.fromInt(e),t}functionI(e,t){varr;if(16==t)r=4;elseif(8==t)r=3;elseif(256==t)r=8;elseif(2==t)r=1;elseif(32==t)r=5;else{if(4!=t)returnvoidthis.fromRadix(e,t);r=2}this.t=0,this.s=0;varn=e.length,i=!1,a=0;while(--n>=0){varo=8==r?255&e[n]:N(e,n);o<0?"-"==e.charAt(n)&&(i=!0):(i=!1,0==a?this[this.t++]=o:a+r>this.DB?(this[this.t-1]|=(o&(1<<this.DB-a)-1)<<a,this[this.t++]=o>>this.DB-a):this[this.t-1]|=o<<a,a+=r,a>=this.DB&&(a-=this.DB))}8==r&&0!=(128&e[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),i&&v.ZERO.subTo(this,this)}functionL(){vare=this.s&this.DM;while(this.t>0&&this[this.t-1]==e)--this.t}functionD(e){if(this.s<0)return"-"+this.negate().toString(e);vart;if(16==e)t=4;elseif(8==e)t=3;elseif(2==e)t=1;elseif(32==e)t=5;else{if(4!=e)returnthis.toRadix(e);t=2}varr,n=(1<<t)-1,i=!1,a="",o=this.t,s=this.DB-o*this.DB%t;if(o-->0){s<this.DB&&(r=this[o]>>s)>0&&(i=!0,a=C(r));while(o>=0)s<t?(r=(this[o]&(1<<s)-1)<<t-s,r|=this[--o]>>(s+=this.DB-t)):(r=this[o]>>(s-=t)&n,s<=0&&(s+=this.DB,--o)),r>0&&(i=!0),i&&(a+=C(r))}returni?a:"0"}functionP(){vare=b();returnv.ZERO.subTo(this,e),e}functionM(){returnthis.s<0?this.negate():this}functionB(e){vart=this.s-e.s;if(0!=t)returnt;varr=this.t;if(t=r-e.t,0!=t)returnthis.s<0?-t:t;while(--r>=0)if(0!=(t=this[r]-e[r]))returnt;return0}functionF(e){vart,r=1;return0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function$(){returnthis.t<=0?0:this.DB*(this.t-1)+F(this[this.t-1]^this.s&this.DM)}functionU(e,t){varr;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s}functionj(e,t){for(varr=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s}functionV(e,t){varr,n=e%this.DB,i=this.DB-n,a=(1<<i)-1,o=Math.floor(e/this.DB),s=this.s<<n&this.DM;for(r=this.t-1;r>=0;--r)t[r+o+1]=this[r]>>i|s,s=(this[r]&a)<<n;for(r=o-1;r>=0;--r)t[r]=0;t[o]=s,t.t=this.t+o+1,t.s=this.s,t.clamp()}functionK(e,t){t.s=this.s;varr=Math.floor(e/this.DB);if(r>=this.t)t.t=0;else{varn=e%this.DB,i=this.DB-n,a=(1<<n)-1;t[0]=this[r]>>n;for(varo=r+1;o<this.t;++o)t[o-r-1]|=(this[o]&a)<<i,t[o-r]=this[o]>>n;n>0&&(t[this.t-r-1]|=(this.s&a)<<i),t.t=this.t-r,t.clamp()}}functionH(e,t){varr=0,n=0,i=Math.min(e.t,this.t);while(r<i)n+=this[r]-e[r],t[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){n-=e.s;while(r<this.t)n+=this[r],t[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{n+=this.s;while(r<e.t)n-=e[r],t[r++]=n&this.DM,n>>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t[r++]=this.DV+n:n>0&&(t[r++]=n),t.t=r,t.clamp()}functionG(e,t){varr=this.abs(),n=e.abs(),i=r.t;t.t=i+n.t;while(--i>=0)t[i]=0;for(i=0;i<n.t;++i)t[i+r.t]=r.am(0,Line truncated
varc,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d="=";functionh(e){vart,r,n="";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),n+=u.charAt(r>>6)+u.charAt(63&r);if(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),n+=u.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),n+=u.charAt(r>>2)+u.charAt((3&r)<<4)),d)while((3&n.length)>0)n+=d;returnn}functionp(e){vart,r,n,i="",a=0;for(t=0;t<e.length;++t){if(e.charAt(t)==d)break;n=u.indexOf(e.charAt(t)),n<0||(0==a?(i+=C(n>>2),r=3&n,a=1):1==a?(i+=C(r<<2|n>>4),r=15&n,a=2):2==a?(i+=C(r),i+=C(n>>2),r=3&n,a=3):(i+=C(r<<2|n>>4),i+=C(15&n),a=0))}return1==a&&(i+=C(r<<2)),i}functionf(e){vart,r=p(e),n=newArray;for(t=0;2*t<r.length;++t)n[t]=parseInt(r.substring(2*t,2*t+2),16);returnn}varm=0xdeadbeefcafe,g=15715070==(16777215&m);functionv(e,t,r){null!=e&&("number"==typeofe?this.fromNumber(e,t,r):null==t&&"string"!=typeofe?this.fromString(e,256):this.fromString(e,t))}functionb(){returnnewv(null)}functiony(e,t,r,n,i,a){while(--a>=0){varo=t*this[e++]+r[n]+i;i=Math.floor(o/67108864),r[n++]=67108863&o}returni}functionw(e,t,r,n,i,a){varo=32767&t,s=t>>15;while(--a>=0){varl=32767&this[e],c=this[e++]>>15,u=s*l+c*o;l=o*l+((32767&u)<<15)+r[n]+(1073741823&i),i=(l>>>30)+(u>>>15)+s*c+(i>>>30),r[n++]=1073741823&l}returni}functionE(e,t,r,n,i,a){varo=16383&t,s=t>>14;while(--a>=0){varl=16383&this[e],c=this[e++]>>14,u=s*l+c*o;l=o*l+((16383&u)<<14)+r[n]+i,i=(l>>28)+(u>>14)+s*c,r[n++]=268435455&l}returni}g&&"Microsoft Internet Explorer"==i.appName?(v.prototype.am=w,c=30):g&&"Netscape"!=i.appName?(v.prototype.am=y,c=26):(v.prototype.am=E,c=28),v.prototype.DB=c,v.prototype.DM=(1<<c)-1,v.prototype.DV=1<<c;var_=52;v.prototype.FV=Math.pow(2,_),v.prototype.F1=_-c,v.prototype.F2=2*c-_;varS,k,x="0123456789abcdefghijklmnopqrstuvwxyz",A=newArray;for(S="0".charCodeAt(0),k=0;k<=9;++k)A[S++]=k;for(S="a".charCodeAt(0),k=10;k<36;++k)A[S++]=k;for(S="A".charCodeAt(0),k=10;k<36;++k)A[S++]=k;functionC(e){returnx.charAt(e)}functionN(e,t){varr=A[e.charCodeAt(t)];returnnull==r?-1:r}functionT(e){for(vart=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s}functionR(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0}functionO(e){vart=b();returnt.fromInt(e),t}functionI(e,t){varr;if(16==t)r=4;elseif(8==t)r=3;elseif(256==t)r=8;elseif(2==t)r=1;elseif(32==t)r=5;else{if(4!=t)returnvoidthis.fromRadix(e,t);r=2}this.t=0,this.s=0;varn=e.length,i=!1,a=0;while(--n>=0){varo=8==r?255&e[n]:N(e,n);o<0?"-"==e.charAt(n)&&(i=!0):(i=!1,0==a?this[this.t++]=o:a+r>this.DB?(this[this.t-1]|=(o&(1<<this.DB-a)-1)<<a,this[this.t++]=o>>this.DB-a):this[this.t-1]|=o<<a,a+=r,a>=this.DB&&(a-=this.DB))}8==r&&0!=(128&e[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),i&&v.ZERO.subTo(this,this)}functionL(){vare=this.s&this.DM;while(this.t>0&&this[this.t-1]==e)--this.t}functionD(e){if(this.s<0)return"-"+this.negate().toString(e);vart;if(16==e)t=4;elseif(8==e)t=3;elseif(2==e)t=1;elseif(32==e)t=5;else{if(4!=e)returnthis.toRadix(e);t=2}varr,n=(1<<t)-1,i=!1,a="",o=this.t,s=this.DB-o*this.DB%t;if(o-->0){s<this.DB&&(r=this[o]>>s)>0&&(i=!0,a=C(r));while(o>=0)s<t?(r=(this[o]&(1<<s)-1)<<t-s,r|=this[--o]>>(s+=this.DB-t)):(r=this[o]>>(s-=t)&n,s<=0&&(s+=this.DB,--o)),r>0&&(i=!0),i&&(a+=C(r))}returni?a:"0"}functionP(){vare=b();returnv.ZERO.subTo(this,e),e}functionM(){returnthis.s<0?this.negate():this}functionB(e){vart=this.s-e.s;if(0!=t)returnt;varr=this.t;if(t=r-e.t,0!=t)returnthis.s<0?-t:t;while(--r>=0)if(0!=(t=this[r]-e[r]))returnt;return0}functionF(e){vart,r=1;return0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function$(){returnthis.t<=0?0:this.DB*(this.t-1)+F(this[this.t-1]^this.s&this.DM)}functionU(e,t){varr;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s}functionj(e,t){for(varr=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s}functionV(e,t){varr,n=e%this.DB,i=this.DB-n,a=(1<<i)-1,o=Math.floor(e/this.DB),s=this.s<<n&this.DM;for(r=this.t-1;r>=0;--r)t[r+o+1]=this[r]>>i|s,s=(this[r]&a)<<n;for(r=o-1;r>=0;--r)t[r]=0;t[o]=s,t.t=this.t+o+1,t.s=this.s,t.clamp()}functionK(e,t){t.s=this.s;varr=Math.floor(e/this.DB);if(r>=this.t)t.t=0;else{varn=e%this.DB,i=this.DB-n,a=(1<<n)-1;t[0]=this[r]>>n;for(varo=r+1;o<this.t;++o)t[o-r-1]|=(this[o]&a)<<i,t[o-r]=this[o]>>n;n>0&&(t[this.t-r-1]|=(this.s&a)<<i),t.t=this.t-r,t.clamp()}}functionH(e,t){varr=0,n=0,i=Math.min(e.t,this.t);while(r<i)n+=this[r]-e[r],t[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){n-=e.s;while(r<this.t)n+=this[r],t[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{n+=this.s;while(r<e.t)n-=e[r],t[r++]=n&this.DM,n>>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t[r++]=this.DV+n:n>0&&(t[r++]=n),t.t=r,t.clamp()}functionG(e,t){varr=this.abs(),n=e.abs(),i=r.t;t.t=i+n.t;while(--i>=0)t[i]=0;for(i=0;i<n.t;++i)t[i+r.t]=r.am(0,Line truncated
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
@@ -89,7 +89,7 @@ function qt(e,t){this.x=t,this.q=e}function Xt(e){return e==this||this.q.equals(
qt.prototype.getByteLength=function(){returnMath.floor((this.toBigInteger().bitLength()+7)/8)},rr.prototype.getEncoded=function(e){vart=function(e,t){varr=e.toByteArrayUnsigned();if(t<r.length)r=r.slice(r.length-t);elsewhile(t>r.length)r.unshift(0);returnr},r=this.getX().toBigInteger(),n=this.getY().toBigInteger(),i=t(r,32);returne?n.isEven()?i.unshift(2):i.unshift(3):(i.unshift(4),i=i.concat(t(n,32))),i},rr.decodeFrom=function(e,t){t[0];varr=t.length-1,n=t.slice(1,1+r/2),i=t.slice(1+r/2,1+r);n.unshift(0),i.unshift(0);vara=newv(n),o=newv(i);returnnewrr(e,e.fromBigInteger(a),e.fromBigInteger(o))},rr.decodeFromHex=function(e,t){t.substr(0,2);varr=t.length-2,n=t.substr(2,r/2),i=t.substr(2+r/2,r/2),a=newv(n,16),o=newv(i,16);returnnewrr(e,e.fromBigInteger(a),e.fromBigInteger(o))},rr.prototype.add2D=function(e){if(this.isInfinity())returne;if(e.isInfinity())returnthis;if(this.x.equals(e.x))returnthis.y.equals(e.y)?this.twice():this.curve.getInfinity();vart=e.x.subtract(this.x),r=e.y.subtract(this.y),n=r.divide(t),i=n.square().subtract(this.x).subtract(e.x),a=n.multiply(this.x.subtract(i)).subtract(this.y);returnnewrr(this.curve,i,a)},rr.prototype.twice2D=function(){if(this.isInfinity())returnthis;if(0==this.y.toBigInteger().signum())returnthis.curve.getInfinity();vare=this.curve.fromBigInteger(v.valueOf(2)),t=this.curve.fromBigInteger(v.valueOf(3)),r=this.x.square().multiply(t).add(this.curve.a).divide(this.y.multiply(e)),n=r.square().subtract(this.x.multiply(e)),i=r.multiply(this.x.subtract(n)).subtract(this.y);returnnewrr(this.curve,n,i)},rr.prototype.multiply2D=function(e){if(this.isInfinity())returnthis;if(0==e.signum())returnthis.curve.getInfinity();vart,r=e,n=r.multiply(newv("3")),i=this.negate(),a=this;for(t=n.bitLength()-2;t>0;--t){a=a.twice();varo=n.testBit(t),s=r.testBit(t);o!=s&&(a=a.add2D(o?this:i))}returna},rr.prototype.isOnCurve=function(){vare=this.getX().toBigInteger(),t=this.getY().toBigInteger(),r=this.curve.getA().toBigInteger(),n=this.curve.getB().toBigInteger(),i=this.curve.getQ(),a=t.multiply(t).mod(i),o=e.multiply(e).multiply(e).add(r.multiply(e)).add(n).mod(i);returna.equals(o)},rr.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},rr.prototype.validate=function(){vare=this.curve.getQ();if(this.isInfinity())thrownewError("Point is at infinity.");vart=this.getX().toBigInteger(),r=this.getY().toBigInteger();if(t.compareTo(v.ONE)<0||t.compareTo(e.subtract(v.ONE))>0)thrownewError("x coordinate out of bounds");if(r.compareTo(v.ONE)<0||r.compareTo(e.subtract(v.ONE))>0)thrownewError("y coordinate out of bounds");if(!this.isOnCurve())thrownewError("Point is not on the curve.");if(this.multiply(e).isInfinity())thrownewError("Point is not a scalar multiple of G.");return!0};
varEr=function(){vare="(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)",t='(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))',r='(?:"'+t+'*")',n=newRegExp("(?:false|true|null|[\\{\\}\\[\\]]|"+e+"|"+r+")","g"),i=newRegExp("\\\\(?:([^u])|u(.{4}))","g"),a={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};functiono(e,t,r){returnt?a[t]:String.fromCharCode(parseInt(r,16))}vars=newString(""),l="\\",c=Object.hasOwnProperty;returnfunction(e,t){varr,a,u=e.match(n),d=u[0],h=!1;"{"===d?r={}:"["===d?r=[]:(r=[],h=!0);for(varp=[r],f=1-h,m=u.length;f<m;++f){varg;switch(d=u[f],d.charCodeAt(0)){default:g=p[0],g[a||g.length]=+d,a=void0;break;case34:if(d=d.substring(1,d.length-1),-1!==d.indexOf(l)&&(d=d.replace(i,o)),g=p[0],!a){if(!(ginstanceofArray)){a=d||s;break}a=g.length}g[a]=d,a=void0;break;case91:g=p[0],p.unshift(g[a||g.length]=[]),a=void0;break;case93:p.shift();break;case102:g=p[0],g[a||g.length]=!1,a=void0;break;case110:g=p[0],g[a||g.length]=null,a=void0;break;case116:g=p[0],g[a||g.length]=!0,a=void0;break;case123:g=p[0],p.unshift(g[a||g.length]={}),a=void0;break;case125:p.shift();break}}if(h){if(1!==p.length)thrownewError;r=r[0]}elseif(p.length)thrownewError;if(t){varv=function(e,r){varn=e[r];if(n&&"object"===typeofn){vari=null;for(varainn)if(c.call(n,a)&&n!==e){varo=v(n,a);void0!==o?n[a]=o:(i||(i=[]),i.push(a))}if(i)for(vars=i.length;--s>=0;)deleten[i[s]]}returnt.call(e,r,n)};r=v({"":r},"")}returnr}}();"undefined"!=typeofwr&&wr||(wr={}),"undefined"!=typeofwr.asn1&&wr.asn1||(wr.asn1={}),wr.asn1.ASN1Util=newfunction(){this.integerToByteHex=function(e){vart=e.toString(16);returnt.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){returnCn(e)},this.getPEMStringFromHex=function(e,t){returnWr(e,t)},this.newObject=function(e){vart=wr,r=t.asn1,n=r.ASN1Object,i=r.DERBoolean,a=r.DERInteger,o=r.DERBitString,s=r.DEROctetString,l=r.DERNull,c=r.DERObjectIdentifier,u=r.DEREnumerated,d=r.DERUTF8String,h=r.DERNumericString,p=r.DERPrintableString,f=r.DERTeletexString,m=r.DERIA5String,g=r.DERUTCTime,v=r.DERGeneralizedTime,b=r.DERVisibleString,y=r.DERBMPString,E=r.DERSequence,w=r.DERSet,_=r.DERTaggedObject,S=r.ASN1Util.newObject;if(einstanceofr.ASN1Object)returne;vark=Object.keys(e);if(1!=k.length)thrownewError("key of param shall be only one.");varx=k[0];if(-1==":asn1:bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:visstr:bmpstr:seq:set:tag:".indexOf(":"+x+":"))thrownewError("undefined key: "+x);if("bool"==x)returnnewi(e[x]);if("int"==x)returnnewa(e[x]);if("bitstr"==x)returnnewo(e[x]);if("octstr"==x)returnnews(e[x]);if("null"==x)returnnewl(e[x]);if("oid"==x)returnnewc(e[x]);if("enum"==x)returnnewu(e[x]);if("utf8str"==x)returnnewd(e[x]);if("numstr"==x)returnnewh(e[x]);if("prnstr"==x)returnnewp(e[x]);if("telstr"==x)returnnewf(e[x]);if("ia5str"==x)returnnewm(e[x]);if("utctime"==x)returnnewg(e[x]);if("gentime"==x)returnnewv(e[x]);if("visstr"==x)returnnewb(e[x]);if("bmpstr"==x)returnnewy(e[x]);if("asn1"==x)returnnewn(e[x]);if("seq"==x){for(varA=e[x],C=[],N=0;N<A.length;N++){varT=S(A[N]);C.push(T)}returnnewE({array:C})}if("set"==x){for(A=e[x],C=[],N=0;N<A.length;N++){T=S(A[N]);C.push(T)}returnneww({array:C})}if("tag"==x){varR=e[x];if("[object Array]"===Object.prototype.toString.call(R)&&3==R.length){varO=S(R[2]);returnnew_({tag:R[0],explicit:R[1],obj:O})}returnnew_(R)}},this.jsonToASN1HEX=function(e){vart=this.newObject(e);returnt.tohex()}},wr.asn1.ASN1Util.oidHexToInt=function(e){for(vart="",r=parseInt(e.substr(0,2),16),n=Math.floor(r/40),i=r%40,a=(t=n+"."+i,""),o=2;o<e.length;o+=2){vars=parseInt(e.substr(o,2),16),l=("00000000"+s.toString(2)).slice(-8);if(a+=l.substr(1,7),"0"==l.substr(0,1)){varc=newv(a,2);t=t+"."+c.toString(10),a=""}}returnt},wr.asn1.ASN1Util.oidIntToHex=function(e){vart=function(e){vart=e.toString(16);return1==t.length&&(t="0"+t),t},r=function(e){varr="",n=newv(e,10),i=n.toString(2),a=7-i.length%7;7==a&&(a=0);for(varo="",s=0;s<a;s++)o+="0";i=o+i;for(s=0;s<i.length-1;s+=7){varl=i.substr(s,7);s!=i.length-7&&(l="1"+l),r+=t(parseInt(l,2))}returnr};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;varn="",i=e.split("."),a=40*parseInt(i[0])+parseInt(i[1]);n+=t(a),i.splice(0,2);for(varo=0;o<i.length;o++)n+=r(i[o]);returnn},wr.asn1.ASN1Object=function(e){vart="";this.params=null,this.getLengthHexFromValue=function(){if("undefined"==typeofthis.hV||null==this.hV)thrownewError("this.hV is null or undefined");if(this.hV.length%2==1)thrownewError("value hex must be even length: n="+t.length+",v="+this.hV);vare=this.hV.length/2,r=e.toString(16);if(r.length%2==1&&(r="0"+r),e<128)returnr;varn=r.length/2;if(n>15)thrownewError("ASN.1 length too long to represent by 8x: n = "+e.toString(16));vari=128+n;returni.toString(16)+r},this.tohex=function(){return(null==this.hTLV||this.isModifLine truncated
varwr=function(){vare="(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)",t='(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))',r='(?:"'+t+'*")',n=newRegExp("(?:false|true|null|[\\{\\}\\[\\]]|"+e+"|"+r+")","g"),i=newRegExp("\\\\(?:([^u])|u(.{4}))","g"),a={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};functiono(e,t,r){returnt?a[t]:String.fromCharCode(parseInt(r,16))}vars=newString(""),l="\\",c=Object.hasOwnProperty;returnfunction(e,t){varr,a,u=e.match(n),d=u[0],h=!1;"{"===d?r={}:"["===d?r=[]:(r=[],h=!0);for(varp=[r],f=1-h,m=u.length;f<m;++f){varg;switch(d=u[f],d.charCodeAt(0)){default:g=p[0],g[a||g.length]=+d,a=void0;break;case34:if(d=d.substring(1,d.length-1),-1!==d.indexOf(l)&&(d=d.replace(i,o)),g=p[0],!a){if(!(ginstanceofArray)){a=d||s;break}a=g.length}g[a]=d,a=void0;break;case91:g=p[0],p.unshift(g[a||g.length]=[]),a=void0;break;case93:p.shift();break;case102:g=p[0],g[a||g.length]=!1,a=void0;break;case110:g=p[0],g[a||g.length]=null,a=void0;break;case116:g=p[0],g[a||g.length]=!0,a=void0;break;case123:g=p[0],p.unshift(g[a||g.length]={}),a=void0;break;case125:p.shift();break}}if(h){if(1!==p.length)thrownewError;r=r[0]}elseif(p.length)thrownewError;if(t){varv=function(e,r){varn=e[r];if(n&&"object"===typeofn){vari=null;for(varainn)if(c.call(n,a)&&n!==e){varo=v(n,a);void0!==o?n[a]=o:(i||(i=[]),i.push(a))}if(i)for(vars=i.length;--s>=0;)deleten[i[s]]}returnt.call(e,r,n)};r=v({"":r},"")}returnr}}();"undefined"!=typeofEr&&Er||(Er={}),"undefined"!=typeofEr.asn1&&Er.asn1||(Er.asn1={}),Er.asn1.ASN1Util=newfunction(){this.integerToByteHex=function(e){vart=e.toString(16);returnt.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){returnCn(e)},this.getPEMStringFromHex=function(e,t){returnWr(e,t)},this.newObject=function(e){vart=Er,r=t.asn1,n=r.ASN1Object,i=r.DERBoolean,a=r.DERInteger,o=r.DERBitString,s=r.DEROctetString,l=r.DERNull,c=r.DERObjectIdentifier,u=r.DEREnumerated,d=r.DERUTF8String,h=r.DERNumericString,p=r.DERPrintableString,f=r.DERTeletexString,m=r.DERIA5String,g=r.DERUTCTime,v=r.DERGeneralizedTime,b=r.DERVisibleString,y=r.DERBMPString,w=r.DERSequence,E=r.DERSet,_=r.DERTaggedObject,S=r.ASN1Util.newObject;if(einstanceofr.ASN1Object)returne;vark=Object.keys(e);if(1!=k.length)thrownewError("key of param shall be only one.");varx=k[0];if(-1==":asn1:bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:visstr:bmpstr:seq:set:tag:".indexOf(":"+x+":"))thrownewError("undefined key: "+x);if("bool"==x)returnnewi(e[x]);if("int"==x)returnnewa(e[x]);if("bitstr"==x)returnnewo(e[x]);if("octstr"==x)returnnews(e[x]);if("null"==x)returnnewl(e[x]);if("oid"==x)returnnewc(e[x]);if("enum"==x)returnnewu(e[x]);if("utf8str"==x)returnnewd(e[x]);if("numstr"==x)returnnewh(e[x]);if("prnstr"==x)returnnewp(e[x]);if("telstr"==x)returnnewf(e[x]);if("ia5str"==x)returnnewm(e[x]);if("utctime"==x)returnnewg(e[x]);if("gentime"==x)returnnewv(e[x]);if("visstr"==x)returnnewb(e[x]);if("bmpstr"==x)returnnewy(e[x]);if("asn1"==x)returnnewn(e[x]);if("seq"==x){for(varA=e[x],C=[],N=0;N<A.length;N++){varT=S(A[N]);C.push(T)}returnneww({array:C})}if("set"==x){for(A=e[x],C=[],N=0;N<A.length;N++){T=S(A[N]);C.push(T)}returnnewE({array:C})}if("tag"==x){varR=e[x];if("[object Array]"===Object.prototype.toString.call(R)&&3==R.length){varO=S(R[2]);returnnew_({tag:R[0],explicit:R[1],obj:O})}returnnew_(R)}},this.jsonToASN1HEX=function(e){vart=this.newObject(e);returnt.tohex()}},Er.asn1.ASN1Util.oidHexToInt=function(e){for(vart="",r=parseInt(e.substr(0,2),16),n=Math.floor(r/40),i=r%40,a=(t=n+"."+i,""),o=2;o<e.length;o+=2){vars=parseInt(e.substr(o,2),16),l=("00000000"+s.toString(2)).slice(-8);if(a+=l.substr(1,7),"0"==l.substr(0,1)){varc=newv(a,2);t=t+"."+c.toString(10),a=""}}returnt},Er.asn1.ASN1Util.oidIntToHex=function(e){vart=function(e){vart=e.toString(16);return1==t.length&&(t="0"+t),t},r=function(e){varr="",n=newv(e,10),i=n.toString(2),a=7-i.length%7;7==a&&(a=0);for(varo="",s=0;s<a;s++)o+="0";i=o+i;for(s=0;s<i.length-1;s+=7){varl=i.substr(s,7);s!=i.length-7&&(l="1"+l),r+=t(parseInt(l,2))}returnr};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;varn="",i=e.split("."),a=40*parseInt(i[0])+parseInt(i[1]);n+=t(a),i.splice(0,2);for(varo=0;o<i.length;o++)n+=r(i[o]);returnn},Er.asn1.ASN1Object=function(e){vart="";this.params=null,this.getLengthHexFromValue=function(){if("undefined"==typeofthis.hV||null==this.hV)thrownewError("this.hV is null or undefined");if(this.hV.length%2==1)thrownewError("value hex must be even length: n="+t.length+",v="+this.hV);vare=this.hV.length/2,r=e.toString(16);if(r.length%2==1&&(r="0"+r),e<128)returnr;varn=r.length/2;if(n>15)thrownewError("ASN.1 length too long to represent by 8x: n = "+e.toString(16));vari=128+n;returni.toString(16)+r},this.tohex=function(){return(null==this.hTLV||this.isModifLine truncated
/**
*@license
*Lodash<https://lodash.com/>
@@ -97,21 +97,21 @@ var Er=function(){var e="(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9
consti=r(7991),a=r(39318),o="function"===typeofSymbol&&"function"===typeofSymbol["for"]?Symbol["for"]("nodejs.util.inspect.custom"):null;t.hp=u,t.IS=50;consts=2147483647;functionl(){try{conste=newUint8Array(1),t={foo:function(){return42}};returnObject.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}functionc(e){if(e>s)thrownewRangeError('The value "'+e+'" is invalid for option "size"');constt=newUint8Array(e);returnObject.setPrototypeOf(t,u.prototype),t}functionu(e,t,r){if("number"===typeofe){if("string"===typeoft)thrownewTypeError('The "string" argument must be of type string. Received type number');returnf(e)}returnd(e,t,r)}functiond(e,t,r){if("string"===typeofe)returnm(e,t);if(ArrayBuffer.isView(e))returnv(e);if(null==e)thrownewTypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeofe);if(se(e,ArrayBuffer)||e&&se(e.buffer,ArrayBuffer))returnb(e,t,r);if("undefined"!==typeofSharedArrayBuffer&&(se(e,SharedArrayBuffer)||e&&se(e.buffer,SharedArrayBuffer)))returnb(e,t,r);if("number"===typeofe)thrownewTypeError('The "value" argument must not be of type number. Received type number');constn=e.valueOf&&e.valueOf();if(null!=n&&n!==e)returnu.from(n,t,r);consti=y(e);if(i)returni;if("undefined"!==typeofSymbol&&null!=Symbol.toPrimitive&&"function"===typeofe[Symbol.toPrimitive])returnu.from(e[Symbol.toPrimitive]("string"),t,r);thrownewTypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeofe)}functionh(e){if("number"!==typeofe)thrownewTypeError('"size" argument must be of type number');if(e<0)thrownewRangeError('The value "'+e+'" is invalid for option "size"')}functionp(e,t,r){returnh(e),e<=0?c(e):void0!==t?"string"===typeofr?c(e).fill(t,r):c(e).fill(t):c(e)}functionf(e){returnh(e),c(e<0?0:0|E(e))}functionm(e,t){if("string"===typeoft&&""!==t||(t="utf8"),!u.isEncoding(t))thrownewTypeError("Unknown encoding: "+t);constr=0|_(e,t);letn=c(r);consti=n.write(e,t);returni!==r&&(n=n.slice(0,i)),n}functiong(e){constt=e.length<0?0:0|E(e.length),r=c(t);for(letn=0;n<t;n+=1)r[n]=255&e[n];returnr}functionv(e){if(se(e,Uint8Array)){constt=newUint8Array(e);returnb(t.buffer,t.byteOffset,t.byteLength)}returng(e)}functionb(e,t,r){if(t<0||e.byteLength<t)thrownewRangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))thrownewRangeError('"length" is outside of buffer bounds');letn;returnn=void0===t&&void0===r?newUint8Array(e):void0===r?newUint8Array(e,t):newUint8Array(e,t,r),Object.setPrototypeOf(n,u.prototype),n}functiony(e){if(u.isBuffer(e)){constt=0|E(e.length),r=c(t);return0===r.length||e.copy(r,0,0,t),r}returnvoid0!==e.length?"number"!==typeofe.length||le(e.length)?c(0):g(e):"Buffer"===e.type&&Array.isArray(e.data)?g(e.data):void0}functionE(e){if(e>=s)thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return0|e}functionw(e){return+e!=e&&0,u.alloc(+e)}function_(e,t){if(u.isBuffer(e))returne.length;if(ArrayBuffer.isView(e)||se(e,ArrayBuffer))returne.byteLength;if("string"!==typeofe)thrownewTypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeofe);constr=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return0;leti=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":returnr;case"utf8":case"utf-8":returnre(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return2*r;case"hex":returnr>>>1;case"base64":returnae(e).length;default:if(i)returnn?-1:re(e).length;t=(""+t).toLowerCase(),i=!0}}functionS(e,t,r){letn=!1;if((void0===t||t<0)&&(t=0),t>this.length)return"";if((void0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":returnF(this,t,r);case"utf8":case"utf-8":returnL(this,t,r);case"ascii":returnM(this,t,r);case"latin1":case"binary":returnB(this,t,r);case"base64":returnI(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return$(this,t,r);default:if(n)thrownewTypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}functionk(e,t,r){constn=e[t];e[t]=e[r],e[r]=n}functionx(e,t,r,n,i){if(0===e.length)return-1;if("string"===typeofr?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,le(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}elseif(r<0){if(!i)return-1;r=0}if("string"===typeoft&&(t=u.from(t,n)),u.isBuffer(t))return0===t.length?-1:A(e,t,r,n,i);if("number"===typeoft)returnt&=255,"function"===typeofUint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):A(e,[t],r,n,i);thrownewTypeError("val must be string, number or Buffer")}functionA(e,t,r,n,i){leta,o=1,s=e.lLine truncated
consti=r(7991),a=r(39318),o="function"===typeofSymbol&&"function"===typeofSymbol["for"]?Symbol["for"]("nodejs.util.inspect.custom"):null;t.hp=u,t.IS=50;consts=2147483647;functionl(){try{conste=newUint8Array(1),t={foo:function(){return42}};returnObject.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}functionc(e){if(e>s)thrownewRangeError('The value "'+e+'" is invalid for option "size"');constt=newUint8Array(e);returnObject.setPrototypeOf(t,u.prototype),t}functionu(e,t,r){if("number"===typeofe){if("string"===typeoft)thrownewTypeError('The "string" argument must be of type string. Received type number');returnf(e)}returnd(e,t,r)}functiond(e,t,r){if("string"===typeofe)returnm(e,t);if(ArrayBuffer.isView(e))returnv(e);if(null==e)thrownewTypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeofe);if(se(e,ArrayBuffer)||e&&se(e.buffer,ArrayBuffer))returnb(e,t,r);if("undefined"!==typeofSharedArrayBuffer&&(se(e,SharedArrayBuffer)||e&&se(e.buffer,SharedArrayBuffer)))returnb(e,t,r);if("number"===typeofe)thrownewTypeError('The "value" argument must not be of type number. Received type number');constn=e.valueOf&&e.valueOf();if(null!=n&&n!==e)returnu.from(n,t,r);consti=y(e);if(i)returni;if("undefined"!==typeofSymbol&&null!=Symbol.toPrimitive&&"function"===typeofe[Symbol.toPrimitive])returnu.from(e[Symbol.toPrimitive]("string"),t,r);thrownewTypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeofe)}functionh(e){if("number"!==typeofe)thrownewTypeError('"size" argument must be of type number');if(e<0)thrownewRangeError('The value "'+e+'" is invalid for option "size"')}functionp(e,t,r){returnh(e),e<=0?c(e):void0!==t?"string"===typeofr?c(e).fill(t,r):c(e).fill(t):c(e)}functionf(e){returnh(e),c(e<0?0:0|w(e))}functionm(e,t){if("string"===typeoft&&""!==t||(t="utf8"),!u.isEncoding(t))thrownewTypeError("Unknown encoding: "+t);constr=0|_(e,t);letn=c(r);consti=n.write(e,t);returni!==r&&(n=n.slice(0,i)),n}functiong(e){constt=e.length<0?0:0|w(e.length),r=c(t);for(letn=0;n<t;n+=1)r[n]=255&e[n];returnr}functionv(e){if(se(e,Uint8Array)){constt=newUint8Array(e);returnb(t.buffer,t.byteOffset,t.byteLength)}returng(e)}functionb(e,t,r){if(t<0||e.byteLength<t)thrownewRangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))thrownewRangeError('"length" is outside of buffer bounds');letn;returnn=void0===t&&void0===r?newUint8Array(e):void0===r?newUint8Array(e,t):newUint8Array(e,t,r),Object.setPrototypeOf(n,u.prototype),n}functiony(e){if(u.isBuffer(e)){constt=0|w(e.length),r=c(t);return0===r.length||e.copy(r,0,0,t),r}returnvoid0!==e.length?"number"!==typeofe.length||le(e.length)?c(0):g(e):"Buffer"===e.type&&Array.isArray(e.data)?g(e.data):void0}functionw(e){if(e>=s)thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return0|e}functionE(e){return+e!=e&&0,u.alloc(+e)}function_(e,t){if(u.isBuffer(e))returne.length;if(ArrayBuffer.isView(e)||se(e,ArrayBuffer))returne.byteLength;if("string"!==typeofe)thrownewTypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeofe);constr=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return0;leti=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":returnr;case"utf8":case"utf-8":returnre(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return2*r;case"hex":returnr>>>1;case"base64":returnae(e).length;default:if(i)returnn?-1:re(e).length;t=(""+t).toLowerCase(),i=!0}}functionS(e,t,r){letn=!1;if((void0===t||t<0)&&(t=0),t>this.length)return"";if((void0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":returnF(this,t,r);case"utf8":case"utf-8":returnL(this,t,r);case"ascii":returnM(this,t,r);case"latin1":case"binary":returnB(this,t,r);case"base64":returnI(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return$(this,t,r);default:if(n)thrownewTypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}functionk(e,t,r){constn=e[t];e[t]=e[r],e[r]=n}functionx(e,t,r,n,i){if(0===e.length)return-1;if("string"===typeofr?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,le(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}elseif(r<0){if(!i)return-1;r=0}if("string"===typeoft&&(t=u.from(t,n)),u.isBuffer(t))return0===t.length?-1:A(e,t,r,n,i);if("number"===typeoft)returnt&=255,"function"===typeofUint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):A(e,[t],r,n,i);thrownewTypeError("val must be string, number or Buffer")}functionA(e,t,r,n,i){leta,o=1,s=e.lLine truncated
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
varn=r(1048),i=n.Buffer;functiona(e,t){for(varrine)t[r]=e[r]}functiono(e,t,r){returni(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(a(n,t),t.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,r){if("number"===typeofe)thrownewTypeError("Argument must not be a number");returni(e,t,r)},o.alloc=function(e,t,r){if("number"!==typeofe)thrownewTypeError("Argument must be a number");varn=i(e);returnvoid0!==t?"string"===typeofr?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!==typeofe)thrownewTypeError("Argument must be a number");returni(e)},o.allocUnsafeSlow=function(e){if("number"!==typeofe)thrownewTypeError("Argument must be a number");returnn.SlowBuffer(e)}},46132:function(e,t,r){"use strict";varn=r(14607),i=r(52672),a=n("RegExp.prototype.exec"),o=r(3468);e.exports=function(e){if(!i(e))thrownewo("`regex` must be a RegExp");returnfunction(t){returnnull!==a(e,t)}}},51565:function(e,t,r){"use strict";constn=Symbol("SemVer ANY");classi{staticgetANY(){returnn}constructor(e,t){if(t=a(t),einstanceofi){if(e.loose===!!t.loose)returne;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){constt=this.options.loose?o[s.COMPARATORLOOSE]:o[s.COMPARATOR],r=e.match(t);if(!r)thrownewTypeError(`Invalid comparator: ${e}`);this.operator=void0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=newu(r[2],this.options.loose):this.semver=n}toString(){returnthis.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"===typeofe)try{e=newu(e,this.options)}catch(t){return!1}returnl(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(einstanceofi))thrownewTypeError("a Comparator is required");return""===this.operator?""===this.value||newd(e.value,t).test(this.value):""===e.operator?""===e.value||newd(this.value,t).test(e.semver):(t=a(t),(!t.includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))))))))}}e.exports=i;consta=r(13990),{safeRe:o,t:s}=r(72841),l=r(54004),c=r(41361),u=r(24517),d=r(37476)},37476:function(e,t,r){"use strict";constn=/\s+/g;classi{constructor(e,t){if(t=s(t),einstanceofi)returne.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:newi(e.raw,t);if(einstanceofl)returnthis.raw=e.value,this.set=[[e]],this.formatted=void0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(n," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)thrownewTypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){conste=this.set[0];if(this.set=this.set.filter((e=>!b(e[0]))),0===this.set.length)this.set=[e];elseif(this.set.length>1)for(consttofthis.set)if(1===t.length&&y(t[0])){this.set=[t];break}}this.formatted=void0}getrange(){if(void0===this.formatted){this.formatted="";for(lete=0;e<this.set.length;e++){e>0&&(this.formatted+="||");constt=this.set[e];for(lete=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}returnthis.formatted}format(){returnthis.range}toString(){returnthis.range}parseRange(e){constt=(this.options.includePrerelease&&g)|(this.options.loose&&v),r=t+":"+e,n=o.get(r);if(n)returnn;consti=this.options.loose,a=i?d[h.HYPHENRANGELOOSE]:d[h.HYPHENRANGE];e=e.replace(a,O(this.options.includePrerelease)),c("hyphen replace",e),e=e.replace(d[h.COMPARATORTRIM],p),c("comparator trim",e),e=e.replace(d[h.TILDETRIM],f),c("tilde trim",e),e=e.replace(d[h.CARETTRIM],m),c("caret trim",e);lets=e.split(" ").map((e=>w(e,this.options))).join(" ").split(/\s+/).map((e=>R(e,this.options)));i&&(s=s.filter((e=>(c("loose invalid filter",e,this.options),!!e.match(d[h.COMPARATORLOOSE]))))),c("range list",s);constu=newMap,y=s.map((e=>newl(e,this.options)));for(constoofy){if(b(o))return[o];u.set(o.value,o)}u.size>1&&u.has("")&&u.delete("");constE=[...u.values()];returno.set(r,E),E}intersects(e,t){if(!(einstanceofi))thrownewTypeError("a Range is required");returnthis.set.some((r=>E(r,t)&&e.set.some((e=>E(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"===typeofe)try{e=newu(e,this.options)}catch(t){return!1}for(letr=0;r<this.set.lengLine truncated
varn=r(1048),i=n.Buffer;functiona(e,t){for(varrine)t[r]=e[r]}functiono(e,t,r){returni(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(a(n,t),t.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,r){if("number"===typeofe)thrownewTypeError("Argument must not be a number");returni(e,t,r)},o.alloc=function(e,t,r){if("number"!==typeofe)thrownewTypeError("Argument must be a number");varn=i(e);returnvoid0!==t?"string"===typeofr?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!==typeofe)thrownewTypeError("Argument must be a number");returni(e)},o.allocUnsafeSlow=function(e){if("number"!==typeofe)thrownewTypeError("Argument must be a number");returnn.SlowBuffer(e)}},46132:function(e,t,r){"use strict";varn=r(14607),i=r(52672),a=n("RegExp.prototype.exec"),o=r(3468);e.exports=function(e){if(!i(e))thrownewo("`regex` must be a RegExp");returnfunction(t){returnnull!==a(e,t)}}},51565:function(e,t,r){"use strict";constn=Symbol("SemVer ANY");classi{staticgetANY(){returnn}constructor(e,t){if(t=a(t),einstanceofi){if(e.loose===!!t.loose)returne;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){constt=this.options.loose?o[s.COMPARATORLOOSE]:o[s.COMPARATOR],r=e.match(t);if(!r)thrownewTypeError(`Invalid comparator: ${e}`);this.operator=void0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=newu(r[2],this.options.loose):this.semver=n}toString(){returnthis.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"===typeofe)try{e=newu(e,this.options)}catch(t){return!1}returnl(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(einstanceofi))thrownewTypeError("a Comparator is required");return""===this.operator?""===this.value||newd(e.value,t).test(this.value):""===e.operator?""===e.value||newd(this.value,t).test(e.semver):(t=a(t),(!t.includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))))))))}}e.exports=i;consta=r(13990),{safeRe:o,t:s}=r(72841),l=r(54004),c=r(41361),u=r(24517),d=r(37476)},37476:function(e,t,r){"use strict";constn=/\s+/g;classi{constructor(e,t){if(t=s(t),einstanceofi)returne.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:newi(e.raw,t);if(einstanceofl)returnthis.raw=e.value,this.set=[[e]],this.formatted=void0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(n," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)thrownewTypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){conste=this.set[0];if(this.set=this.set.filter((e=>!b(e[0]))),0===this.set.length)this.set=[e];elseif(this.set.length>1)for(consttofthis.set)if(1===t.length&&y(t[0])){this.set=[t];break}}this.formatted=void0}getrange(){if(void0===this.formatted){this.formatted="";for(lete=0;e<this.set.length;e++){e>0&&(this.formatted+="||");constt=this.set[e];for(lete=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}returnthis.formatted}format(){returnthis.range}toString(){returnthis.range}parseRange(e){constt=(this.options.includePrerelease&&g)|(this.options.loose&&v),r=t+":"+e,n=o.get(r);if(n)returnn;consti=this.options.loose,a=i?d[h.HYPHENRANGELOOSE]:d[h.HYPHENRANGE];e=e.replace(a,O(this.options.includePrerelease)),c("hyphen replace",e),e=e.replace(d[h.COMPARATORTRIM],p),c("comparator trim",e),e=e.replace(d[h.TILDETRIM],f),c("tilde trim",e),e=e.replace(d[h.CARETTRIM],m),c("caret trim",e);lets=e.split(" ").map((e=>E(e,this.options))).join(" ").split(/\s+/).map((e=>R(e,this.options)));i&&(s=s.filter((e=>(c("loose invalid filter",e,this.options),!!e.match(d[h.COMPARATORLOOSE]))))),c("range list",s);constu=newMap,y=s.map((e=>newl(e,this.options)));for(constoofy){if(b(o))return[o];u.set(o.value,o)}u.size>1&&u.has("")&&u.delete("");constw=[...u.values()];returno.set(r,w),w}intersects(e,t){if(!(einstanceofi))thrownewTypeError("a Range is required");returnthis.set.some((r=>w(r,t)&&e.set.some((e=>w(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"===typeofe)try{e=newu(e,this.options)}catch(t){return!1}for(letr=0;r<this.set.lengLine truncated
/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.