From e5516f176ba649db098f0c916c0638b4eeae0537 Mon Sep 17 00:00:00 2001 From: Sebastian Pape <0xneo11@gmail.com> Date: Thu, 4 Jan 2024 17:13:03 +0100 Subject: [PATCH] fix loading icon spinners --- dist/esm/index.bundle.js | 2 +- dist/esm/index.evm.js | 16 ++++++++-------- dist/esm/index.evm.js.map | 2 +- dist/esm/index.js | 16 ++++++++-------- dist/esm/index.js.map | 2 +- dist/esm/index.solana.js | 16 ++++++++-------- dist/esm/index.solana.js.map | 2 +- dist/umd/index.bundle.js | 2 +- dist/umd/index.evm.js | 16 ++++++++-------- dist/umd/index.evm.js.map | 2 +- dist/umd/index.js | 16 ++++++++-------- dist/umd/index.js.map | 2 +- dist/umd/index.solana.js | 16 ++++++++-------- dist/umd/index.solana.js.map | 2 +- src/dialogs/ConnectWalletDialog.jsx | 8 ++++++-- 15 files changed, 62 insertions(+), 58 deletions(-) diff --git a/dist/esm/index.bundle.js b/dist/esm/index.bundle.js index 082e5e64..fbd0164f 100644 --- a/dist/esm/index.bundle.js +++ b/dist/esm/index.bundle.js @@ -122,7 +122,7 @@ qp((function(e,t){}));var sD=qp((function(e){e.exports=aD})); * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -qp((function(e,t){}));var rF=qp((function(e){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=nF}));const iF="/Users/sebastian/Work/DePay/react-dialog/src/components/Dialog.jsx";class oF extends eL.Component{constructor(e){super(e),this.handler=this.onKeyDown.bind(this),this.state={open:!0}}closeDialog(){this.props.close()}onKeyDown(e){"Escape"===e.key&&this.closeDialog()}componentDidUpdate(e){!1===this.props.open&&!0===e.open&&this.setState({open:!1})}onClickBackground(e){this.closeDialog()}componentDidMount(){!1===this.props.animate?this.setState({open:!0}):this.setState({open:!1},(()=>{setTimeout((()=>{this.setState({open:!0})}),10)})),this.props.document.addEventListener("keydown",this.handler,!0)}componentWillUnmount(){this.props.document.removeEventListener("keydown",this.handler,!0)}render(){const e=["ReactDialog",this.state.open?"ReactDialogOpen":""],t=`\n .ReactDialog {\n bottom: 0;\n display: flex;\n height: 100%;\n height: 100vh;\n left: 0;\n min-height: 100%;\n min-height: 100vh;\n overflow: hidden;\n position: fixed;\n right: 0;\n top: 0;\n width: 100%;\n width: 100vw;\n }\n\n .ReactDialogInner {\n align-items: center;\n display: flex;\n flex: 1;\n justify-content: center;\n }\n\n .ReactDialogBackground {\n background: ${"object"==typeof(n={background:this.props.background})&&n.background?n.background:"rgba(0,0,0,0.4)"};\n bottom: 0;\n display: block;\n height: 100%;\n left: 0;\n opacity: 0;\n position: fixed;\n right: 0;\n top: 0;\n transition: opacity 0.4s ease;\n width: 100%;\n }\n\n .ReactDialog.ReactDialogOpen .ReactDialogBackground {\n opacity: 1;\n }\n\n .ReactDialogAnimation {\n display: inline-block;\n position: relative;\n opacity: 0;\n top: -17vh;\n transition: opacity 0.4s ease, top 0.4s ease;\n }\n\n .ReactDialog.ReactDialogOpen .ReactDialogAnimation {\n opacity: 1.0;\n top: -5vh;\n }\n `;var n;return eL.createElement("div",{key:this.props.dialogKey,className:e.join(" "),__self:this,__source:{fileName:iF,lineNumber:59}},eL.createElement("style",{__self:this,__source:{fileName:iF,lineNumber:60}},t),eL.createElement("div",{className:"ReactDialogInner",__self:this,__source:{fileName:iF,lineNumber:61}},eL.createElement("div",{className:"ReactDialogBackground",onClick:this.onClickBackground.bind(this),__self:this,__source:{fileName:iF,lineNumber:62}}),this.props.children))}}class aF extends eL.Component{constructor(e){super(e),this.state={open:e.open}}componentDidUpdate(e){!1===this.props.open&&!0===e.open?setTimeout((()=>{this.setState({open:!1})}),400):!0===this.props.open&&!1===e.open&&this.setState({open:!0})}render(){let e=this.props.document||document,t=this.props.container||e.body;return this.state.open?rF.createPortal(eL.createElement(oF,{background:this.props.background,close:this.props.close,document:e,open:this.props.open,animate:this.props.animate,__self:this,__source:{fileName:"/Users/sebastian/Work/DePay/react-dialog/src/index.jsx",lineNumber:29}},this.props.children),t):null}}var sF=eL.createContext(),uF=eL.createContext();var cF=eL.createContext();const lF="/Users/sebastian/Work/DePay/react-dialog-stack/src/index.jsx";class hF extends eL.Component{constructor(e){if(super(e),e.setNavigator&&e.setNavigator(this),e.stacked){const t="string"==typeof e.stacked?e.stacked:"forward";this.state={stack:[],animating:!1,animation:null,direction:t,animationSpeed:200},setTimeout((()=>this.navigate(e.start,t)),10)}else this.state={stack:[e.start],animating:!1,animation:null,direction:"forward",animationSpeed:200}}set(e){this.setState({stack:e})}hide(e="forward"){"backward"===e?(this.setState({stack:[null,...this.state.stack]}),setTimeout((()=>this.navigate("back")),10)):this.navigate(null)}navigate(e,t="forward"){if(!(this.state.stack.indexOf(e)>-1))return"back"===e?this.unstack():void this.setState({stack:this.state.stack.concat(e),animating:!0,direction:t,animation:setTimeout(function(){this.setState({animating:!1})}.bind(this),this.state.animationSpeed)})}unstack(){if(this.state.stack.length<=1)return;let e=[...this.state.stack];e.pop(),this.setState({animating:!0,direction:"backward",animation:setTimeout(function(){this.setState({stack:e,animating:!1})}.bind(this),this.state.animationSpeed)})}classForState(e){if(!this.state.animating)return 1===this.state.stack.length||this.state.stack.length===e+1?"active":"inactive"}classForPosition(e){return this.state.stack.length>1?this.state.stack.length===e+1?"forward"===this.state.direction?"next":"previous":this.state.stack.length-1===e+1?"forward"===this.state.direction?"previous":"next":"stale":this.state.animating&&this.props.stacked&&0===e?"next":void 0}classForAnimation(){if(this.state.animating)return"animating"}classForDirection(){return this.state.direction}renderStack(){return this.state.stack.map(function(e,t){let n=[this.classForState(t),this.classForPosition(t),this.classForAnimation(),this.classForDirection()];return eL.createElement("div",{key:t,className:["ReactDialogStack"].concat(n).join(" "),onClick:this.onClick.bind(this),__self:this,__source:{fileName:lF,lineNumber:153}},eL.createElement(uF.Provider,{value:{navigate:this.navigate.bind(this),set:this.set.bind(this),hide:this.hide.bind(this)},__self:this,__source:{fileName:lF,lineNumber:158}},eL.createElement(sF.Provider,{value:this.close.bind(this),__self:this,__source:{fileName:lF,lineNumber:161}},eL.createElement(cF.Provider,{value:this.state.stack,__self:this,__source:{fileName:lF,lineNumber:162}},eL.createElement("div",{className:"ReactDialogAnimation",__self:this,__source:{fileName:lF,lineNumber:163}},this.props.dialogs[e])))))}.bind(this))}onClick(e){e.target&&e.target.className&&e.target.className.match&&e.target.className.match("ReactDialogStack")&&(this.state.stack.length>1?this.unstack():this.close())}close(e){this.state.stack.length>1&&!e?this.unstack():(this.props.close(),setTimeout((()=>this.setState({stack:this.state.stack.slice(0,1)})),400))}render(){return eL.createElement(aF,{close:this.close.bind(this),open:this.props.open,document:this.props.document,container:this.props.container,animate:!this.props.stacked,background:this.props.background,__self:this,__source:{fileName:lF,lineNumber:199}},eL.createElement("style",{__self:this,__source:{fileName:lF,lineNumber:207}},"\n\n .ReactDialogStack {\n align-items: center;\n bottom: 0;\n display: flex;\n flex: 1;\n height: 100%;\n justify-content: center;\n position: absolute;\n top: 0;\n transition: left 0.1s ease, opacity 0.2s ease;\n width: 100%;\n }\n\n .ReactDialogStackRow {\n display: table-row;\n }\n\n .ReactDialogStackCell {\n display: table-cell;\n vertical-align: middle;\n padding: 0 0.6rem;\n }\n\n .ReactDialogStack {\n left: 0;\n opacity: 1;\n }\n\n .ReactDialogStack.inactive {\n display: none;\n }\n\n .ReactDialogStack.animating.stale {\n display: none;\n }\n\n .ReactDialogStack.animating.previous.forward {\n opacity: 0;\n left: -5rem;\n }\n\n .ReactDialogStack.animating.previous.backward {\n opacity: 0;\n left: 5rem;\n }\n\n .ReactDialogStack.animating.next.forward {\n opacity: 0;\n left: 5rem;\n }\n\n .ReactDialogStack.animating.next.backward {\n opacity: 0;\n left: -5rem;\n }\n "),this.renderStack())}}var dF=function(e){var t=eL.useContext(uF).navigate,n=eL.useContext(tL),r=n.close,i=n.closable;return eL.createElement("div",{className:["Dialog",e.className].join(" ")},eL.createElement("div",{className:["DialogHeader",e.stacked?"TextCenter":""].join(" ")},e.stacked&&eL.createElement("div",{className:"DialogHeaderActionLeft PaddingTopS PaddingLeftS PaddingRightS"},eL.createElement("button",{type:"button",onClick:function(){return t("back")},className:"ButtonCircular",title:"Go back"},eL.createElement(iD,null))),i&&!1!==e.closable&&eL.createElement("div",{className:"DialogHeaderActionRight PaddingTopS PaddingLeftS PaddingRightS"},e.alternativeHeaderAction,eL.createElement("button",{type:"button",onClick:r,className:"ButtonCircular",title:"Close dialog"},eL.createElement(oD,null))),e.header),eL.createElement("div",{ref:e.bodyRef,className:["DialogBody",e.bodyClassName].join(" ")},e.body),!1!==e.footer&&eL.createElement("div",{className:"DialogFooter"},e.footer))},pF=function(){return"undefined"!=typeof window&&Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/.test(navigator.userAgent))},fF=Gp(qp((function(e,t){self,e.exports=(()=>{var e={192:(e,t)=>{var n,r,i=function(){var e=function(e,t){var n=e,r=a[t],i=null,o=0,u=null,y=[],g={},w=function(e,t){i=function(e){for(var t=new Array(e),n=0;n=7&&E(e),null==u&&(u=I(n,r,y)),T(u,t)},b=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||o<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||o<=t+r||(i[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},M=function(){for(var e=8;e>r&1);i[Math.floor(r/3)][r%3+o-8-3]=a}for(r=0;r<18;r+=1)a=!e&&1==(t>>r&1),i[r%3+o-8-3][Math.floor(r/3)]=a},N=function(e,t){for(var n=r<<3|t,a=s.getBCHTypeInfo(n),u=0;u<15;u+=1){var c=!e&&1==(a>>u&1);u<6?i[u][8]=c:u<8?i[u+1][8]=c:i[o-15+u][8]=c}for(u=0;u<15;u+=1)c=!e&&1==(a>>u&1),u<8?i[8][o-u-1]=c:u<9?i[8][15-u-1+1]=c:i[8][15-u-1]=c;i[o-8][8]=!e},T=function(e,t){for(var n=-1,r=o-1,a=7,u=0,c=s.getMaskFunction(t),l=o-1;l>0;l-=2)for(6==l&&(l-=1);;){for(var h=0;h<2;h+=1)if(null==i[r][l-h]){var d=!1;u>>a&1)),c(r,l-h)&&(d=!d),i[r][l-h]=d,-1==(a-=1)&&(u+=1,a=7)}if((r+=n)<0||o<=r){r-=n,n=-n;break}}},I=function(e,t,n){for(var r=l.getRSBlocks(e,t),i=h(),o=0;o8*u)throw"code length overflow. ("+i.getLengthInBits()+">"+8*u+")";for(i.getLengthInBits()+4<=8*u&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*u||(i.put(236,8),i.getLengthInBits()>=8*u));)i.put(17,8);return function(e,t){for(var n=0,r=0,i=0,o=new Array(t.length),a=new Array(t.length),u=0;u=0?f.getAt(m):0}}var y=0;for(d=0;dr)&&(e=r,t=n)}return t}())},g.createTableTag=function(e,t){e=e||2;var n="";n+='',n+="";for(var r=0;r";for(var i=0;i';n+=""}return(n+="")+"
"},g.createSvgTag=function(e,t,n,r){var i={};"object"==typeof arguments[0]&&(e=(i=arguments[0]).cellSize,t=i.margin,n=i.alt,r=i.title),e=e||2,t=void 0===t?4*e:t,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var o,a,s,u,c=g.getModuleCount()*e+2*t,l="";for(u="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",l+=''+L(r.text)+"":"",l+=n.text?''+L(n.text)+"":"",l+='',l+='"},g.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;var n=g.getModuleCount()*e+2*t,r=t,i=n-t;return v(n,n,(function(t,n){if(r<=t&&t"};var L=function(e){for(var t="",n=0;n":t+=">";break;case"&":t+="&";break;case'"':t+=""";break;default:t+=r}}return t};return g.createASCII=function(e,t){if((e=e||1)<2)return function(e){e=void 0===e?2:e;var t,n,r,i,o,a=1*g.getModuleCount()+2*e,s=e,u=a-e,c={"██":"█","█ ":"▀"," █":"▄"," ":" "},l={"██":"▀","█ ":"▀"," █":" "," ":" "},h="";for(t=0;t=u?l[o]:c[o];h+="\n"}return a%2&&e>0?h.substring(0,h.length-a-1)+Array(a+1).join("▀"):h.substring(0,h.length-1)}(t);e-=1,t=void 0===t?2*e:t;var n,r,i,o,a=g.getModuleCount()*e+2*t,s=t,u=a-t,c=Array(e+1).join("██"),l=Array(e+1).join(" "),h="",d="";for(n=0;n>>8),t.push(255&a)):t.push(r)}}return t}};var t,n,r,i,o,a={L:1,M:0,Q:3,H:2},s=(t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],n=1335,r=7973,o=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},(i={}).getBCHTypeInfo=function(e){for(var t=e<<10;o(t)-o(n)>=0;)t^=n<=0;)t^=r<5&&(n+=3+o-5)}for(r=0;r=256;)t-=255;return e[t]}}}();function c(e,t){if(void 0===e.length)throw e.length+"/"+t;var n=function(){for(var n=0;n>>7-t%8&1)},put:function(e,t){for(var r=0;r>>t-r-1&1))},getLengthInBits:function(){return t},putBit:function(n){var r=Math.floor(t/8);e.length<=r&&e.push(0),n&&(e[r]|=128>>>t%8),t+=1}};return n},d=function(e){var t=e,n={getMode:function(){return 1},getLength:function(e){return t.length},write:function(e){for(var n=t,i=0;i+2>>8&255)+(255&i),e.put(i,13),n+=2}if(n>>8)},writeBytes:function(e,n,r){n=n||0,r=r||e.length;for(var i=0;i0&&(t+=","),t+=e[n];return t+"]"}};return t},g=function(e){var t=e,n=0,r=0,i=0,o={read:function(){for(;i<8;){if(n>=t.length){if(0==i)return-1;throw"unexpected end of file./"+i}var e=t.charAt(n);if(n+=1,"="==e)return i=0,-1;e.match(/^\s$/)||(r=r<<6|a(e.charCodeAt(0)),i+=6)}var o=r>>>i-8&255;return i-=8,o}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return o},v=function(e,t,n){for(var r=function(e,t){var n=e,r=t,i=new Array(e*t),o={setPixel:function(e,t,r){i[t*n+e]=r},write:function(e){e.writeString("GIF87a"),e.writeShort(n),e.writeShort(r),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(r),e.writeByte(0);var t=a(2);e.writeByte(2);for(var i=0;t.length-i>255;)e.writeByte(255),e.writeBytes(t,i,255),i+=255;e.writeByte(t.length-i),e.writeBytes(t,i,t.length-i),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<>>t!=0)throw"length over";for(;c+t>=8;)u.writeByte(255&(e<>>=8-c,l=0,c=0;l|=e<0&&u.writeByte(l)}});d.write(t,r);var p=0,f=String.fromCharCode(i[p]);for(p+=1;p=6;)o(e>>>t-6),t-=6},i.flush=function(){if(t>0&&(o(e<<6-t),e=0,t=0),n%3!=0)for(var i=3-n%3,a=0;a>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}(e)},void 0===(r="function"==typeof(n=function(){return i})?n.apply(t,[]):n)||(e.exports=r)},676:(e,t,n)=>{n.d(t,{default:()=>D});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]2||o&&a||s&&u)this._basicSquare({x:t,y:n,size:r,rotation:0});else{if(2===c){var l=0;return o&&s?l=Math.PI/2:s&&a?l=Math.PI:a&&u&&(l=-Math.PI/2),void this._basicCornerRounded({x:t,y:n,size:r,rotation:l})}if(1===c)return l=0,s?l=Math.PI/2:a?l=Math.PI:u&&(l=-Math.PI/2),void this._basicSideRounded({x:t,y:n,size:r,rotation:l})}else this._basicDot({x:t,y:n,size:r,rotation:0})},e.prototype._drawExtraRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,u=i?+i(0,1):0,c=o+a+s+u;if(0!==c)if(c>2||o&&a||s&&u)this._basicSquare({x:t,y:n,size:r,rotation:0});else{if(2===c){var l=0;return o&&s?l=Math.PI/2:s&&a?l=Math.PI:a&&u&&(l=-Math.PI/2),void this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:l})}if(1===c)return l=0,s?l=Math.PI/2:a?l=Math.PI:u&&(l=-Math.PI/2),void this._basicSideRounded({x:t,y:n,size:r,rotation:l})}else this._basicDot({x:t,y:n,size:r,rotation:0})},e.prototype._drawClassy=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,u=i?+i(0,1):0;0!==o+a+s+u?o||s?a||u?this._basicSquare({x:t,y:n,size:r,rotation:0}):this._basicCornerRounded({x:t,y:n,size:r,rotation:Math.PI/2}):this._basicCornerRounded({x:t,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:n,size:r,rotation:Math.PI/2})},e.prototype._drawClassyRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,u=i?+i(0,1):0;0!==o+a+s+u?o||s?a||u?this._basicSquare({x:t,y:n,size:r,rotation:0}):this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:n,size:r,rotation:Math.PI/2})},e}();var d=function(){return(d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]r||i&&i=(t-o.hideXDots)/2&&e<(t+o.hideXDots)/2&&n>=(t-o.hideYDots)/2&&n<(t+o.hideYDots)/2||(null===(r=w[e])||void 0===r?void 0:r[n])||(null===(i=w[e-t+7])||void 0===i?void 0:i[n])||(null===(a=w[e])||void 0===a?void 0:a[n-t+7])||(null===(s=b[e])||void 0===s?void 0:s[n])||(null===(u=b[e-t+7])||void 0===u?void 0:u[n])||(null===(c=b[e])||void 0===c?void 0:c[n-t+7]))})),this.drawCorners(),this._options.image?[4,this.drawImage({width:o.width,height:o.height,count:t,dotSize:i})]:[3,4];case 3:p.sent(),p.label=4;case 4:return[2]}}))}))},e.prototype.drawBackground=function(){var e,t,n,r=this._element,i=this._options;if(r){var o=null===(e=i.backgroundOptions)||void 0===e?void 0:e.gradient,a=null===(t=i.backgroundOptions)||void 0===t?void 0:t.color;if((o||a)&&this._createColor({options:o,color:a,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"background-color"}),null===(n=i.backgroundOptions)||void 0===n?void 0:n.round){var s=Math.min(i.width,i.height),u=document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id","clip-path-background-color"),this._defs.appendChild(this._backgroundClipPath),u.setAttribute("x",String((i.width-s)/2)),u.setAttribute("y",String((i.height-s)/2)),u.setAttribute("width",String(s)),u.setAttribute("height",String(s)),u.setAttribute("rx",String(s/2*i.backgroundOptions.round)),this._backgroundClipPath.appendChild(u)}}},e.prototype.drawDots=function(e){var t,n,r=this;if(!this._qr)throw"QR code is not defined";var i=this._options,o=this._qr.getModuleCount();if(o>i.width||o>i.height)throw"The canvas is too small.";var a=Math.min(i.width,i.height)-2*i.margin,s=i.shape===y?a/Math.sqrt(2):a,u=Math.floor(s/o),c=Math.floor((i.width-o*u)/2),l=Math.floor((i.height-o*u)/2),d=new h({svg:this._element,type:i.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:null===(t=i.dotsOptions)||void 0===t?void 0:t.gradient,color:i.dotsOptions.color,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"dot-color"});for(var p=function(t){for(var i=function(i){return e&&!e(t,i)?"continue":(null===(n=f._qr)||void 0===n?void 0:n.isDark(t,i))?(d.draw(c+t*u,l+i*u,u,(function(n,a){return!(t+n<0||i+a<0||t+n>=o||i+a>=o)&&!(e&&!e(t+n,i+a))&&!!r._qr&&r._qr.isDark(t+n,i+a)})),void(d._element&&f._dotsClipPath&&f._dotsClipPath.appendChild(d._element))):"continue"},a=0;a=g-1&&m<=v-g&&E>=g-1&&E<=v-g||Math.sqrt((m-A)*(m-A)+(E-A)*(E-A))>A?M[m][E]=0:M[m][E]=this._qr.isDark(E-2*g<0?E:E>=o?E-2*g:E-g,m-2*g<0?m:m>=o?m-2*g:m-g)?1:0}var N=function(e){for(var t=function(t){if(!M[e][t])return"continue";d.draw(w+e*u,b+t*u,u,(function(n,r){var i;return!!(null===(i=M[e+n])||void 0===i?void 0:i[t+r])})),d._element&&T._dotsClipPath&&T._dotsClipPath.appendChild(d._element)},n=0;na?s:a,l=document.createElementNS("http://www.w3.org/2000/svg","rect");if(l.setAttribute("x",String(i)),l.setAttribute("y",String(o)),l.setAttribute("height",String(a)),l.setAttribute("width",String(s)),l.setAttribute("clip-path","url('#clip-path-"+u+"')"),t){var h;if("radial"===t.type)(h=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",u),h.setAttribute("gradientUnits","userSpaceOnUse"),h.setAttribute("fx",String(i+s/2)),h.setAttribute("fy",String(o+a/2)),h.setAttribute("cx",String(i+s/2)),h.setAttribute("cy",String(o+a/2)),h.setAttribute("r",String(c/2));else{var d=((t.rotation||0)+r)%(2*Math.PI),p=(d+2*Math.PI)%(2*Math.PI),f=i+s/2,m=o+a/2,y=i+s/2,g=o+a/2;p>=0&&p<=.25*Math.PI||p>1.75*Math.PI&&p<=2*Math.PI?(f-=s/2,m-=a/2*Math.tan(d),y+=s/2,g+=a/2*Math.tan(d)):p>.25*Math.PI&&p<=.75*Math.PI?(m-=a/2,f-=s/2/Math.tan(d),g+=a/2,y+=s/2/Math.tan(d)):p>.75*Math.PI&&p<=1.25*Math.PI?(f+=s/2,m+=a/2*Math.tan(d),y-=s/2,g-=a/2*Math.tan(d)):p>1.25*Math.PI&&p<=1.75*Math.PI&&(m+=a/2,f+=s/2/Math.tan(d),g-=a/2,y-=s/2/Math.tan(d)),(h=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",u),h.setAttribute("gradientUnits","userSpaceOnUse"),h.setAttribute("x1",String(Math.round(f))),h.setAttribute("y1",String(Math.round(m))),h.setAttribute("x2",String(Math.round(y))),h.setAttribute("y2",String(Math.round(g)))}t.colorStops.forEach((function(e){var t=e.offset,n=e.color,r=document.createElementNS("http://www.w3.org/2000/svg","stop");r.setAttribute("offset",100*t+"%"),r.setAttribute("stop-color",n),h.appendChild(r)})),l.setAttribute("fill","url('#"+u+"')"),this._defs.appendChild(h)}else n&&l.setAttribute("fill",n);this._element.appendChild(l)},e}(),A="canvas";for(var E={},N=0;N<=40;N++)E[N]=N;const T={type:A,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:E[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{round:0,color:"#fff"}};var I=function(){return(I=Object.assign||function(e){for(var t,n=1,r=arguments.length;nMath.min(t.width,t.height)&&(t.margin=Math.min(t.width,t.height)),t.dotsOptions=I({},t.dotsOptions),t.dotsOptions.gradient&&(t.dotsOptions.gradient=L(t.dotsOptions.gradient)),t.cornersSquareOptions&&(t.cornersSquareOptions=I({},t.cornersSquareOptions),t.cornersSquareOptions.gradient&&(t.cornersSquareOptions.gradient=L(t.cornersSquareOptions.gradient))),t.cornersDotOptions&&(t.cornersDotOptions=I({},t.cornersDotOptions),t.cornersDotOptions.gradient&&(t.cornersDotOptions.gradient=L(t.cornersDotOptions.gradient))),t.backgroundOptions&&(t.backgroundOptions=I({},t.backgroundOptions),t.backgroundOptions.gradient&&(t.backgroundOptions.gradient=L(t.backgroundOptions.gradient))),t}var x=n(192),S=n.n(x),j=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},C=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]\r\n'+r],{type:"image/svg+xml"})]):[2,new Promise((function(n){return t.toBlob(n,"image/"+e,1)}))]:[2,null]}}))}))},e.prototype.download=function(e){return j(this,void 0,void 0,(function(){var t,n,r,i,o;return C(this,(function(a){switch(a.label){case 0:if(!this._qr)throw"QR code is empty";return t="png",n="qr","string"==typeof e?(t=e,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof e&&null!==e&&(e.name&&(n=e.name),e.extension&&(t=e.extension)),[4,this._getElement(t)];case 1:return(r=a.sent())?("svg"===t.toLowerCase()?(i=new XMLSerializer,o='\r\n'+(o=i.serializeToString(r)),s("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o),n+".svg")):s(r.toDataURL("image/"+t),n+"."+t),[2]):[2]}}))}))},e}()}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n(676)})().default}))),mF=qp((function(e,t){(function(){var n,r="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",a=16,s=32,u=64,c=128,l=256,h=1/0,d=9007199254740991,p=NaN,f=4294967295,m=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",s],["partialRight",u],["rearg",l]],y="[object Arguments]",g="[object Array]",v="[object Boolean]",w="[object Date]",b="[object Error]",M="[object Function]",A="[object GeneratorFunction]",E="[object Map]",N="[object Number]",T="[object Object]",I="[object Promise]",L="[object RegExp]",k="[object Set]",x="[object String]",S="[object Symbol]",j="[object WeakMap]",C="[object ArrayBuffer]",D="[object DataView]",O="[object Float32Array]",z="[object Float64Array]",_="[object Int8Array]",P="[object Int16Array]",R="[object Int32Array]",B="[object Uint8Array]",U="[object Uint8ClampedArray]",W="[object Uint16Array]",Q="[object Uint32Array]",Y=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,q=RegExp(H.source),Z=RegExp(G.source),J=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,re=RegExp(ne.source),ie=/^\s+/,oe=/\s/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,Me=/['\n\r\u2028\u2029\\]/g,Ae="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",Ne="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Ie="\\ufe0e\\ufe0f",Le="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ke="['’]",xe="[\\ud800-\\udfff]",Se="["+Le+"]",je="["+Ae+"]",Ce="\\d+",De="[\\u2700-\\u27bf]",Oe="["+Ne+"]",ze="[^\\ud800-\\udfff"+Le+Ce+Ee+Ne+Te+"]",_e="\\ud83c[\\udffb-\\udfff]",Pe="[^\\ud800-\\udfff]",Re="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",Ue="["+Te+"]",We="(?:"+Oe+"|"+ze+")",Qe="(?:"+Ue+"|"+ze+")",Ye="(?:['’](?:d|ll|m|re|s|t|ve))?",Fe="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ve="(?:"+je+"|"+_e+")"+"?",He="[\\ufe0e\\ufe0f]?",Ge=He+Ve+("(?:\\u200d(?:"+[Pe,Re,Be].join("|")+")"+He+Ve+")*"),qe="(?:"+[De,Re,Be].join("|")+")"+Ge,Ze="(?:"+[Pe+je+"?",je,Re,Be,xe].join("|")+")",Je=RegExp(ke,"g"),Xe=RegExp(je,"g"),Ke=RegExp(_e+"(?="+_e+")|"+Ze+Ge,"g"),$e=RegExp([Ue+"?"+Oe+"+"+Ye+"(?="+[Se,Ue,"$"].join("|")+")",Qe+"+"+Fe+"(?="+[Se,Ue+We,"$"].join("|")+")",Ue+"?"+We+"+"+Ye,Ue+"+"+Fe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ce,qe].join("|"),"g"),et=RegExp("[\\u200d\\ud800-\\udfff"+Ae+Ie+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,it={};it[O]=it[z]=it[_]=it[P]=it[R]=it[B]=it[U]=it[W]=it[Q]=!0,it[y]=it[g]=it[C]=it[v]=it[D]=it[w]=it[b]=it[M]=it[E]=it[N]=it[T]=it[L]=it[k]=it[x]=it[j]=!1;var ot={};ot[y]=ot[g]=ot[C]=ot[D]=ot[v]=ot[w]=ot[O]=ot[z]=ot[_]=ot[P]=ot[R]=ot[E]=ot[N]=ot[T]=ot[L]=ot[k]=ot[x]=ot[S]=ot[B]=ot[U]=ot[W]=ot[Q]=!0,ot[b]=ot[M]=ot[j]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ut=parseInt,ct="object"==typeof Hp&&Hp&&Hp.Object===Object&&Hp,lt="object"==typeof self&&self&&self.Object===Object&&self,ht=ct||lt||Function("return this")(),dt=t&&!t.nodeType&&t,pt=dt&&e&&!e.nodeType&&e,ft=pt&&pt.exports===dt,mt=ft&&ct.process,yt=function(){try{var e=pt&&pt.require&&pt.require("util").types;return e||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),gt=yt&&yt.isArrayBuffer,vt=yt&&yt.isDate,wt=yt&&yt.isMap,bt=yt&&yt.isRegExp,Mt=yt&&yt.isSet,At=yt&&yt.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Nt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function St(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function $t(e,t){for(var n=e.length;n--&&Bt(t,e[n],0)>-1;);return n}function en(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var tn=Ft({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),nn=Ft({"&":"&","<":"<",">":">",'"':""","'":"'"});function rn(e){return"\\"+at[e]}function on(e){return et.test(e)}function an(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,i=0,a=[];++n",""":'"',"'":"'"});var mn=function e(t){var oe,Ae=(t=null==t?ht:mn.defaults(ht.Object(),t,mn.pick(ht,nt))).Array,Ee=t.Date,Ne=t.Error,Te=t.Function,Ie=t.Math,Le=t.Object,ke=t.RegExp,xe=t.String,Se=t.TypeError,je=Ae.prototype,Ce=Te.prototype,De=Le.prototype,Oe=t["__core-js_shared__"],ze=Ce.toString,_e=De.hasOwnProperty,Pe=0,Re=(oe=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+oe:"",Be=De.toString,Ue=ze.call(Le),We=ht._,Qe=ke("^"+ze.call(_e).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ye=ft?t.Buffer:n,Fe=t.Symbol,Ve=t.Uint8Array,He=Ye?Ye.allocUnsafe:n,Ge=sn(Le.getPrototypeOf,Le),qe=Le.create,Ze=De.propertyIsEnumerable,Ke=je.splice,et=Fe?Fe.isConcatSpreadable:n,at=Fe?Fe.iterator:n,ct=Fe?Fe.toStringTag:n,lt=function(){try{var e=fo(Le,"defineProperty");return e({},"",{}),e}catch(e){}}(),dt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,pt=Ee&&Ee.now!==ht.Date.now&&Ee.now,mt=t.setTimeout!==ht.setTimeout&&t.setTimeout,yt=Ie.ceil,_t=Ie.floor,Ft=Le.getOwnPropertySymbols,yn=Ye?Ye.isBuffer:n,gn=t.isFinite,vn=je.join,wn=sn(Le.keys,Le),bn=Ie.max,Mn=Ie.min,An=Ee.now,En=t.parseInt,Nn=Ie.random,Tn=je.reverse,In=fo(t,"DataView"),Ln=fo(t,"Map"),kn=fo(t,"Promise"),xn=fo(t,"Set"),Sn=fo(t,"WeakMap"),jn=fo(Le,"create"),Cn=Sn&&new Sn,Dn={},On=Wo(In),zn=Wo(Ln),_n=Wo(kn),Pn=Wo(xn),Rn=Wo(Sn),Bn=Fe?Fe.prototype:n,Un=Bn?Bn.valueOf:n,Wn=Bn?Bn.toString:n;function Qn(e){if(is(e)&&!Ga(e)&&!(e instanceof Hn)){if(e instanceof Vn)return e;if(_e.call(e,"__wrapped__"))return Qo(e)}return new Vn(e)}var Yn=function(){function e(){}return function(t){if(!rs(t))return{};if(qe)return qe(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Fn(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function lr(e,t,r,i,o,a){var s,u=1&t,c=2&t,l=4&t;if(r&&(s=o?r(e,i,o,a):r(e)),s!==n)return s;if(!rs(e))return e;var h=Ga(e);if(h){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&_e.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return ji(e,s)}else{var d=go(e),p=d==M||d==A;if(Xa(e))return Ti(e,u);if(d==T||d==y||p&&!o){if(s=c||p?{}:wo(e),!u)return c?function(e,t){return Ci(e,yo(e),t)}(e,function(e,t){return e&&Ci(t,zs(t),e)}(s,e)):function(e,t){return Ci(e,mo(e),t)}(e,ar(s,e))}else{if(!ot[d])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case C:return Ii(e);case v:case w:return new r(+e);case D:return function(e,t){var n=t?Ii(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case O:case z:case _:case P:case R:case B:case U:case W:case Q:return Li(e,n);case E:return new r;case N:case x:return new r(e);case L:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new r;case S:return i=e,Un?Le(Un.call(i)):{}}var i}(e,d,u)}}a||(a=new Xn);var f=a.get(e);if(f)return f;a.set(e,s),cs(e)?e.forEach((function(n){s.add(lr(n,t,r,n,e,a))})):os(e)&&e.forEach((function(n,i){s.set(i,lr(n,t,r,i,e,a))}));var m=h?n:(l?c?ao:oo:c?zs:Os)(e);return Tt(m||e,(function(n,i){m&&(n=e[i=n]),rr(s,i,lr(n,t,r,i,e,a))})),s}function hr(e,t,r){var i=r.length;if(null==e)return!i;for(e=Le(e);i--;){var o=r[i],a=t[o],s=e[o];if(s===n&&!(o in e)||!a(s))return!1}return!0}function dr(e,t,i){if("function"!=typeof e)throw new Se(r);return Oo((function(){e.apply(n,i)}),t)}function pr(e,t,n,r){var i=-1,o=xt,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=jt(t,Zt(n))),r?(o=St,a=!1):t.length>=200&&(o=Xt,a=!1,t=new Jn(t));e:for(;++i-1},qn.prototype.set=function(e,t){var n=this.__data__,r=ir(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Zn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(Ln||qn),string:new Gn}},Zn.prototype.delete=function(e){var t=ho(this,e).delete(e);return this.size-=t?1:0,t},Zn.prototype.get=function(e){return ho(this,e).get(e)},Zn.prototype.has=function(e){return ho(this,e).has(e)},Zn.prototype.set=function(e,t){var n=ho(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Jn.prototype.add=Jn.prototype.push=function(e){return this.__data__.set(e,i),this},Jn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new qn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!Ln||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Zn(r)}return n.set(e,t),this.size=n.size,this};var fr=zi(Ar),mr=zi(Er,!0);function yr(e,t){var n=!0;return fr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function gr(e,t,r){for(var i=-1,o=e.length;++i0&&n(s)?t>1?wr(s,t-1,n,r,i):Ct(i,s):r||(i[i.length]=s)}return i}var br=_i(),Mr=_i(!0);function Ar(e,t){return e&&br(e,t,Os)}function Er(e,t){return e&&Mr(e,t,Os)}function Nr(e,t){return kt(t,(function(t){return es(e[t])}))}function Tr(e,t){for(var r=0,i=(t=Mi(t,e)).length;null!=e&&rt}function xr(e,t){return null!=e&&_e.call(e,t)}function Sr(e,t){return null!=e&&t in Le(e)}function jr(e,t,r){for(var i=r?St:xt,o=e[0].length,a=e.length,s=a,u=Ae(a),c=1/0,l=[];s--;){var h=e[s];s&&t&&(h=jt(h,Zt(t))),c=Mn(h.length,c),u[s]=!r&&(t||o>=120&&h.length>=120)?new Jn(s&&h):n}h=e[0];var d=-1,p=u[0];e:for(;++d=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Gr(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&Ke.call(s,u,1),Ke.call(e,u,1);return e}function Zr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Mo(i)?Ke.call(e,i,1):pi(e,i)}}return e}function Jr(e,t){return e+_t(Nn()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=_t(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return zo(xo(e,t,au),e+"")}function $r(e){return $n(Ys(e))}function ei(e,t){var n=Ys(e);return Ro(n,cr(t,0,n.length))}function ti(e,t,r,i){if(!rs(e))return e;for(var o=-1,a=(t=Mi(t,e)).length,s=a-1,u=e;null!=u&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Ae(i);++r>>1,a=e[o];null!==a&&!hs(a)&&(n?a<=t:a=200){var c=t?null:Xi(e);if(c)return cn(c);a=!1,i=Xt,u=new Jn}else u=t?[]:s;e:for(;++r=i?e:oi(e,t,r)}var Ni=dt||function(e){return ht.clearTimeout(e)};function Ti(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function Ii(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function Li(e,t){var n=t?Ii(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ki(e,t){if(e!==t){var r=e!==n,i=null===e,o=e==e,a=hs(e),s=t!==n,u=null===t,c=t==t,l=hs(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||i&&s&&c||!r&&c||!o)return 1;if(!i&&!a&&!l&&e1?r[o-1]:n,s=o>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(o--,a):n,s&&Ao(r[0],r[1],s)&&(a=o<3?n:a,o=1),t=Le(t);++i-1?o[a?t[s]:s]:n}}function Wi(e){return io((function(t){var i=t.length,o=i,a=Vn.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if("function"!=typeof s)throw new Se(r);if(a&&!u&&"wrapper"==uo(s))var u=new Vn([],!0)}for(o=u?o:i;++o1&&v.reverse(),d&&lu))return!1;var l=a.get(e),h=a.get(t);if(l&&h)return l==t&&h==e;var d=-1,p=!0,f=2&r?new Jn:n;for(a.set(e,t),a.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ae,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Tt(m,(function(n){var r="_."+n[0];t&n[1]&&!xt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ue):[]}(r),n)))}function Po(e){var t=0,r=0;return function(){var i=An(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ro(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ua(e,r)}));function ma(e){var t=Qn(e);return t.__chain__=!0,t}function ya(e,t){return t(e)}var ga=io((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return ur(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Hn&&Mo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:ya,args:[o],thisArg:n}),new Vn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var va=Di((function(e,t,n){_e.call(e,n)?++e[n]:sr(e,n,1)}));var wa=Ui(Ho),ba=Ui(Go);function Ma(e,t){return(Ga(e)?Tt:fr)(e,lo(t,3))}function Aa(e,t){return(Ga(e)?It:mr)(e,lo(t,3))}var Ea=Di((function(e,t,n){_e.call(e,n)?e[n].push(t):sr(e,n,[t])}));var Na=Kr((function(e,t,n){var r=-1,i="function"==typeof t,o=Za(e)?Ae(e.length):[];return fr(e,(function(e){o[++r]=i?Et(t,e,n):Cr(e,t,n)})),o})),Ta=Di((function(e,t,n){sr(e,n,t)}));function Ia(e,t){return(Ga(e)?jt:Wr)(e,lo(t,3))}var La=Di((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ka=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ao(e,t[0],t[1])?t=[]:n>2&&Ao(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,wr(t,1),[])})),xa=pt||function(){return ht.Date.now()};function Sa(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,$i(e,c,n,n,n,n,t)}function ja(e,t){var i;if("function"!=typeof t)throw new Se(r);return e=gs(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var Ca=Kr((function(e,t,n){var r=1;if(n.length){var i=un(n,co(Ca));r|=s}return $i(e,r,t,n,i)})),Da=Kr((function(e,t,n){var r=3;if(n.length){var i=un(n,co(Da));r|=s}return $i(t,r,e,n,i)}));function Oa(e,t,i){var o,a,s,u,c,l,h=0,d=!1,p=!1,f=!0;if("function"!=typeof e)throw new Se(r);function m(t){var r=o,i=a;return o=a=n,h=t,u=e.apply(i,r)}function y(e){return h=e,c=Oo(v,t),d?m(e):u}function g(e){var r=e-l;return l===n||r>=t||r<0||p&&e-h>=s}function v(){var e=xa();if(g(e))return w(e);c=Oo(v,function(e){var n=t-(e-l);return p?Mn(n,s-(e-h)):n}(e))}function w(e){return c=n,f&&o?m(e):(o=a=n,u)}function b(){var e=xa(),r=g(e);if(o=arguments,a=this,l=e,r){if(c===n)return y(l);if(p)return Ni(c),c=Oo(v,t),m(l)}return c===n&&(c=Oo(v,t)),u}return t=ws(t)||0,rs(i)&&(d=!!i.leading,s=(p="maxWait"in i)?bn(ws(i.maxWait)||0,t):s,f="trailing"in i?!!i.trailing:f),b.cancel=function(){c!==n&&Ni(c),h=0,o=l=a=c=n},b.flush=function(){return c===n?u:w(xa())},b}var za=Kr((function(e,t){return dr(e,1,t)})),_a=Kr((function(e,t,n){return dr(e,ws(t)||0,n)}));function Pa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Se(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Pa.Cache||Zn),n}function Ra(e){if("function"!=typeof e)throw new Se(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Pa.Cache=Zn;var Ba=Ai((function(e,t){var n=(t=1==t.length&&Ga(t[0])?jt(t[0],Zt(lo())):jt(wr(t,1),Zt(lo()))).length;return Kr((function(r){for(var i=-1,o=Mn(r.length,n);++i=t})),Ha=Dr(function(){return arguments}())?Dr:function(e){return is(e)&&_e.call(e,"callee")&&!Ze.call(e,"callee")},Ga=Ae.isArray,qa=gt?Zt(gt):function(e){return is(e)&&Lr(e)==C};function Za(e){return null!=e&&ns(e.length)&&!es(e)}function Ja(e){return is(e)&&Za(e)}var Xa=yn||wu,Ka=vt?Zt(vt):function(e){return is(e)&&Lr(e)==w};function $a(e){if(!is(e))return!1;var t=Lr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ss(e)}function es(e){if(!rs(e))return!1;var t=Lr(e);return t==M||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ts(e){return"number"==typeof e&&e==gs(e)}function ns(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function rs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function is(e){return null!=e&&"object"==typeof e}var os=wt?Zt(wt):function(e){return is(e)&&go(e)==E};function as(e){return"number"==typeof e||is(e)&&Lr(e)==N}function ss(e){if(!is(e)||Lr(e)!=T)return!1;var t=Ge(e);if(null===t)return!0;var n=_e.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ze.call(n)==Ue}var us=bt?Zt(bt):function(e){return is(e)&&Lr(e)==L};var cs=Mt?Zt(Mt):function(e){return is(e)&&go(e)==k};function ls(e){return"string"==typeof e||!Ga(e)&&is(e)&&Lr(e)==x}function hs(e){return"symbol"==typeof e||is(e)&&Lr(e)==S}var ds=At?Zt(At):function(e){return is(e)&&ns(e.length)&&!!it[Lr(e)]};var ps=qi(Ur),fs=qi((function(e,t){return e<=t}));function ms(e){if(!e)return[];if(Za(e))return ls(e)?dn(e):ji(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=go(e);return(t==E?an:t==k?cn:Ys)(e)}function ys(e){return e?(e=ws(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gs(e){var t=ys(e),n=t%1;return t==t?n?t-n:t:0}function vs(e){return e?cr(gs(e),0,f):0}function ws(e){if("number"==typeof e)return e;if(hs(e))return p;if(rs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=rs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=qt(e);var n=me.test(e);return n||ge.test(e)?ut(e.slice(2),n?2:8):fe.test(e)?p:+e}function bs(e){return Ci(e,zs(e))}function Ms(e){return null==e?"":hi(e)}var As=Oi((function(e,t){if(Io(t)||Za(t))Ci(t,Os(t),e);else for(var n in t)_e.call(t,n)&&rr(e,n,t[n])})),Es=Oi((function(e,t){Ci(t,zs(t),e)})),Ns=Oi((function(e,t,n,r){Ci(t,zs(t),e,r)})),Ts=Oi((function(e,t,n,r){Ci(t,Os(t),e,r)})),Is=io(ur);var Ls=Kr((function(e,t){e=Le(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&Ao(t[0],t[1],o)&&(i=1);++r1),t})),Ci(e,ao(e),n),r&&(n=lr(n,7,no));for(var i=t.length;i--;)pi(n,t[i]);return n}));var Bs=io((function(e,t){return null==e?{}:function(e,t){return Gr(e,t,(function(t,n){return Ss(e,n)}))}(e,t)}));function Us(e,t){if(null==e)return{};var n=jt(ao(e),(function(e){return[e]}));return t=lo(t),Gr(e,n,(function(e,n){return t(e,n[0])}))}var Ws=Ki(Os),Qs=Ki(zs);function Ys(e){return null==e?[]:Jt(e,Os(e))}var Fs=Ri((function(e,t,n){return t=t.toLowerCase(),e+(n?Vs(t):t)}));function Vs(e){return $s(Ms(e).toLowerCase())}function Hs(e){return(e=Ms(e))&&e.replace(we,tn).replace(Xe,"")}var Gs=Ri((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),qs=Ri((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Zs=Pi("toLowerCase");var Js=Ri((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xs=Ri((function(e,t,n){return e+(n?" ":"")+$s(t)}));var Ks=Ri((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),$s=Pi("toUpperCase");function eu(e,t,r){return e=Ms(e),(t=r?n:t)===n?function(e){return tt.test(e)}(e)?function(e){return e.match($e)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var tu=Kr((function(e,t){try{return Et(e,n,t)}catch(e){return $a(e)?e:new Ne(e)}})),nu=io((function(e,t){return Tt(t,(function(t){t=Uo(t),sr(e,t,Ca(e[t],e))})),e}));function ru(e){return function(){return e}}var iu=Wi(),ou=Wi(!0);function au(e){return e}function su(e){return Pr("function"==typeof e?e:lr(e,1))}var uu=Kr((function(e,t){return function(n){return Cr(n,e,t)}})),cu=Kr((function(e,t){return function(n){return Cr(e,n,t)}}));function lu(e,t,n){var r=Os(t),i=Nr(t,r);null!=n||rs(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Nr(t,Os(t)));var o=!(rs(n)&&"chain"in n&&!n.chain),a=es(e);return Tt(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=ji(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ct([this.value()],arguments))})})),e}function hu(){}var du=Vi(jt),pu=Vi(Lt),fu=Vi(zt);function mu(e){return Eo(e)?Yt(Uo(e)):function(e){return function(t){return Tr(t,e)}}(e)}var yu=Gi(),gu=Gi(!0);function vu(){return[]}function wu(){return!1}var bu=Fi((function(e,t){return e+t}),0),Mu=Ji("ceil"),Au=Fi((function(e,t){return e/t}),1),Eu=Ji("floor");var Nu,Tu=Fi((function(e,t){return e*t}),1),Iu=Ji("round"),Lu=Fi((function(e,t){return e-t}),0);return Qn.after=function(e,t){if("function"!=typeof t)throw new Se(r);return e=gs(e),function(){if(--e<1)return t.apply(this,arguments)}},Qn.ary=Sa,Qn.assign=As,Qn.assignIn=Es,Qn.assignInWith=Ns,Qn.assignWith=Ts,Qn.at=Is,Qn.before=ja,Qn.bind=Ca,Qn.bindAll=nu,Qn.bindKey=Da,Qn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ga(e)?e:[e]},Qn.chain=ma,Qn.chunk=function(e,t,r){t=(r?Ao(e,t,r):t===n)?1:bn(gs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=Ae(yt(i/t));oo?0:o+r),(i=i===n||i>o?o:gs(i))<0&&(i+=o),i=r>i?0:vs(i);r>>0)?(e=Ms(e))&&("string"==typeof t||null!=t&&!us(t))&&!(t=hi(t))&&on(e)?Ei(dn(e),0,r):e.split(t,r):[]},Qn.spread=function(e,t){if("function"!=typeof e)throw new Se(r);return t=null==t?0:bn(gs(t),0),Kr((function(n){var r=n[t],i=Ei(n,0,t);return r&&Ct(i,r),Et(e,this,i)}))},Qn.tail=function(e){var t=null==e?0:e.length;return t?oi(e,1,t):[]},Qn.take=function(e,t,r){return e&&e.length?oi(e,0,(t=r||t===n?1:gs(t))<0?0:t):[]},Qn.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?oi(e,(t=i-(t=r||t===n?1:gs(t)))<0?0:t,i):[]},Qn.takeRightWhile=function(e,t){return e&&e.length?mi(e,lo(t,3),!1,!0):[]},Qn.takeWhile=function(e,t){return e&&e.length?mi(e,lo(t,3)):[]},Qn.tap=function(e,t){return t(e),e},Qn.throttle=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new Se(r);return rs(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),Oa(e,t,{leading:i,maxWait:t,trailing:o})},Qn.thru=ya,Qn.toArray=ms,Qn.toPairs=Ws,Qn.toPairsIn=Qs,Qn.toPath=function(e){return Ga(e)?jt(e,Uo):hs(e)?[e]:ji(Bo(Ms(e)))},Qn.toPlainObject=bs,Qn.transform=function(e,t,n){var r=Ga(e),i=r||Xa(e)||ds(e);if(t=lo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:rs(e)&&es(o)?Yn(Ge(e)):{}}return(i?Tt:Ar)(e,(function(e,r,i){return t(n,e,r,i)})),n},Qn.unary=function(e){return Sa(e,1)},Qn.union=ia,Qn.unionBy=oa,Qn.unionWith=aa,Qn.uniq=function(e){return e&&e.length?di(e):[]},Qn.uniqBy=function(e,t){return e&&e.length?di(e,lo(t,2)):[]},Qn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?di(e,n,t):[]},Qn.unset=function(e,t){return null==e||pi(e,t)},Qn.unzip=sa,Qn.unzipWith=ua,Qn.update=function(e,t,n){return null==e?e:fi(e,t,bi(n))},Qn.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:fi(e,t,bi(r),i)},Qn.values=Ys,Qn.valuesIn=function(e){return null==e?[]:Jt(e,zs(e))},Qn.without=ca,Qn.words=eu,Qn.wrap=function(e,t){return Ua(bi(t),e)},Qn.xor=la,Qn.xorBy=ha,Qn.xorWith=da,Qn.zip=pa,Qn.zipObject=function(e,t){return vi(e||[],t||[],rr)},Qn.zipObjectDeep=function(e,t){return vi(e||[],t||[],ti)},Qn.zipWith=fa,Qn.entries=Ws,Qn.entriesIn=Qs,Qn.extend=Es,Qn.extendWith=Ns,lu(Qn,Qn),Qn.add=bu,Qn.attempt=tu,Qn.camelCase=Fs,Qn.capitalize=Vs,Qn.ceil=Mu,Qn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=ws(r))==r?r:0),t!==n&&(t=(t=ws(t))==t?t:0),cr(ws(e),t,r)},Qn.clone=function(e){return lr(e,4)},Qn.cloneDeep=function(e){return lr(e,5)},Qn.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:n)},Qn.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:n)},Qn.conformsTo=function(e,t){return null==t||hr(e,t,Os(t))},Qn.deburr=Hs,Qn.defaultTo=function(e,t){return null==e||e!=e?t:e},Qn.divide=Au,Qn.endsWith=function(e,t,r){e=Ms(e),t=hi(t);var i=e.length,o=r=r===n?i:cr(gs(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},Qn.eq=Ya,Qn.escape=function(e){return(e=Ms(e))&&Z.test(e)?e.replace(G,nn):e},Qn.escapeRegExp=function(e){return(e=Ms(e))&&re.test(e)?e.replace(ne,"\\$&"):e},Qn.every=function(e,t,r){var i=Ga(e)?Lt:yr;return r&&Ao(e,t,r)&&(t=n),i(e,lo(t,3))},Qn.find=wa,Qn.findIndex=Ho,Qn.findKey=function(e,t){return Pt(e,lo(t,3),Ar)},Qn.findLast=ba,Qn.findLastIndex=Go,Qn.findLastKey=function(e,t){return Pt(e,lo(t,3),Er)},Qn.floor=Eu,Qn.forEach=Ma,Qn.forEachRight=Aa,Qn.forIn=function(e,t){return null==e?e:br(e,lo(t,3),zs)},Qn.forInRight=function(e,t){return null==e?e:Mr(e,lo(t,3),zs)},Qn.forOwn=function(e,t){return e&&Ar(e,lo(t,3))},Qn.forOwnRight=function(e,t){return e&&Er(e,lo(t,3))},Qn.get=xs,Qn.gt=Fa,Qn.gte=Va,Qn.has=function(e,t){return null!=e&&vo(e,t,xr)},Qn.hasIn=Ss,Qn.head=Zo,Qn.identity=au,Qn.includes=function(e,t,n,r){e=Za(e)?e:Ys(e),n=n&&!r?gs(n):0;var i=e.length;return n<0&&(n=bn(i+n,0)),ls(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Bt(e,t,n)>-1},Qn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:gs(n);return i<0&&(i=bn(r+i,0)),Bt(e,t,i)},Qn.inRange=function(e,t,r){return t=ys(t),r===n?(r=t,t=0):r=ys(r),function(e,t,n){return e>=Mn(t,n)&&e=-9007199254740991&&e<=d},Qn.isSet=cs,Qn.isString=ls,Qn.isSymbol=hs,Qn.isTypedArray=ds,Qn.isUndefined=function(e){return e===n},Qn.isWeakMap=function(e){return is(e)&&go(e)==j},Qn.isWeakSet=function(e){return is(e)&&"[object WeakSet]"==Lr(e)},Qn.join=function(e,t){return null==e?"":vn.call(e,t)},Qn.kebabCase=Gs,Qn.last=$o,Qn.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=gs(r))<0?bn(i+o,0):Mn(o,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Rt(e,Wt,o,!0)},Qn.lowerCase=qs,Qn.lowerFirst=Zs,Qn.lt=ps,Qn.lte=fs,Qn.max=function(e){return e&&e.length?gr(e,au,kr):n},Qn.maxBy=function(e,t){return e&&e.length?gr(e,lo(t,2),kr):n},Qn.mean=function(e){return Qt(e,au)},Qn.meanBy=function(e,t){return Qt(e,lo(t,2))},Qn.min=function(e){return e&&e.length?gr(e,au,Ur):n},Qn.minBy=function(e,t){return e&&e.length?gr(e,lo(t,2),Ur):n},Qn.stubArray=vu,Qn.stubFalse=wu,Qn.stubObject=function(){return{}},Qn.stubString=function(){return""},Qn.stubTrue=function(){return!0},Qn.multiply=Tu,Qn.nth=function(e,t){return e&&e.length?Vr(e,gs(t)):n},Qn.noConflict=function(){return ht._===this&&(ht._=We),this},Qn.noop=hu,Qn.now=xa,Qn.pad=function(e,t,n){e=Ms(e);var r=(t=gs(t))?hn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Hi(_t(i),n)+e+Hi(yt(i),n)},Qn.padEnd=function(e,t,n){e=Ms(e);var r=(t=gs(t))?hn(e):0;return t&&rt){var i=e;e=t,t=i}if(r||e%1||t%1){var o=Nn();return Mn(e+o*(t-e+st("1e-"+((o+"").length-1))),t)}return Jr(e,t)},Qn.reduce=function(e,t,n){var r=Ga(e)?Dt:Vt,i=arguments.length<3;return r(e,lo(t,4),n,i,fr)},Qn.reduceRight=function(e,t,n){var r=Ga(e)?Ot:Vt,i=arguments.length<3;return r(e,lo(t,4),n,i,mr)},Qn.repeat=function(e,t,r){return t=(r?Ao(e,t,r):t===n)?1:gs(t),Xr(Ms(e),t)},Qn.replace=function(){var e=arguments,t=Ms(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Qn.result=function(e,t,r){var i=-1,o=(t=Mi(t,e)).length;for(o||(o=1,e=n);++id)return[];var n=f,r=Mn(e,f);t=lo(t),e-=f;for(var i=Gt(r,t);++n=a)return e;var u=r-hn(i);if(u<1)return i;var c=s?Ei(s,0,u).join(""):e.slice(0,u);if(o===n)return c+i;if(s&&(u+=c.length-u),us(o)){if(e.slice(u).search(o)){var l,h=c;for(o.global||(o=ke(o.source,Ms(pe.exec(o))+"g")),o.lastIndex=0;l=o.exec(h);)var d=l.index;c=c.slice(0,d===n?u:d)}}else if(e.indexOf(hi(o),u)!=u){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+i},Qn.unescape=function(e){return(e=Ms(e))&&q.test(e)?e.replace(H,fn):e},Qn.uniqueId=function(e){var t=++Pe;return Ms(e)+t},Qn.upperCase=Ks,Qn.upperFirst=$s,Qn.each=Ma,Qn.eachRight=Aa,Qn.first=Zo,lu(Qn,(Nu={},Ar(Qn,(function(e,t){_e.call(Qn.prototype,t)||(Nu[t]=e)})),Nu),{chain:!1}),Qn.VERSION="4.17.21",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Qn[e].placeholder=Qn})),Tt(["drop","take"],(function(e,t){Hn.prototype[e]=function(r){r=r===n?1:bn(gs(r),0);var i=this.__filtered__&&!t?new Hn(this):this.clone();return i.__filtered__?i.__takeCount__=Mn(r,i.__takeCount__):i.__views__.push({size:Mn(r,f),type:e+(i.__dir__<0?"Right":"")}),i},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Tt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:lo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Tt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),Tt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(au)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new Hn(this):this.map((function(n){return Cr(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(Ra(lo(e)))},Hn.prototype.slice=function(e,t){e=gs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Hn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=gs(t))<0?r.dropRight(-t):r.take(t-e)),r)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(f)},Ar(Hn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=Qn[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(Qn.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,u=t instanceof Hn,c=s[0],l=u||Ga(t),h=function(e){var t=o.apply(Qn,Ct([e],s));return i&&d?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(u=l=!1);var d=this.__chain__,p=!!this.__actions__.length,f=a&&!d,m=u&&!p;if(!a&&l){t=m?t:new Hn(this);var y=e.apply(t,s);return y.__actions__.push({func:ya,args:[h],thisArg:n}),new Vn(y,d)}return f&&m?e.apply(this,s):(y=this.thru(h),f?i?y.value()[0]:y.value():y)})})),Tt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=je[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Qn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ga(i)?i:[],e)}return this[n]((function(n){return t.apply(Ga(n)?n:[],e)}))}})),Ar(Hn.prototype,(function(e,t){var n=Qn[t];if(n){var r=n.name+"";_e.call(Dn,r)||(Dn[r]=[]),Dn[r].push({name:t,func:n})}})),Dn[Qi(n,2).name]=[{name:"wrapper",func:n}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=ji(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ji(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ji(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ga(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Qn.prototype.plant=function(e){for(var t,r=this;r instanceof Fn;){var i=Qo(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},Qn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:ya,args:[ra],thisArg:n}),new Vn(t,this.__chain__)}return this.thru(ra)},Qn.prototype.toJSON=Qn.prototype.valueOf=Qn.prototype.value=function(){return yi(this.__wrapped__,this.__actions__)},Qn.prototype.first=Qn.prototype.head,at&&(Qn.prototype[at]=function(){return this}),Qn}();pt?((pt.exports=mn)._=mn,dt._=mn):ht._=mn}).call(Hp)})),yF="_DePayConnectDialogPreviouslyConnectedWallet",gF=function(e){localStorage[yF]=e},vF=function(e){var t,n,r=eL.useRef(),i=bI(eL.useState(),2),o=i[0],a=i[1],s=bI(eL.useState(),2),u=s[0],c=s[1],l=bI(eL.useState(),2),h=l[0],d=l[1],p=bI(eL.useState(),2),f=p[0],m=p[1],y=bI(eL.useState(),2),g=y[0],v=y[1],w=bI(eL.useState(),2),b=w[0],M=w[1],A=bI(eL.useState(),2);A[0],A[1];var E=bI(eL.useState(!1),2),N=E[0],T=E[1],I=bI(eL.useState(!1),2),L=I[0],k=I[1],x=bI(eL.useState(),2),S=x[0],j=x[1];eL.useContext(uF).navigate;var C=eL.useContext(rD).accept,D=eL.createElement("div",{className:"PaddingTopS PaddingLeftM PaddingRightM"},(null===(t=e.wallet)||void 0===t?void 0:t.logo)&&eL.createElement("div",{className:"PaddingTopXS"},eL.createElement("div",{className:"LineHeightL FontSizeL PaddingTopS"},eL.createElement("span",{className:"CardImage rounded large"},eL.createElement("img",{className:"transparent",src:e.wallet.logo}))))),O=function(){return new fF({width:340,height:340,type:"svg",dotsOptions:{type:"extra-rounded"},cornersSquareOptions:{type:"rounded"},backgroundOptions:{color:"transparent"}})},z=eL.useCallback(mF.debounce((function(){var t,n;if(null!==(t=e.platform)&&void 0!==t&&t.solanaPay&&C&&C.every((function(e){return e.amount})))return e.continueWithSolanaPay();if("function"==typeof e.platform.qr){var r=O();return r.update({data:e.platform.qr()}),void j(r)}switch(null===(n=e.platform)||void 0===n?void 0:n.qr){case"WalletConnectV1":case"WalletConnectV2":if(null==S){localStorage[atob("ZGVwYXk6d2FsbGV0czp3YzI6cHJvamVjdElk")]=atob("YjFmYzJmMDZlYTIxMDdmY2Q5OWM2OGY0MTI3MTQxYWI=");var i=new zT[e.platform.qr];i.connect({name:e.wallet.name,logo:e.wallet.logo,reconnect:!0,connect:function(e){var t=e.uri,n=O();n.update({data:t}),j(n)}}).then((function(t){e.resolve(t,i)}))}break;case"WalletLink":var o=new zT[e.platform.qr];o.connect({connect:function(e){var t=e.uri,n=O();n.update({data:t}),j(n)}}).then((function(t){e.resolve(t,o)}))}}),100),[]);return eL.useEffect((function(){gI(wI.mark((function t(){var n,r,i,o,s,u,l,h,p,f,y,g;return wI.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(l=!1,null===(n=e.wallet)||void 0===n||!n.extension){t.next=7;break}return t.next=4,zT[e.wallet.extension].isAvailable();case 4:l=t.sent,t.next=11;break;case 7:if(null===(r=e.wallet)||void 0===r||!r.extensions){t.next=11;break}return t.next=10,Promise.all(e.wallet.extensions.map(function(){var e=gI(wI.mark((function e(t){return wI.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,zT[t].isAvailable();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 10:l=t.sent.filter(Boolean)[0];case 11:if(a(l),null===(i=e.platform)||void 0===i||!i.connect){t.next=21;break}return t.next=15,zT[e.platform.connect].isAvailable();case 15:if(t.t1=t.sent,t.t1){t.next=18;break}t.t1=!1;case 18:t.t0=t.t1,t.next=22;break;case 21:t.t0=!1;case 22:h=t.t0,M(h),p=!!e.platform&&e.platform.connect,c(p),f=!(null===(o=e.platform)||void 0===o||!o.copyLink),m(f),y=!!e.platform&&e.platform.open,d(y),g=(null===(s=e.platform)||void 0===s?void 0:s.solanaPay)&&C&&C.every((function(e){return e.amount}))||(null===(u=e.platform)||void 0===u?void 0:u.qr)&&(!N||"WalletLink"===e.platform.qr),v(g);case 32:case"end":return t.stop()}}),t)})))()}),[]),eL.useEffect((function(){var t,n,r,i;void 0!==b&&T(!o&&!pF()&&!(null!==(t=e.wallet)&&void 0!==t&&null!==(n=t.desktop)&&void 0!==n&&n.native)&&((null===(r=e.platform)||void 0===r?void 0:r.qr)||(null===(i=e.platform)||void 0===i?void 0:i.solanaPay)))}),[o,b]),eL.useEffect((function(){var t,n;N&&(null!==(t=e.platform)&&void 0!==t&&t.qr||null!==(n=e.platform)&&void 0!==n&&n.solanaPay)&&z()}),[N]),eL.useEffect((function(){N&&S&&r&&r.current&&(r.current.innerHTML="",S.append(r.current))}),[S]),N&&null!==(n=e.platform)&&void 0!==n&&n.solanaPay&&C&&C.every((function(e){return e.amount}))?null:eL.createElement(dF,{stacked:!0,header:D,footer:!1,body:eL.createElement("div",{className:"TextCenter PaddingBottomS"},eL.createElement("div",{className:"PaddingLeftL PaddingRightL"},eL.createElement("h1",{className:"LineHeightL Text FontSizeL FontWeightBold"},"Connect ",e.wallet.name)),!window.location.protocol.match("https")&&eL.createElement("div",{className:"PaddingTopS PaddingLeftL PaddingRightL"},eL.createElement("div",{className:"Alert FontSizeS"},eL.createElement("strong",null,"Most wallets do not connect to http!"))),!o&&!u&&!h&&!f&&!g&&eL.createElement("div",{className:"PaddingTopS PaddingBottomS PaddingLeftL PaddingRightL"},eL.createElement("div",{className:"Alert FontSizeS"},eL.createElement("strong",null,"Unable to connect to this wallet!"))),N&&eL.createElement("div",null,eL.createElement("div",{ref:r,className:"QRCode"},N&&void 0===S&&eL.createElement("div",{className:"PaddingTopS"},eL.createElement("div",{className:"Skeleton",style:{borderRadius:"18px",width:"305px",height:"305px"}},eL.createElement("div",{className:"SkeletonBackground"})))),N&&void 0===S&&eL.createElement("div",{className:"Opacity05 PaddingBottomXS PaddingTopS"},eL.createElement("small",null,"Generating QR code...")),N&&void 0!==S&&eL.createElement("div",{className:"Opacity05 PaddingBottomXS PaddingTopXS"},eL.createElement("small",null,"Scan QR code with your wallet")),(o||u||h||f)&&eL.createElement("div",null,eL.createElement("div",{className:"PaddingBottomXS PaddingTopS Opacity03",style:{display:"flex"}},eL.createElement("div",{style:{borderBottom:"1px solid black",flex:"0.4",position:"relative",top:"-9px"},className:"Opacity05"}),eL.createElement("div",{style:{flex:"0.2"},className:"PaddingLeftXS PaddingRightXS"},eL.createElement("small",null,"or")),eL.createElement("div",{style:{borderBottom:"1px solid black",flex:"0.4",position:"relative",top:"-9px"},className:"Opacity05"})))),(o||u||h||g&&!N||f)&&eL.createElement("div",{className:"PaddingLeftL PaddingRightL PaddingTopS PaddingBottomS"},o&&eL.createElement("div",{className:"PaddingBottomXS"},e.showConnectExtensionWarning&&eL.createElement("div",{className:"PaddingTopS PaddingBottomS PaddingLeftS PaddingRightS"},eL.createElement("div",{className:"Alert"},eL.createElement("span",{className:"FontWeightBold PaddingBottomXS"},"You wallet extension window is already asking to connect. It might be hidden."))),e.connectingExtension&&eL.createElement("div",{className:"Card disabled small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},eL.createElement("div",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},eL.createElement("div",{className:"Loading Icon medium",style:{position:"relative",top:"4px",left:"1px"}})),eL.createElement("div",{className:"PaddingLeftS LineHeightXS"},eL.createElement("div",{className:"CardText FontWeightMedium"},"Connecting extension"))),!e.connectingExtension&&eL.createElement("button",{onClick:function(){return e.connectExtension(e.wallet)},className:"Card small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},eL.createElement("span",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},eL.createElement("img",{className:"transparent ",title:"Connect your wallet",style:{height:"26px"},src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAyNTAgMjUwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyNTAgMjUwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPHBhdGggZD0iTTE3Mi44LDY4LjNjLTQuOS0yLjItNy40LTguNC00LjUtMTMuNmM1LjMtOS40LDEwLTE4LjYsNC4zLTI5LjFjLTctMTIuNy0yNC4xLTE3LjQtMzYuNi0xMGMtMTUuNCw5LjEtMTMuNCwyNS42LTUuMSwzOC45CgkJYzMuMyw1LjIsMC45LDExLjYtNC4yLDEzLjlsLTYxLjIsMC4xbDAsMC44bDAuMSwyMS44bDAuMSwzNy45Yy0xLjksNS41LTguNyw4LjQtMTQuMSw1Yy0xMy40LTguMy0yOS44LTEwLjEtMzguOSw1LjMKCQljLTcuMywxMi41LTIuNSwyOS43LDEwLjIsMzYuNWMxMC41LDUuNywxOS43LDEsMjkuMS00LjRjNS40LTMuMSwxMS45LTAuMywxMy44LDVsMC4xLDU5LjhsNTcuMi0wLjFjMC4xLDAsMC4yLDAsMC4zLDBsMy42LDAKCQljNS0yLjMsNy40LTguNyw0LjItMTMuOWMtOC4zLTEzLjMtMTAuMy0yOS44LDUuMS0zOC45YzEyLjUtNy40LDI5LjYtMi43LDM2LjYsMTBjNS43LDEwLjUsMS4xLDE5LjctNC4zLDI5LjEKCQljLTIuOSw1LjItMC41LDExLjQsNC41LDEzLjZsMy42LDBjMC4xLDAsMC4yLDAsMC4zLDBsNTYuNS0wLjFsLTAuMS01OC44Yy0xLjQtNi42LTcuOC05LjItMTQuMS01LjhjLTkuNSw1LjItMTcuOSw5LjgtMjguNCw0LjEKCQljLTEyLjgtNi45LTE4LjItMjMuNy0xMC45LTM2LjNjOS0xNS40LDI1LjUtMTMuNiwzOC45LTUuM2M1LjcsMy41LDEyLjksMC4yLDE0LjQtNS45bC0wLjEtMzUuNEwyMzMuMyw2OWwwLTAuOEwxNzIuOCw2OC4zeiIvPgo8L2c+Cjwvc3ZnPgo="})),eL.createElement("div",{className:"PaddingLeftS LineHeightXS"},eL.createElement("div",{className:"CardText FontWeightMedium"},"Connect extension")))),u&&eL.createElement("div",{className:"PaddingBottomXS"},e.connectingApp&&eL.createElement("div",{className:"Card disabled small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},eL.createElement("div",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},eL.createElement("div",{className:"Loading Icon medium",style:{position:"relative",top:"2px",left:"0px"}})),eL.createElement("div",{className:"PaddingLeftS LineHeightXS"},eL.createElement("div",{className:"CardText FontWeightMedium"},"Connecting app"))),!e.connectingApp&&eL.createElement("button",{onClick:function(){return e.connectViaRedirect(e.wallet)},className:"Card small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},eL.createElement("span",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},eL.createElement("img",{className:"transparent ",title:"Click to connect app",style:{height:"26px",width:"26px",borderRadius:"8px"},src:e.wallet.logo})),eL.createElement("div",{className:"PaddingLeftS LineHeightXS"},eL.createElement("div",{className:"CardText FontWeightMedium"},"Connect app")))),h&&eL.createElement("div",{className:"PaddingBottomXS"},eL.createElement("button",{onClick:function(){return e.openInApp(e.wallet)},className:"Card small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},eL.createElement("span",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},eL.createElement("img",{className:"transparent ",title:"Click to open in app",style:{height:"26px",width:"26px",borderRadius:"8px"},src:e.wallet.logo})),eL.createElement("div",{className:"PaddingLeftS LineHeightXS"},eL.createElement("div",{className:"CardText FontWeightMedium"},"Open in app")))),g&&!N&&eL.createElement("div",{className:"PaddingBottomXS"},eL.createElement("button",{onClick:function(){T(!0),z()},className:"Card small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},eL.createElement("span",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},eL.createElement("img",{className:"transparent ",title:"Scan QR code to connect a mobile wallet",style:{height:"26px"},src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHN2ZyAgUFVCTElDICctLy9XM0MvL0RURCBTVkcgMS4xLy9FTicgICdodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQnPgo8c3ZnIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDEwMDAgMTAwMCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIwIDAgMWUzIDFlMyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1ldGFkYXRhPiBTdmcgVmVjdG9yIEljb25zIDogaHR0cDovL3d3dy5vbmxpbmV3ZWJmb250cy5jb20vaWNvbiA8L21ldGFkYXRhPgo8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDUxMSkgc2NhbGUoLjEgLS4xKSI+PHBhdGggZD0ibTEwMCAyNzk3LjF2LTIyMTIuOWg0NDI1Ljh2NDQyNS44aC00NDI1Ljh2LTIyMTIuOXptMzQ3Ny40IDB2LTEyNjQuNWgtMjUyOXYyNTI5aDI1Mjl2LTEyNjQuNXoiLz48cGF0aCBkPSJtMTY4MC42IDI3OTcuMXYtNjMyLjNoMTI2NC42djEyNjQuNmgtMTI2NC42di02MzIuM3oiLz48cGF0aCBkPSJtNTQ3NC4yIDI3OTcuMXYtMjIxMi45aDQ0MjUuOHY0NDI1LjhoLTQ0MjUuOHYtMjIxMi45em0zNDc3LjQgMHYtMTI2NC41aC0yNTI5djI1MjloMjUyOXYtMTI2NC41eiIvPjxwYXRoIGQ9Im03MDU0LjggMjc5Ny4xdi02MzIuM2gxMjY0LjZ2MTI2NC42aC0xMjY0LjZ2LTYzMi4zeiIvPjxwYXRoIGQ9Im0xMDAtMjU3Ny4xdi0yMjEyLjloNDQyNS44djQ0MjUuOGgtNDQyNS44di0yMjEyLjl6bTM0NzcuNCAwdi0xMjY0LjVoLTI1Mjl2MjUyOWgyNTI5di0xMjY0LjV6Ii8+PHBhdGggZD0ibTE2ODAuNi0yNTc3LjF2LTYzMi4zaDEyNjQuNnYxMjY0LjZoLTEyNjQuNnYtNjMyLjN6Ii8+PHBhdGggZD0ibTU0NzQuMi05MTcuNHYtNTUzLjJoMTEwNi40di0xMTA2LjRoLTExMDYuNHYtMTEwNi40aDExMDYuNHYtMTEwNi42aDExMDYuNHYxMTA2LjRoMTEwNi40di0xMTA2LjRoMTEwNi42djExMDYuNGgtMTEwNi40djExMDYuNGgxMTA2LjR2MTEwNi40aC0xMTA2LjR2MTEwNi40aC0xMTA2LjR2LTExMDYuNGgtMTEwNi40djExMDYuNGgtMTEwNi40di01NTN6bTMzMTkuMy0xMTA2LjV2LTU1My4yaC0xMTA2LjR2LTExMDYuNGgtMTEwNi40djExMDYuNGgxMTA2LjR2MTEwNi40aDExMDYuNHYtNTUzLjJ6Ii8+PC9nPgo8L3N2Zz4K"})),eL.createElement("div",{className:"PaddingLeftS LineHeightXS"},eL.createElement("div",{className:"CardText FontWeightMedium"},"Scan QR code")))),f&&eL.createElement("div",{className:"PaddingBottomXS TooltipWrapper"},eL.createElement("button",{onClick:function(){var t=new zT[e.platform.copyLink];t.connect({name:e.wallet.name,logo:e.wallet.logo,reconnect:!0,connect:function(e){!function(e,t){const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0&&document.getSelection().getRangeAt(0);n.select();let i=!1;try{i=!!document.execCommand("copy")}catch(e){i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}(e.uri),k(!0),setTimeout((function(){return k(!1)}),3e3)}}).then((function(n){e.resolve(n,t)}))},className:"Card small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},eL.createElement("span",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},eL.createElement("img",{className:"transparent ",title:"Copy connection link",style:{height:"26px"},src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB3aWR0aD0iNTEycHgiIGhlaWdodD0iNTEycHgiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwYXRoIGZpbGw9IiMwMTAxMDEiIGQ9Ik00NTkuNjU0LDIzMy4zNzNsLTkwLjUzMSw5MC41Yy00OS45NjksNTAtMTMxLjAzMSw1MC0xODEsMGMtNy44NzUtNy44NDQtMTQuMDMxLTE2LjY4OC0xOS40MzgtMjUuODEzDQoJbDQyLjA2My00Mi4wNjNjMi0yLjAxNiw0LjQ2OS0zLjE3Miw2LjgyOC00LjUzMWMyLjkwNiw5LjkzOCw3Ljk4NCwxOS4zNDQsMTUuNzk3LDI3LjE1NmMyNC45NTMsMjQuOTY5LDY1LjU2MywyNC45MzgsOTAuNSwwDQoJbDkwLjUtOTAuNWMyNC45NjktMjQuOTY5LDI0Ljk2OS02NS41NjMsMC05MC41MTZjLTI0LjkzOC0yNC45NTMtNjUuNTMxLTI0Ljk1My05MC41LDBsLTMyLjE4OCwzMi4yMTkNCgljLTI2LjEwOS0xMC4xNzItNTQuMjUtMTIuOTA2LTgxLjY0MS04Ljg5MWw2OC41NzgtNjguNTc4YzUwLTQ5Ljk4NCwxMzEuMDMxLTQ5Ljk4NCwxODEuMDMxLDANCglDNTA5LjYyMywxMDIuMzQyLDUwOS42MjMsMTgzLjM4OSw0NTkuNjU0LDIzMy4zNzN6IE0yMjAuMzI2LDM4Mi4xODZsLTMyLjIwMywzMi4yMTljLTI0Ljk1MywyNC45MzgtNjUuNTYzLDI0LjkzOC05MC41MTYsMA0KCWMtMjQuOTUzLTI0Ljk2OS0yNC45NTMtNjUuNTYzLDAtOTAuNTMxbDkwLjUxNi05MC41YzI0Ljk2OS0yNC45NjksNjUuNTQ3LTI0Ljk2OSw5MC41LDBjNy43OTcsNy43OTcsMTIuODc1LDE3LjIwMywxNS44MTMsMjcuMTI1DQoJYzIuMzc1LTEuMzc1LDQuODEzLTIuNSw2LjgxMy00LjVsNDIuMDYzLTQyLjA0N2MtNS4zNzUtOS4xNTYtMTEuNTYzLTE3Ljk2OS0xOS40MzgtMjUuODI4Yy00OS45NjktNDkuOTg0LTEzMS4wMzEtNDkuOTg0LTE4MS4wMTYsMA0KCWwtOTAuNSw5MC41Yy00OS45ODQsNTAtNDkuOTg0LDEzMS4wMzEsMCwxODEuMDMxYzQ5Ljk4NCw0OS45NjksMTMxLjAzMSw0OS45NjksMTgxLjAxNiwwbDY4LjU5NC02OC41OTQNCglDMjc0LjU2MSwzOTUuMDkyLDI0Ni40MiwzOTIuMzQyLDIyMC4zMjYsMzgyLjE4NnoiLz4NCjwvc3ZnPg0K"})),eL.createElement("div",{className:"PaddingLeftS LineHeightXS"},eL.createElement("div",{className:"CardText FontWeightMedium"},"Copy connection link"))),L&&eL.createElement("div",{className:"Tooltip absolute top"},eL.createElement("span",{className:"TooltipArrowDown"}),"Connection link copied"))))})},wF=function(){return navigator.userAgent.toLowerCase().includes("android")},bF=function(){var e=navigator.userAgent.toLowerCase();return e.includes("webview")||e.includes("wv")||navigator.userAgent.toLowerCase().match(/\) mobile\//)&&!e.includes("safari")},MF=function(e){var t,n;if(pF()){if(wF())t=null===(n=e.mobile)||void 0===n?void 0:n.android;else if(Boolean(/iPad|iPhone|iPod/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)){var r;t=null===(r=e.mobile)||void 0===r?void 0:r.ios}}else t=e.desktop;return t},AF=function(){return eL.createElement("div",{className:"PoweredByWrapper"},eL.createElement("a",{href:"https://depay.com",rel:"noopener noreferrer",target:"_blank",className:"PoweredByLink"},"by DePay"))},EF=function(e){var t,n=e.wallet.extensions.map((function(e){return zT[e].info.blockchains})).flat();e.accept&&(n=n.filter((function(t){return e.accept.some((function(e){return e.blockchain===t}))})));return eL.createElement(dF,{header:eL.createElement("div",{className:"PaddingTopS PaddingBottomS PaddingLeftM PaddingRightM"},(null===(t=e.wallet)||void 0===t?void 0:t.logo)&&eL.createElement("div",{className:"PaddingTopXS"},eL.createElement("div",{className:"LineHeightL FontSizeL PaddingTopS"},eL.createElement("span",{className:"CardImage rounded large"},eL.createElement("img",{className:"transparent",src:e.wallet.logo})))),eL.createElement("div",null,eL.createElement("h1",{className:"LineHeightL Text FontSizeL FontWeightBold"},"Select Blockchain"))),stacked:!0,bodyClassName:"ScrollHeight",body:eL.createElement("div",null,n.map((function(t){return eL.createElement("div",{key:t,className:"Card Row TextLeft",onClick:function(){return function(t){e.onSelect(e.wallet.extensions.find((function(e){return zT[e].info.blockchains.includes(t)})))}(t)}},eL.createElement("div",{className:"CardImage"},eL.createElement("img",{className:"transparent BlockchainLogo",src:Vp[t].logo,style:{backgroundColor:Vp[t].logoBackgroundColor}})),eL.createElement("div",{className:"CardBody"},eL.createElement("span",{className:"CardText"},Vp[t].label)))}))),footer:null})};function NF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var TF=function(e){var t=bI(eL.useState(0),2),n=t[0],r=t[1];return eL.useEffect((function(){var t=function(){r(n+1),0!=n&&e.hide()};return window.addEventListener("click",t),function(){window.removeEventListener("click",t)}}),[e.open,n]),eL.createElement("div",{className:"DropDown ".concat(e.open?"open":"")},eL.createElement("ul",null,e.items.map((function(e,t){return eL.createElement("li",{key:t},eL.createElement("button",{className:"DropDownItem",onClick:function(){return e.action()}},e.label))}))))},IF=function(e){return eL.createElement("svg",{className:"MenuIcon Icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"},eL.createElement("line",{x1:"11.6",y1:"17.6",x2:"11.6",y2:"17.6"}),eL.createElement("line",{x1:"11.6",y1:"11.8",x2:"11.6",y2:"11.8"}),eL.createElement("line",{x1:"11.6",y1:"6.2",x2:"11.6",y2:"6.2"}))};function LF(e){return Array.isArray?Array.isArray(e):"[object Array]"===OF(e)}function kF(e){return"string"==typeof e}function xF(e){return"number"==typeof e}function SF(e){return!0===e||!1===e||function(e){return jF(e)&&null!==e}(e)&&"[object Boolean]"==OF(e)}function jF(e){return"object"==typeof e}function CF(e){return null!=e}function DF(e){return!e.trim().length}function OF(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const zF=Object.prototype.hasOwnProperty;class _F{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=PF(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function PF(e){let t=null,n=null,r=null,i=1,o=null;if(kF(e)||LF(e))r=e,t=RF(e),n=BF(e);else{if(!zF.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const a=e.name;if(r=a,zF.call(e,"weight")&&(i=e.weight,i<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(a));t=RF(a),n=BF(a),o=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:o}}function RF(e){return LF(e)?e:e.split(".")}function BF(e){return LF(e)?e.join("."):e}var UF={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx{if(CF(e))if(t[o]){const a=e[t[o]];if(!CF(a))return;if(o===t.length-1&&(kF(a)||xF(a)||SF(a)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(a));else if(LF(a)){r=!0;for(let e=0,n=a.length;e{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,kF(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();kF(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(CF(i))if(LF(i)){let e=[];const t=[{nestedArrIndex:-1,value:i}];for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop();if(CF(r))if(kF(r)&&!DF(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else LF(r)&&r.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[r]=e}else if(kF(i)&&!DF(i)){let e={v:i,n:this.norm.get(i)};n.$[r]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function YF(e,t,{getFn:n=UF.getFn,fieldNormWeight:r=UF.fieldNormWeight}={}){const i=new QF({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(PF)),i.setSources(t),i.create(),i}function FF(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:i=UF.distance,ignoreLocation:o=UF.ignoreLocation}={}){const a=t/e.length;if(o)return a;const s=Math.abs(r-n);return i?a+s/i:s?1:a}function VF(e,t,n,{location:r=UF.location,distance:i=UF.distance,threshold:o=UF.threshold,findAllMatches:a=UF.findAllMatches,minMatchCharLength:s=UF.minMatchCharLength,includeMatches:u=UF.includeMatches,ignoreLocation:c=UF.ignoreLocation}={}){if(t.length>32)throw new Error((e=>`Pattern length exceeds max of ${e}.`)(32));const l=t.length,h=e.length,d=Math.max(0,Math.min(r,h));let p=o,f=d;const m=s>1||u,y=m?Array(h):[];let g;for(;(g=e.indexOf(t,f))>-1;){let e=FF(t,{currentLocation:g,expectedLocation:d,distance:i,ignoreLocation:c});if(p=Math.min(e,p),f=g+l,m){let e=0;for(;e=u;o-=1){let a=o-1,s=n[e.charAt(a)];if(m&&(y[a]=+!!s),A[o]=(A[o+1]<<1|1)&s,r&&(A[o]|=(v[o+1]|v[o])<<1|1|v[o+1]),A[o]&M&&(w=FF(t,{errors:r,currentLocation:a,expectedLocation:d,distance:i,ignoreLocation:c}),w<=p)){if(p=w,f=a,f<=d)break;u=Math.max(1,2*d-f)}}if(FF(t,{errors:r+1,currentLocation:d,expectedLocation:d,distance:i,ignoreLocation:c})>p)break;v=A}const A={isMatch:f>=0,score:Math.max(.001,w)};if(m){const e=function(e=[],t=UF.minMatchCharLength){let n=[],r=-1,i=-1,o=0;for(let a=e.length;o=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}(y,s);e.length?u&&(A.indices=e):A.isMatch=!1}return A}function HF(e){let t={};for(let n=0,r=e.length;n{this.chunks.push({pattern:e,alphabet:HF(e),startIndex:t})},l=this.pattern.length;if(l>32){let e=0;const t=l%32,n=l-t;for(;e{const{isMatch:f,score:m,indices:y}=VF(e,t,d,{location:r+p,distance:i,threshold:o,findAllMatches:a,minMatchCharLength:s,includeMatches:n,ignoreLocation:u});f&&(h=!0),l+=m,f&&y&&(c=[...c,...y])}));let d={isMatch:h,score:h?l/this.chunks.length:1};return h&&n&&(d.indices=c),d}}class qF{constructor(e){this.pattern=e}static isMultiMatch(e){return ZF(e,this.multiRegex)}static isSingleMatch(e){return ZF(e,this.singleRegex)}search(){}}function ZF(e,t){const n=e.match(t);return n?n[1]:null}class JF extends qF{constructor(e,{location:t=UF.location,threshold:n=UF.threshold,distance:r=UF.distance,includeMatches:i=UF.includeMatches,findAllMatches:o=UF.findAllMatches,minMatchCharLength:a=UF.minMatchCharLength,isCaseSensitive:s=UF.isCaseSensitive,ignoreLocation:u=UF.ignoreLocation}={}){super(e),this._bitapSearch=new GF(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class XF extends qF{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const r=[],i=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);const o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}const KF=[class extends qF{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},XF,class extends qF{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends qF{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends qF{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends qF{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends qF{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},JF],$F=KF.length,eV=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const tV=new Set([JF.type,XF.type]);class nV{constructor(e,{isCaseSensitive:t=UF.isCaseSensitive,includeMatches:n=UF.includeMatches,minMatchCharLength:r=UF.minMatchCharLength,ignoreLocation:i=UF.ignoreLocation,findAllMatches:o=UF.findAllMatches,location:a=UF.location,threshold:s=UF.threshold,distance:u=UF.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:r,findAllMatches:o,ignoreLocation:i,location:a,threshold:s,distance:u},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let n=e.trim().split(eV).filter((e=>e&&!!e.trim())),r=[];for(let e=0,i=n.length;e!(!e[oV]&&!e[aV]),lV=e=>({[oV]:Object.keys(e).map((t=>({[t]:e[t]})))});function hV(e,t,{auto:n=!0}={}){const r=e=>{let i=Object.keys(e);const o=(e=>!!e[sV])(e);if(!o&&i.length>1&&!cV(e))return r(lV(e));if((e=>!LF(e)&&jF(e)&&!cV(e))(e)){const r=o?e[sV]:i[0],a=o?e[uV]:e[r];if(!kF(a))throw new Error((e=>`Invalid value for key ${e}`)(r));const s={keyId:BF(r),pattern:a};return n&&(s.searcher=iV(a,t)),s}let a={children:[],operator:i[0]};return i.forEach((t=>{const n=e[t];LF(n)&&n.forEach((e=>{a.children.push(r(e))}))})),a};return cV(e)||(e=lV(e)),r(e)}function dV(e,t){const n=e.matches;t.matches=[],CF(n)&&n.forEach((e=>{if(!CF(e.indices)||!e.indices.length)return;const{indices:n,value:r}=e;let i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)}))}function pV(e,t){t.score=e.score}class fV{constructor(e,t={},n){this.options={...UF,...t},this.options.useExtendedSearch,this._keyStore=new _F(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof QF))throw new Error("Incorrect 'index' type");this._myIndex=t||YF(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){CF(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let n=0,r=this._docs.length;n{let n=1;e.matches.forEach((({key:e,norm:r,score:i})=>{const o=e?e.weight:null;n*=Math.pow(0===i&&o?Number.EPSILON:i,(o||1)*(t?1:r))})),e.score=n}))}(s,{ignoreFieldNorm:a}),i&&s.sort(o),xF(t)&&t>-1&&(s=s.slice(0,t)),function(e,t,{includeMatches:n=UF.includeMatches,includeScore:r=UF.includeScore}={}){const i=[];return n&&i.push(dV),r&&i.push(pV),e.map((e=>{const{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach((t=>{t(e,r)})),r}))}(s,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){const t=iV(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((({v:e,i:n,n:i})=>{if(!CF(e))return;const{isMatch:o,score:a,indices:s}=t.searchIn(e);o&&r.push({item:e,idx:n,matches:[{score:a,value:e,norm:i,indices:s}]})})),r}_searchLogical(e){const t=hV(e,this.options),n=(e,t,r)=>{if(!e.children){const{keyId:n,searcher:i}=e,o=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i});return o&&o.length?[{idx:r,item:t,matches:o}]:[]}const i=[];for(let o=0,a=e.children.length;o{if(CF(e)){let a=n(t,e,r);a.length&&(i[r]||(i[r]={idx:r,item:e,matches:[]},o.push(i[r])),a.forEach((({matches:e})=>{i[r].matches.push(...e)})))}})),o}_searchObjectList(e){const t=iV(e,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach((({$:e,i:r})=>{if(!CF(e))return;let o=[];n.forEach(((n,r)=>{o.push(...this._findMatches({key:n,value:e[r],searcher:t}))})),o.length&&i.push({idx:r,item:e,matches:o})})),i}_findMatches({key:e,value:t,searcher:n}){if(!CF(t))return[];let r=[];if(LF(t))t.forEach((({v:t,i:i,n:o})=>{if(!CF(t))return;const{isMatch:a,score:s,indices:u}=n.searchIn(t);a&&r.push({score:s,key:e,value:t,idx:i,norm:o,indices:u})}));else{const{v:i,n:o}=t,{isMatch:a,score:s,indices:u}=n.searchIn(i);a&&r.push({score:s,key:e,value:i,norm:o,indices:u})}return r}} +qp((function(e,t){}));var rF=qp((function(e){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=nF}));const iF="/Users/sebastian/Work/DePay/react-dialog/src/components/Dialog.jsx";class oF extends eL.Component{constructor(e){super(e),this.handler=this.onKeyDown.bind(this),this.state={open:!0}}closeDialog(){this.props.close()}onKeyDown(e){"Escape"===e.key&&this.closeDialog()}componentDidUpdate(e){!1===this.props.open&&!0===e.open&&this.setState({open:!1})}onClickBackground(e){this.closeDialog()}componentDidMount(){!1===this.props.animate?this.setState({open:!0}):this.setState({open:!1},(()=>{setTimeout((()=>{this.setState({open:!0})}),10)})),this.props.document.addEventListener("keydown",this.handler,!0)}componentWillUnmount(){this.props.document.removeEventListener("keydown",this.handler,!0)}render(){const e=["ReactDialog",this.state.open?"ReactDialogOpen":""],t=`\n .ReactDialog {\n bottom: 0;\n display: flex;\n height: 100%;\n height: 100vh;\n left: 0;\n min-height: 100%;\n min-height: 100vh;\n overflow: hidden;\n position: fixed;\n right: 0;\n top: 0;\n width: 100%;\n width: 100vw;\n }\n\n .ReactDialogInner {\n align-items: center;\n display: flex;\n flex: 1;\n justify-content: center;\n }\n\n .ReactDialogBackground {\n background: ${"object"==typeof(n={background:this.props.background})&&n.background?n.background:"rgba(0,0,0,0.4)"};\n bottom: 0;\n display: block;\n height: 100%;\n left: 0;\n opacity: 0;\n position: fixed;\n right: 0;\n top: 0;\n transition: opacity 0.4s ease;\n width: 100%;\n }\n\n .ReactDialog.ReactDialogOpen .ReactDialogBackground {\n opacity: 1;\n }\n\n .ReactDialogAnimation {\n display: inline-block;\n position: relative;\n opacity: 0;\n top: -17vh;\n transition: opacity 0.4s ease, top 0.4s ease;\n }\n\n .ReactDialog.ReactDialogOpen .ReactDialogAnimation {\n opacity: 1.0;\n top: -5vh;\n }\n `;var n;return eL.createElement("div",{key:this.props.dialogKey,className:e.join(" "),__self:this,__source:{fileName:iF,lineNumber:59}},eL.createElement("style",{__self:this,__source:{fileName:iF,lineNumber:60}},t),eL.createElement("div",{className:"ReactDialogInner",__self:this,__source:{fileName:iF,lineNumber:61}},eL.createElement("div",{className:"ReactDialogBackground",onClick:this.onClickBackground.bind(this),__self:this,__source:{fileName:iF,lineNumber:62}}),this.props.children))}}class aF extends eL.Component{constructor(e){super(e),this.state={open:e.open}}componentDidUpdate(e){!1===this.props.open&&!0===e.open?setTimeout((()=>{this.setState({open:!1})}),400):!0===this.props.open&&!1===e.open&&this.setState({open:!0})}render(){let e=this.props.document||document,t=this.props.container||e.body;return this.state.open?rF.createPortal(eL.createElement(oF,{background:this.props.background,close:this.props.close,document:e,open:this.props.open,animate:this.props.animate,__self:this,__source:{fileName:"/Users/sebastian/Work/DePay/react-dialog/src/index.jsx",lineNumber:29}},this.props.children),t):null}}var sF=eL.createContext(),uF=eL.createContext();var cF=eL.createContext();const lF="/Users/sebastian/Work/DePay/react-dialog-stack/src/index.jsx";class hF extends eL.Component{constructor(e){if(super(e),e.setNavigator&&e.setNavigator(this),e.stacked){const t="string"==typeof e.stacked?e.stacked:"forward";this.state={stack:[],animating:!1,animation:null,direction:t,animationSpeed:200},setTimeout((()=>this.navigate(e.start,t)),10)}else this.state={stack:[e.start],animating:!1,animation:null,direction:"forward",animationSpeed:200}}set(e){this.setState({stack:e})}hide(e="forward"){"backward"===e?(this.setState({stack:[null,...this.state.stack]}),setTimeout((()=>this.navigate("back")),10)):this.navigate(null)}navigate(e,t="forward"){if(!(this.state.stack.indexOf(e)>-1))return"back"===e?this.unstack():void this.setState({stack:this.state.stack.concat(e),animating:!0,direction:t,animation:setTimeout(function(){this.setState({animating:!1})}.bind(this),this.state.animationSpeed)})}unstack(){if(this.state.stack.length<=1)return;let e=[...this.state.stack];e.pop(),this.setState({animating:!0,direction:"backward",animation:setTimeout(function(){this.setState({stack:e,animating:!1})}.bind(this),this.state.animationSpeed)})}classForState(e){if(!this.state.animating)return 1===this.state.stack.length||this.state.stack.length===e+1?"active":"inactive"}classForPosition(e){return this.state.stack.length>1?this.state.stack.length===e+1?"forward"===this.state.direction?"next":"previous":this.state.stack.length-1===e+1?"forward"===this.state.direction?"previous":"next":"stale":this.state.animating&&this.props.stacked&&0===e?"next":void 0}classForAnimation(){if(this.state.animating)return"animating"}classForDirection(){return this.state.direction}renderStack(){return this.state.stack.map(function(e,t){let n=[this.classForState(t),this.classForPosition(t),this.classForAnimation(),this.classForDirection()];return eL.createElement("div",{key:t,className:["ReactDialogStack"].concat(n).join(" "),onClick:this.onClick.bind(this),__self:this,__source:{fileName:lF,lineNumber:153}},eL.createElement(uF.Provider,{value:{navigate:this.navigate.bind(this),set:this.set.bind(this),hide:this.hide.bind(this)},__self:this,__source:{fileName:lF,lineNumber:158}},eL.createElement(sF.Provider,{value:this.close.bind(this),__self:this,__source:{fileName:lF,lineNumber:161}},eL.createElement(cF.Provider,{value:this.state.stack,__self:this,__source:{fileName:lF,lineNumber:162}},eL.createElement("div",{className:"ReactDialogAnimation",__self:this,__source:{fileName:lF,lineNumber:163}},this.props.dialogs[e])))))}.bind(this))}onClick(e){e.target&&e.target.className&&e.target.className.match&&e.target.className.match("ReactDialogStack")&&(this.state.stack.length>1?this.unstack():this.close())}close(e){this.state.stack.length>1&&!e?this.unstack():(this.props.close(),setTimeout((()=>this.setState({stack:this.state.stack.slice(0,1)})),400))}render(){return eL.createElement(aF,{close:this.close.bind(this),open:this.props.open,document:this.props.document,container:this.props.container,animate:!this.props.stacked,background:this.props.background,__self:this,__source:{fileName:lF,lineNumber:199}},eL.createElement("style",{__self:this,__source:{fileName:lF,lineNumber:207}},"\n\n .ReactDialogStack {\n align-items: center;\n bottom: 0;\n display: flex;\n flex: 1;\n height: 100%;\n justify-content: center;\n position: absolute;\n top: 0;\n transition: left 0.1s ease, opacity 0.2s ease;\n width: 100%;\n }\n\n .ReactDialogStackRow {\n display: table-row;\n }\n\n .ReactDialogStackCell {\n display: table-cell;\n vertical-align: middle;\n padding: 0 0.6rem;\n }\n\n .ReactDialogStack {\n left: 0;\n opacity: 1;\n }\n\n .ReactDialogStack.inactive {\n display: none;\n }\n\n .ReactDialogStack.animating.stale {\n display: none;\n }\n\n .ReactDialogStack.animating.previous.forward {\n opacity: 0;\n left: -5rem;\n }\n\n .ReactDialogStack.animating.previous.backward {\n opacity: 0;\n left: 5rem;\n }\n\n .ReactDialogStack.animating.next.forward {\n opacity: 0;\n left: 5rem;\n }\n\n .ReactDialogStack.animating.next.backward {\n opacity: 0;\n left: -5rem;\n }\n "),this.renderStack())}}var dF=function(e){var t=eL.useContext(uF).navigate,n=eL.useContext(tL),r=n.close,i=n.closable;return eL.createElement("div",{className:["Dialog",e.className].join(" ")},eL.createElement("div",{className:["DialogHeader",e.stacked?"TextCenter":""].join(" ")},e.stacked&&eL.createElement("div",{className:"DialogHeaderActionLeft PaddingTopS PaddingLeftS PaddingRightS"},eL.createElement("button",{type:"button",onClick:function(){return t("back")},className:"ButtonCircular",title:"Go back"},eL.createElement(iD,null))),i&&!1!==e.closable&&eL.createElement("div",{className:"DialogHeaderActionRight PaddingTopS PaddingLeftS PaddingRightS"},e.alternativeHeaderAction,eL.createElement("button",{type:"button",onClick:r,className:"ButtonCircular",title:"Close dialog"},eL.createElement(oD,null))),e.header),eL.createElement("div",{ref:e.bodyRef,className:["DialogBody",e.bodyClassName].join(" ")},e.body),!1!==e.footer&&eL.createElement("div",{className:"DialogFooter"},e.footer))},pF=function(){return"undefined"!=typeof window&&Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/.test(navigator.userAgent))},fF=Gp(qp((function(e,t){self,e.exports=(()=>{var e={192:(e,t)=>{var n,r,i=function(){var e=function(e,t){var n=e,r=a[t],i=null,o=0,u=null,y=[],g={},w=function(e,t){i=function(e){for(var t=new Array(e),n=0;n=7&&E(e),null==u&&(u=I(n,r,y)),T(u,t)},b=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||o<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||o<=t+r||(i[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},M=function(){for(var e=8;e>r&1);i[Math.floor(r/3)][r%3+o-8-3]=a}for(r=0;r<18;r+=1)a=!e&&1==(t>>r&1),i[r%3+o-8-3][Math.floor(r/3)]=a},N=function(e,t){for(var n=r<<3|t,a=s.getBCHTypeInfo(n),u=0;u<15;u+=1){var c=!e&&1==(a>>u&1);u<6?i[u][8]=c:u<8?i[u+1][8]=c:i[o-15+u][8]=c}for(u=0;u<15;u+=1)c=!e&&1==(a>>u&1),u<8?i[8][o-u-1]=c:u<9?i[8][15-u-1+1]=c:i[8][15-u-1]=c;i[o-8][8]=!e},T=function(e,t){for(var n=-1,r=o-1,a=7,u=0,c=s.getMaskFunction(t),l=o-1;l>0;l-=2)for(6==l&&(l-=1);;){for(var h=0;h<2;h+=1)if(null==i[r][l-h]){var d=!1;u>>a&1)),c(r,l-h)&&(d=!d),i[r][l-h]=d,-1==(a-=1)&&(u+=1,a=7)}if((r+=n)<0||o<=r){r-=n,n=-n;break}}},I=function(e,t,n){for(var r=l.getRSBlocks(e,t),i=h(),o=0;o8*u)throw"code length overflow. ("+i.getLengthInBits()+">"+8*u+")";for(i.getLengthInBits()+4<=8*u&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*u||(i.put(236,8),i.getLengthInBits()>=8*u));)i.put(17,8);return function(e,t){for(var n=0,r=0,i=0,o=new Array(t.length),a=new Array(t.length),u=0;u=0?f.getAt(m):0}}var y=0;for(d=0;dr)&&(e=r,t=n)}return t}())},g.createTableTag=function(e,t){e=e||2;var n="";n+='',n+="";for(var r=0;r";for(var i=0;i';n+=""}return(n+="")+"
"},g.createSvgTag=function(e,t,n,r){var i={};"object"==typeof arguments[0]&&(e=(i=arguments[0]).cellSize,t=i.margin,n=i.alt,r=i.title),e=e||2,t=void 0===t?4*e:t,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var o,a,s,u,c=g.getModuleCount()*e+2*t,l="";for(u="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",l+=''+L(r.text)+"":"",l+=n.text?''+L(n.text)+"":"",l+='',l+='"},g.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;var n=g.getModuleCount()*e+2*t,r=t,i=n-t;return v(n,n,(function(t,n){if(r<=t&&t"};var L=function(e){for(var t="",n=0;n":t+=">";break;case"&":t+="&";break;case'"':t+=""";break;default:t+=r}}return t};return g.createASCII=function(e,t){if((e=e||1)<2)return function(e){e=void 0===e?2:e;var t,n,r,i,o,a=1*g.getModuleCount()+2*e,s=e,u=a-e,c={"██":"█","█ ":"▀"," █":"▄"," ":" "},l={"██":"▀","█ ":"▀"," █":" "," ":" "},h="";for(t=0;t=u?l[o]:c[o];h+="\n"}return a%2&&e>0?h.substring(0,h.length-a-1)+Array(a+1).join("▀"):h.substring(0,h.length-1)}(t);e-=1,t=void 0===t?2*e:t;var n,r,i,o,a=g.getModuleCount()*e+2*t,s=t,u=a-t,c=Array(e+1).join("██"),l=Array(e+1).join(" "),h="",d="";for(n=0;n>>8),t.push(255&a)):t.push(r)}}return t}};var t,n,r,i,o,a={L:1,M:0,Q:3,H:2},s=(t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],n=1335,r=7973,o=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},(i={}).getBCHTypeInfo=function(e){for(var t=e<<10;o(t)-o(n)>=0;)t^=n<=0;)t^=r<5&&(n+=3+o-5)}for(r=0;r=256;)t-=255;return e[t]}}}();function c(e,t){if(void 0===e.length)throw e.length+"/"+t;var n=function(){for(var n=0;n>>7-t%8&1)},put:function(e,t){for(var r=0;r>>t-r-1&1))},getLengthInBits:function(){return t},putBit:function(n){var r=Math.floor(t/8);e.length<=r&&e.push(0),n&&(e[r]|=128>>>t%8),t+=1}};return n},d=function(e){var t=e,n={getMode:function(){return 1},getLength:function(e){return t.length},write:function(e){for(var n=t,i=0;i+2>>8&255)+(255&i),e.put(i,13),n+=2}if(n>>8)},writeBytes:function(e,n,r){n=n||0,r=r||e.length;for(var i=0;i0&&(t+=","),t+=e[n];return t+"]"}};return t},g=function(e){var t=e,n=0,r=0,i=0,o={read:function(){for(;i<8;){if(n>=t.length){if(0==i)return-1;throw"unexpected end of file./"+i}var e=t.charAt(n);if(n+=1,"="==e)return i=0,-1;e.match(/^\s$/)||(r=r<<6|a(e.charCodeAt(0)),i+=6)}var o=r>>>i-8&255;return i-=8,o}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return o},v=function(e,t,n){for(var r=function(e,t){var n=e,r=t,i=new Array(e*t),o={setPixel:function(e,t,r){i[t*n+e]=r},write:function(e){e.writeString("GIF87a"),e.writeShort(n),e.writeShort(r),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(r),e.writeByte(0);var t=a(2);e.writeByte(2);for(var i=0;t.length-i>255;)e.writeByte(255),e.writeBytes(t,i,255),i+=255;e.writeByte(t.length-i),e.writeBytes(t,i,t.length-i),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<>>t!=0)throw"length over";for(;c+t>=8;)u.writeByte(255&(e<>>=8-c,l=0,c=0;l|=e<0&&u.writeByte(l)}});d.write(t,r);var p=0,f=String.fromCharCode(i[p]);for(p+=1;p=6;)o(e>>>t-6),t-=6},i.flush=function(){if(t>0&&(o(e<<6-t),e=0,t=0),n%3!=0)for(var i=3-n%3,a=0;a>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}(e)},void 0===(r="function"==typeof(n=function(){return i})?n.apply(t,[]):n)||(e.exports=r)},676:(e,t,n)=>{n.d(t,{default:()=>D});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]2||o&&a||s&&u)this._basicSquare({x:t,y:n,size:r,rotation:0});else{if(2===c){var l=0;return o&&s?l=Math.PI/2:s&&a?l=Math.PI:a&&u&&(l=-Math.PI/2),void this._basicCornerRounded({x:t,y:n,size:r,rotation:l})}if(1===c)return l=0,s?l=Math.PI/2:a?l=Math.PI:u&&(l=-Math.PI/2),void this._basicSideRounded({x:t,y:n,size:r,rotation:l})}else this._basicDot({x:t,y:n,size:r,rotation:0})},e.prototype._drawExtraRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,u=i?+i(0,1):0,c=o+a+s+u;if(0!==c)if(c>2||o&&a||s&&u)this._basicSquare({x:t,y:n,size:r,rotation:0});else{if(2===c){var l=0;return o&&s?l=Math.PI/2:s&&a?l=Math.PI:a&&u&&(l=-Math.PI/2),void this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:l})}if(1===c)return l=0,s?l=Math.PI/2:a?l=Math.PI:u&&(l=-Math.PI/2),void this._basicSideRounded({x:t,y:n,size:r,rotation:l})}else this._basicDot({x:t,y:n,size:r,rotation:0})},e.prototype._drawClassy=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,u=i?+i(0,1):0;0!==o+a+s+u?o||s?a||u?this._basicSquare({x:t,y:n,size:r,rotation:0}):this._basicCornerRounded({x:t,y:n,size:r,rotation:Math.PI/2}):this._basicCornerRounded({x:t,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:n,size:r,rotation:Math.PI/2})},e.prototype._drawClassyRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,u=i?+i(0,1):0;0!==o+a+s+u?o||s?a||u?this._basicSquare({x:t,y:n,size:r,rotation:0}):this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:n,size:r,rotation:Math.PI/2})},e}();var d=function(){return(d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]r||i&&i=(t-o.hideXDots)/2&&e<(t+o.hideXDots)/2&&n>=(t-o.hideYDots)/2&&n<(t+o.hideYDots)/2||(null===(r=w[e])||void 0===r?void 0:r[n])||(null===(i=w[e-t+7])||void 0===i?void 0:i[n])||(null===(a=w[e])||void 0===a?void 0:a[n-t+7])||(null===(s=b[e])||void 0===s?void 0:s[n])||(null===(u=b[e-t+7])||void 0===u?void 0:u[n])||(null===(c=b[e])||void 0===c?void 0:c[n-t+7]))})),this.drawCorners(),this._options.image?[4,this.drawImage({width:o.width,height:o.height,count:t,dotSize:i})]:[3,4];case 3:p.sent(),p.label=4;case 4:return[2]}}))}))},e.prototype.drawBackground=function(){var e,t,n,r=this._element,i=this._options;if(r){var o=null===(e=i.backgroundOptions)||void 0===e?void 0:e.gradient,a=null===(t=i.backgroundOptions)||void 0===t?void 0:t.color;if((o||a)&&this._createColor({options:o,color:a,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"background-color"}),null===(n=i.backgroundOptions)||void 0===n?void 0:n.round){var s=Math.min(i.width,i.height),u=document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id","clip-path-background-color"),this._defs.appendChild(this._backgroundClipPath),u.setAttribute("x",String((i.width-s)/2)),u.setAttribute("y",String((i.height-s)/2)),u.setAttribute("width",String(s)),u.setAttribute("height",String(s)),u.setAttribute("rx",String(s/2*i.backgroundOptions.round)),this._backgroundClipPath.appendChild(u)}}},e.prototype.drawDots=function(e){var t,n,r=this;if(!this._qr)throw"QR code is not defined";var i=this._options,o=this._qr.getModuleCount();if(o>i.width||o>i.height)throw"The canvas is too small.";var a=Math.min(i.width,i.height)-2*i.margin,s=i.shape===y?a/Math.sqrt(2):a,u=Math.floor(s/o),c=Math.floor((i.width-o*u)/2),l=Math.floor((i.height-o*u)/2),d=new h({svg:this._element,type:i.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:null===(t=i.dotsOptions)||void 0===t?void 0:t.gradient,color:i.dotsOptions.color,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"dot-color"});for(var p=function(t){for(var i=function(i){return e&&!e(t,i)?"continue":(null===(n=f._qr)||void 0===n?void 0:n.isDark(t,i))?(d.draw(c+t*u,l+i*u,u,(function(n,a){return!(t+n<0||i+a<0||t+n>=o||i+a>=o)&&!(e&&!e(t+n,i+a))&&!!r._qr&&r._qr.isDark(t+n,i+a)})),void(d._element&&f._dotsClipPath&&f._dotsClipPath.appendChild(d._element))):"continue"},a=0;a=g-1&&m<=v-g&&E>=g-1&&E<=v-g||Math.sqrt((m-A)*(m-A)+(E-A)*(E-A))>A?M[m][E]=0:M[m][E]=this._qr.isDark(E-2*g<0?E:E>=o?E-2*g:E-g,m-2*g<0?m:m>=o?m-2*g:m-g)?1:0}var N=function(e){for(var t=function(t){if(!M[e][t])return"continue";d.draw(w+e*u,b+t*u,u,(function(n,r){var i;return!!(null===(i=M[e+n])||void 0===i?void 0:i[t+r])})),d._element&&T._dotsClipPath&&T._dotsClipPath.appendChild(d._element)},n=0;na?s:a,l=document.createElementNS("http://www.w3.org/2000/svg","rect");if(l.setAttribute("x",String(i)),l.setAttribute("y",String(o)),l.setAttribute("height",String(a)),l.setAttribute("width",String(s)),l.setAttribute("clip-path","url('#clip-path-"+u+"')"),t){var h;if("radial"===t.type)(h=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",u),h.setAttribute("gradientUnits","userSpaceOnUse"),h.setAttribute("fx",String(i+s/2)),h.setAttribute("fy",String(o+a/2)),h.setAttribute("cx",String(i+s/2)),h.setAttribute("cy",String(o+a/2)),h.setAttribute("r",String(c/2));else{var d=((t.rotation||0)+r)%(2*Math.PI),p=(d+2*Math.PI)%(2*Math.PI),f=i+s/2,m=o+a/2,y=i+s/2,g=o+a/2;p>=0&&p<=.25*Math.PI||p>1.75*Math.PI&&p<=2*Math.PI?(f-=s/2,m-=a/2*Math.tan(d),y+=s/2,g+=a/2*Math.tan(d)):p>.25*Math.PI&&p<=.75*Math.PI?(m-=a/2,f-=s/2/Math.tan(d),g+=a/2,y+=s/2/Math.tan(d)):p>.75*Math.PI&&p<=1.25*Math.PI?(f+=s/2,m+=a/2*Math.tan(d),y-=s/2,g-=a/2*Math.tan(d)):p>1.25*Math.PI&&p<=1.75*Math.PI&&(m+=a/2,f+=s/2/Math.tan(d),g-=a/2,y-=s/2/Math.tan(d)),(h=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",u),h.setAttribute("gradientUnits","userSpaceOnUse"),h.setAttribute("x1",String(Math.round(f))),h.setAttribute("y1",String(Math.round(m))),h.setAttribute("x2",String(Math.round(y))),h.setAttribute("y2",String(Math.round(g)))}t.colorStops.forEach((function(e){var t=e.offset,n=e.color,r=document.createElementNS("http://www.w3.org/2000/svg","stop");r.setAttribute("offset",100*t+"%"),r.setAttribute("stop-color",n),h.appendChild(r)})),l.setAttribute("fill","url('#"+u+"')"),this._defs.appendChild(h)}else n&&l.setAttribute("fill",n);this._element.appendChild(l)},e}(),A="canvas";for(var E={},N=0;N<=40;N++)E[N]=N;const T={type:A,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:E[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{round:0,color:"#fff"}};var I=function(){return(I=Object.assign||function(e){for(var t,n=1,r=arguments.length;nMath.min(t.width,t.height)&&(t.margin=Math.min(t.width,t.height)),t.dotsOptions=I({},t.dotsOptions),t.dotsOptions.gradient&&(t.dotsOptions.gradient=L(t.dotsOptions.gradient)),t.cornersSquareOptions&&(t.cornersSquareOptions=I({},t.cornersSquareOptions),t.cornersSquareOptions.gradient&&(t.cornersSquareOptions.gradient=L(t.cornersSquareOptions.gradient))),t.cornersDotOptions&&(t.cornersDotOptions=I({},t.cornersDotOptions),t.cornersDotOptions.gradient&&(t.cornersDotOptions.gradient=L(t.cornersDotOptions.gradient))),t.backgroundOptions&&(t.backgroundOptions=I({},t.backgroundOptions),t.backgroundOptions.gradient&&(t.backgroundOptions.gradient=L(t.backgroundOptions.gradient))),t}var x=n(192),S=n.n(x),j=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},C=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]\r\n'+r],{type:"image/svg+xml"})]):[2,new Promise((function(n){return t.toBlob(n,"image/"+e,1)}))]:[2,null]}}))}))},e.prototype.download=function(e){return j(this,void 0,void 0,(function(){var t,n,r,i,o;return C(this,(function(a){switch(a.label){case 0:if(!this._qr)throw"QR code is empty";return t="png",n="qr","string"==typeof e?(t=e,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof e&&null!==e&&(e.name&&(n=e.name),e.extension&&(t=e.extension)),[4,this._getElement(t)];case 1:return(r=a.sent())?("svg"===t.toLowerCase()?(i=new XMLSerializer,o='\r\n'+(o=i.serializeToString(r)),s("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o),n+".svg")):s(r.toDataURL("image/"+t),n+"."+t),[2]):[2]}}))}))},e}()}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n(676)})().default}))),mF=qp((function(e,t){(function(){var n,r="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",a=16,s=32,u=64,c=128,l=256,h=1/0,d=9007199254740991,p=NaN,f=4294967295,m=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",s],["partialRight",u],["rearg",l]],y="[object Arguments]",g="[object Array]",v="[object Boolean]",w="[object Date]",b="[object Error]",M="[object Function]",A="[object GeneratorFunction]",E="[object Map]",N="[object Number]",T="[object Object]",I="[object Promise]",L="[object RegExp]",k="[object Set]",x="[object String]",S="[object Symbol]",j="[object WeakMap]",C="[object ArrayBuffer]",D="[object DataView]",O="[object Float32Array]",z="[object Float64Array]",_="[object Int8Array]",P="[object Int16Array]",R="[object Int32Array]",B="[object Uint8Array]",U="[object Uint8ClampedArray]",W="[object Uint16Array]",Q="[object Uint32Array]",Y=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,q=RegExp(H.source),Z=RegExp(G.source),J=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,re=RegExp(ne.source),ie=/^\s+/,oe=/\s/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,Me=/['\n\r\u2028\u2029\\]/g,Ae="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",Ne="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Ie="\\ufe0e\\ufe0f",Le="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ke="['’]",xe="[\\ud800-\\udfff]",Se="["+Le+"]",je="["+Ae+"]",Ce="\\d+",De="[\\u2700-\\u27bf]",Oe="["+Ne+"]",ze="[^\\ud800-\\udfff"+Le+Ce+Ee+Ne+Te+"]",_e="\\ud83c[\\udffb-\\udfff]",Pe="[^\\ud800-\\udfff]",Re="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",Ue="["+Te+"]",We="(?:"+Oe+"|"+ze+")",Qe="(?:"+Ue+"|"+ze+")",Ye="(?:['’](?:d|ll|m|re|s|t|ve))?",Fe="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ve="(?:"+je+"|"+_e+")"+"?",He="[\\ufe0e\\ufe0f]?",Ge=He+Ve+("(?:\\u200d(?:"+[Pe,Re,Be].join("|")+")"+He+Ve+")*"),qe="(?:"+[De,Re,Be].join("|")+")"+Ge,Ze="(?:"+[Pe+je+"?",je,Re,Be,xe].join("|")+")",Je=RegExp(ke,"g"),Xe=RegExp(je,"g"),Ke=RegExp(_e+"(?="+_e+")|"+Ze+Ge,"g"),$e=RegExp([Ue+"?"+Oe+"+"+Ye+"(?="+[Se,Ue,"$"].join("|")+")",Qe+"+"+Fe+"(?="+[Se,Ue+We,"$"].join("|")+")",Ue+"?"+We+"+"+Ye,Ue+"+"+Fe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ce,qe].join("|"),"g"),et=RegExp("[\\u200d\\ud800-\\udfff"+Ae+Ie+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,it={};it[O]=it[z]=it[_]=it[P]=it[R]=it[B]=it[U]=it[W]=it[Q]=!0,it[y]=it[g]=it[C]=it[v]=it[D]=it[w]=it[b]=it[M]=it[E]=it[N]=it[T]=it[L]=it[k]=it[x]=it[j]=!1;var ot={};ot[y]=ot[g]=ot[C]=ot[D]=ot[v]=ot[w]=ot[O]=ot[z]=ot[_]=ot[P]=ot[R]=ot[E]=ot[N]=ot[T]=ot[L]=ot[k]=ot[x]=ot[S]=ot[B]=ot[U]=ot[W]=ot[Q]=!0,ot[b]=ot[M]=ot[j]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ut=parseInt,ct="object"==typeof Hp&&Hp&&Hp.Object===Object&&Hp,lt="object"==typeof self&&self&&self.Object===Object&&self,ht=ct||lt||Function("return this")(),dt=t&&!t.nodeType&&t,pt=dt&&e&&!e.nodeType&&e,ft=pt&&pt.exports===dt,mt=ft&&ct.process,yt=function(){try{var e=pt&&pt.require&&pt.require("util").types;return e||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),gt=yt&&yt.isArrayBuffer,vt=yt&&yt.isDate,wt=yt&&yt.isMap,bt=yt&&yt.isRegExp,Mt=yt&&yt.isSet,At=yt&&yt.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Nt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function St(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function $t(e,t){for(var n=e.length;n--&&Bt(t,e[n],0)>-1;);return n}function en(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var tn=Ft({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),nn=Ft({"&":"&","<":"<",">":">",'"':""","'":"'"});function rn(e){return"\\"+at[e]}function on(e){return et.test(e)}function an(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,i=0,a=[];++n",""":'"',"'":"'"});var mn=function e(t){var oe,Ae=(t=null==t?ht:mn.defaults(ht.Object(),t,mn.pick(ht,nt))).Array,Ee=t.Date,Ne=t.Error,Te=t.Function,Ie=t.Math,Le=t.Object,ke=t.RegExp,xe=t.String,Se=t.TypeError,je=Ae.prototype,Ce=Te.prototype,De=Le.prototype,Oe=t["__core-js_shared__"],ze=Ce.toString,_e=De.hasOwnProperty,Pe=0,Re=(oe=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+oe:"",Be=De.toString,Ue=ze.call(Le),We=ht._,Qe=ke("^"+ze.call(_e).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ye=ft?t.Buffer:n,Fe=t.Symbol,Ve=t.Uint8Array,He=Ye?Ye.allocUnsafe:n,Ge=sn(Le.getPrototypeOf,Le),qe=Le.create,Ze=De.propertyIsEnumerable,Ke=je.splice,et=Fe?Fe.isConcatSpreadable:n,at=Fe?Fe.iterator:n,ct=Fe?Fe.toStringTag:n,lt=function(){try{var e=fo(Le,"defineProperty");return e({},"",{}),e}catch(e){}}(),dt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,pt=Ee&&Ee.now!==ht.Date.now&&Ee.now,mt=t.setTimeout!==ht.setTimeout&&t.setTimeout,yt=Ie.ceil,_t=Ie.floor,Ft=Le.getOwnPropertySymbols,yn=Ye?Ye.isBuffer:n,gn=t.isFinite,vn=je.join,wn=sn(Le.keys,Le),bn=Ie.max,Mn=Ie.min,An=Ee.now,En=t.parseInt,Nn=Ie.random,Tn=je.reverse,In=fo(t,"DataView"),Ln=fo(t,"Map"),kn=fo(t,"Promise"),xn=fo(t,"Set"),Sn=fo(t,"WeakMap"),jn=fo(Le,"create"),Cn=Sn&&new Sn,Dn={},On=Wo(In),zn=Wo(Ln),_n=Wo(kn),Pn=Wo(xn),Rn=Wo(Sn),Bn=Fe?Fe.prototype:n,Un=Bn?Bn.valueOf:n,Wn=Bn?Bn.toString:n;function Qn(e){if(is(e)&&!Ga(e)&&!(e instanceof Hn)){if(e instanceof Vn)return e;if(_e.call(e,"__wrapped__"))return Qo(e)}return new Vn(e)}var Yn=function(){function e(){}return function(t){if(!rs(t))return{};if(qe)return qe(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Fn(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function lr(e,t,r,i,o,a){var s,u=1&t,c=2&t,l=4&t;if(r&&(s=o?r(e,i,o,a):r(e)),s!==n)return s;if(!rs(e))return e;var h=Ga(e);if(h){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&_e.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return ji(e,s)}else{var d=go(e),p=d==M||d==A;if(Xa(e))return Ti(e,u);if(d==T||d==y||p&&!o){if(s=c||p?{}:wo(e),!u)return c?function(e,t){return Ci(e,yo(e),t)}(e,function(e,t){return e&&Ci(t,zs(t),e)}(s,e)):function(e,t){return Ci(e,mo(e),t)}(e,ar(s,e))}else{if(!ot[d])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case C:return Ii(e);case v:case w:return new r(+e);case D:return function(e,t){var n=t?Ii(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case O:case z:case _:case P:case R:case B:case U:case W:case Q:return Li(e,n);case E:return new r;case N:case x:return new r(e);case L:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new r;case S:return i=e,Un?Le(Un.call(i)):{}}var i}(e,d,u)}}a||(a=new Xn);var f=a.get(e);if(f)return f;a.set(e,s),cs(e)?e.forEach((function(n){s.add(lr(n,t,r,n,e,a))})):os(e)&&e.forEach((function(n,i){s.set(i,lr(n,t,r,i,e,a))}));var m=h?n:(l?c?ao:oo:c?zs:Os)(e);return Tt(m||e,(function(n,i){m&&(n=e[i=n]),rr(s,i,lr(n,t,r,i,e,a))})),s}function hr(e,t,r){var i=r.length;if(null==e)return!i;for(e=Le(e);i--;){var o=r[i],a=t[o],s=e[o];if(s===n&&!(o in e)||!a(s))return!1}return!0}function dr(e,t,i){if("function"!=typeof e)throw new Se(r);return Oo((function(){e.apply(n,i)}),t)}function pr(e,t,n,r){var i=-1,o=xt,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=jt(t,Zt(n))),r?(o=St,a=!1):t.length>=200&&(o=Xt,a=!1,t=new Jn(t));e:for(;++i-1},qn.prototype.set=function(e,t){var n=this.__data__,r=ir(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Zn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(Ln||qn),string:new Gn}},Zn.prototype.delete=function(e){var t=ho(this,e).delete(e);return this.size-=t?1:0,t},Zn.prototype.get=function(e){return ho(this,e).get(e)},Zn.prototype.has=function(e){return ho(this,e).has(e)},Zn.prototype.set=function(e,t){var n=ho(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Jn.prototype.add=Jn.prototype.push=function(e){return this.__data__.set(e,i),this},Jn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new qn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!Ln||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Zn(r)}return n.set(e,t),this.size=n.size,this};var fr=zi(Ar),mr=zi(Er,!0);function yr(e,t){var n=!0;return fr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function gr(e,t,r){for(var i=-1,o=e.length;++i0&&n(s)?t>1?wr(s,t-1,n,r,i):Ct(i,s):r||(i[i.length]=s)}return i}var br=_i(),Mr=_i(!0);function Ar(e,t){return e&&br(e,t,Os)}function Er(e,t){return e&&Mr(e,t,Os)}function Nr(e,t){return kt(t,(function(t){return es(e[t])}))}function Tr(e,t){for(var r=0,i=(t=Mi(t,e)).length;null!=e&&rt}function xr(e,t){return null!=e&&_e.call(e,t)}function Sr(e,t){return null!=e&&t in Le(e)}function jr(e,t,r){for(var i=r?St:xt,o=e[0].length,a=e.length,s=a,u=Ae(a),c=1/0,l=[];s--;){var h=e[s];s&&t&&(h=jt(h,Zt(t))),c=Mn(h.length,c),u[s]=!r&&(t||o>=120&&h.length>=120)?new Jn(s&&h):n}h=e[0];var d=-1,p=u[0];e:for(;++d=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Gr(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&Ke.call(s,u,1),Ke.call(e,u,1);return e}function Zr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Mo(i)?Ke.call(e,i,1):pi(e,i)}}return e}function Jr(e,t){return e+_t(Nn()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=_t(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return zo(xo(e,t,au),e+"")}function $r(e){return $n(Ys(e))}function ei(e,t){var n=Ys(e);return Ro(n,cr(t,0,n.length))}function ti(e,t,r,i){if(!rs(e))return e;for(var o=-1,a=(t=Mi(t,e)).length,s=a-1,u=e;null!=u&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Ae(i);++r>>1,a=e[o];null!==a&&!hs(a)&&(n?a<=t:a=200){var c=t?null:Xi(e);if(c)return cn(c);a=!1,i=Xt,u=new Jn}else u=t?[]:s;e:for(;++r=i?e:oi(e,t,r)}var Ni=dt||function(e){return ht.clearTimeout(e)};function Ti(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function Ii(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function Li(e,t){var n=t?Ii(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ki(e,t){if(e!==t){var r=e!==n,i=null===e,o=e==e,a=hs(e),s=t!==n,u=null===t,c=t==t,l=hs(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||i&&s&&c||!r&&c||!o)return 1;if(!i&&!a&&!l&&e1?r[o-1]:n,s=o>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(o--,a):n,s&&Ao(r[0],r[1],s)&&(a=o<3?n:a,o=1),t=Le(t);++i-1?o[a?t[s]:s]:n}}function Wi(e){return io((function(t){var i=t.length,o=i,a=Vn.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if("function"!=typeof s)throw new Se(r);if(a&&!u&&"wrapper"==uo(s))var u=new Vn([],!0)}for(o=u?o:i;++o1&&v.reverse(),d&&lu))return!1;var l=a.get(e),h=a.get(t);if(l&&h)return l==t&&h==e;var d=-1,p=!0,f=2&r?new Jn:n;for(a.set(e,t),a.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ae,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Tt(m,(function(n){var r="_."+n[0];t&n[1]&&!xt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ue):[]}(r),n)))}function Po(e){var t=0,r=0;return function(){var i=An(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ro(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ua(e,r)}));function ma(e){var t=Qn(e);return t.__chain__=!0,t}function ya(e,t){return t(e)}var ga=io((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return ur(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Hn&&Mo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:ya,args:[o],thisArg:n}),new Vn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var va=Di((function(e,t,n){_e.call(e,n)?++e[n]:sr(e,n,1)}));var wa=Ui(Ho),ba=Ui(Go);function Ma(e,t){return(Ga(e)?Tt:fr)(e,lo(t,3))}function Aa(e,t){return(Ga(e)?It:mr)(e,lo(t,3))}var Ea=Di((function(e,t,n){_e.call(e,n)?e[n].push(t):sr(e,n,[t])}));var Na=Kr((function(e,t,n){var r=-1,i="function"==typeof t,o=Za(e)?Ae(e.length):[];return fr(e,(function(e){o[++r]=i?Et(t,e,n):Cr(e,t,n)})),o})),Ta=Di((function(e,t,n){sr(e,n,t)}));function Ia(e,t){return(Ga(e)?jt:Wr)(e,lo(t,3))}var La=Di((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ka=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ao(e,t[0],t[1])?t=[]:n>2&&Ao(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,wr(t,1),[])})),xa=pt||function(){return ht.Date.now()};function Sa(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,$i(e,c,n,n,n,n,t)}function ja(e,t){var i;if("function"!=typeof t)throw new Se(r);return e=gs(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var Ca=Kr((function(e,t,n){var r=1;if(n.length){var i=un(n,co(Ca));r|=s}return $i(e,r,t,n,i)})),Da=Kr((function(e,t,n){var r=3;if(n.length){var i=un(n,co(Da));r|=s}return $i(t,r,e,n,i)}));function Oa(e,t,i){var o,a,s,u,c,l,h=0,d=!1,p=!1,f=!0;if("function"!=typeof e)throw new Se(r);function m(t){var r=o,i=a;return o=a=n,h=t,u=e.apply(i,r)}function y(e){return h=e,c=Oo(v,t),d?m(e):u}function g(e){var r=e-l;return l===n||r>=t||r<0||p&&e-h>=s}function v(){var e=xa();if(g(e))return w(e);c=Oo(v,function(e){var n=t-(e-l);return p?Mn(n,s-(e-h)):n}(e))}function w(e){return c=n,f&&o?m(e):(o=a=n,u)}function b(){var e=xa(),r=g(e);if(o=arguments,a=this,l=e,r){if(c===n)return y(l);if(p)return Ni(c),c=Oo(v,t),m(l)}return c===n&&(c=Oo(v,t)),u}return t=ws(t)||0,rs(i)&&(d=!!i.leading,s=(p="maxWait"in i)?bn(ws(i.maxWait)||0,t):s,f="trailing"in i?!!i.trailing:f),b.cancel=function(){c!==n&&Ni(c),h=0,o=l=a=c=n},b.flush=function(){return c===n?u:w(xa())},b}var za=Kr((function(e,t){return dr(e,1,t)})),_a=Kr((function(e,t,n){return dr(e,ws(t)||0,n)}));function Pa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Se(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Pa.Cache||Zn),n}function Ra(e){if("function"!=typeof e)throw new Se(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Pa.Cache=Zn;var Ba=Ai((function(e,t){var n=(t=1==t.length&&Ga(t[0])?jt(t[0],Zt(lo())):jt(wr(t,1),Zt(lo()))).length;return Kr((function(r){for(var i=-1,o=Mn(r.length,n);++i=t})),Ha=Dr(function(){return arguments}())?Dr:function(e){return is(e)&&_e.call(e,"callee")&&!Ze.call(e,"callee")},Ga=Ae.isArray,qa=gt?Zt(gt):function(e){return is(e)&&Lr(e)==C};function Za(e){return null!=e&&ns(e.length)&&!es(e)}function Ja(e){return is(e)&&Za(e)}var Xa=yn||wu,Ka=vt?Zt(vt):function(e){return is(e)&&Lr(e)==w};function $a(e){if(!is(e))return!1;var t=Lr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ss(e)}function es(e){if(!rs(e))return!1;var t=Lr(e);return t==M||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ts(e){return"number"==typeof e&&e==gs(e)}function ns(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function rs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function is(e){return null!=e&&"object"==typeof e}var os=wt?Zt(wt):function(e){return is(e)&&go(e)==E};function as(e){return"number"==typeof e||is(e)&&Lr(e)==N}function ss(e){if(!is(e)||Lr(e)!=T)return!1;var t=Ge(e);if(null===t)return!0;var n=_e.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ze.call(n)==Ue}var us=bt?Zt(bt):function(e){return is(e)&&Lr(e)==L};var cs=Mt?Zt(Mt):function(e){return is(e)&&go(e)==k};function ls(e){return"string"==typeof e||!Ga(e)&&is(e)&&Lr(e)==x}function hs(e){return"symbol"==typeof e||is(e)&&Lr(e)==S}var ds=At?Zt(At):function(e){return is(e)&&ns(e.length)&&!!it[Lr(e)]};var ps=qi(Ur),fs=qi((function(e,t){return e<=t}));function ms(e){if(!e)return[];if(Za(e))return ls(e)?dn(e):ji(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=go(e);return(t==E?an:t==k?cn:Ys)(e)}function ys(e){return e?(e=ws(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gs(e){var t=ys(e),n=t%1;return t==t?n?t-n:t:0}function vs(e){return e?cr(gs(e),0,f):0}function ws(e){if("number"==typeof e)return e;if(hs(e))return p;if(rs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=rs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=qt(e);var n=me.test(e);return n||ge.test(e)?ut(e.slice(2),n?2:8):fe.test(e)?p:+e}function bs(e){return Ci(e,zs(e))}function Ms(e){return null==e?"":hi(e)}var As=Oi((function(e,t){if(Io(t)||Za(t))Ci(t,Os(t),e);else for(var n in t)_e.call(t,n)&&rr(e,n,t[n])})),Es=Oi((function(e,t){Ci(t,zs(t),e)})),Ns=Oi((function(e,t,n,r){Ci(t,zs(t),e,r)})),Ts=Oi((function(e,t,n,r){Ci(t,Os(t),e,r)})),Is=io(ur);var Ls=Kr((function(e,t){e=Le(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&Ao(t[0],t[1],o)&&(i=1);++r1),t})),Ci(e,ao(e),n),r&&(n=lr(n,7,no));for(var i=t.length;i--;)pi(n,t[i]);return n}));var Bs=io((function(e,t){return null==e?{}:function(e,t){return Gr(e,t,(function(t,n){return Ss(e,n)}))}(e,t)}));function Us(e,t){if(null==e)return{};var n=jt(ao(e),(function(e){return[e]}));return t=lo(t),Gr(e,n,(function(e,n){return t(e,n[0])}))}var Ws=Ki(Os),Qs=Ki(zs);function Ys(e){return null==e?[]:Jt(e,Os(e))}var Fs=Ri((function(e,t,n){return t=t.toLowerCase(),e+(n?Vs(t):t)}));function Vs(e){return $s(Ms(e).toLowerCase())}function Hs(e){return(e=Ms(e))&&e.replace(we,tn).replace(Xe,"")}var Gs=Ri((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),qs=Ri((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Zs=Pi("toLowerCase");var Js=Ri((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xs=Ri((function(e,t,n){return e+(n?" ":"")+$s(t)}));var Ks=Ri((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),$s=Pi("toUpperCase");function eu(e,t,r){return e=Ms(e),(t=r?n:t)===n?function(e){return tt.test(e)}(e)?function(e){return e.match($e)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var tu=Kr((function(e,t){try{return Et(e,n,t)}catch(e){return $a(e)?e:new Ne(e)}})),nu=io((function(e,t){return Tt(t,(function(t){t=Uo(t),sr(e,t,Ca(e[t],e))})),e}));function ru(e){return function(){return e}}var iu=Wi(),ou=Wi(!0);function au(e){return e}function su(e){return Pr("function"==typeof e?e:lr(e,1))}var uu=Kr((function(e,t){return function(n){return Cr(n,e,t)}})),cu=Kr((function(e,t){return function(n){return Cr(e,n,t)}}));function lu(e,t,n){var r=Os(t),i=Nr(t,r);null!=n||rs(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Nr(t,Os(t)));var o=!(rs(n)&&"chain"in n&&!n.chain),a=es(e);return Tt(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=ji(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ct([this.value()],arguments))})})),e}function hu(){}var du=Vi(jt),pu=Vi(Lt),fu=Vi(zt);function mu(e){return Eo(e)?Yt(Uo(e)):function(e){return function(t){return Tr(t,e)}}(e)}var yu=Gi(),gu=Gi(!0);function vu(){return[]}function wu(){return!1}var bu=Fi((function(e,t){return e+t}),0),Mu=Ji("ceil"),Au=Fi((function(e,t){return e/t}),1),Eu=Ji("floor");var Nu,Tu=Fi((function(e,t){return e*t}),1),Iu=Ji("round"),Lu=Fi((function(e,t){return e-t}),0);return Qn.after=function(e,t){if("function"!=typeof t)throw new Se(r);return e=gs(e),function(){if(--e<1)return t.apply(this,arguments)}},Qn.ary=Sa,Qn.assign=As,Qn.assignIn=Es,Qn.assignInWith=Ns,Qn.assignWith=Ts,Qn.at=Is,Qn.before=ja,Qn.bind=Ca,Qn.bindAll=nu,Qn.bindKey=Da,Qn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ga(e)?e:[e]},Qn.chain=ma,Qn.chunk=function(e,t,r){t=(r?Ao(e,t,r):t===n)?1:bn(gs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=Ae(yt(i/t));oo?0:o+r),(i=i===n||i>o?o:gs(i))<0&&(i+=o),i=r>i?0:vs(i);r>>0)?(e=Ms(e))&&("string"==typeof t||null!=t&&!us(t))&&!(t=hi(t))&&on(e)?Ei(dn(e),0,r):e.split(t,r):[]},Qn.spread=function(e,t){if("function"!=typeof e)throw new Se(r);return t=null==t?0:bn(gs(t),0),Kr((function(n){var r=n[t],i=Ei(n,0,t);return r&&Ct(i,r),Et(e,this,i)}))},Qn.tail=function(e){var t=null==e?0:e.length;return t?oi(e,1,t):[]},Qn.take=function(e,t,r){return e&&e.length?oi(e,0,(t=r||t===n?1:gs(t))<0?0:t):[]},Qn.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?oi(e,(t=i-(t=r||t===n?1:gs(t)))<0?0:t,i):[]},Qn.takeRightWhile=function(e,t){return e&&e.length?mi(e,lo(t,3),!1,!0):[]},Qn.takeWhile=function(e,t){return e&&e.length?mi(e,lo(t,3)):[]},Qn.tap=function(e,t){return t(e),e},Qn.throttle=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new Se(r);return rs(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),Oa(e,t,{leading:i,maxWait:t,trailing:o})},Qn.thru=ya,Qn.toArray=ms,Qn.toPairs=Ws,Qn.toPairsIn=Qs,Qn.toPath=function(e){return Ga(e)?jt(e,Uo):hs(e)?[e]:ji(Bo(Ms(e)))},Qn.toPlainObject=bs,Qn.transform=function(e,t,n){var r=Ga(e),i=r||Xa(e)||ds(e);if(t=lo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:rs(e)&&es(o)?Yn(Ge(e)):{}}return(i?Tt:Ar)(e,(function(e,r,i){return t(n,e,r,i)})),n},Qn.unary=function(e){return Sa(e,1)},Qn.union=ia,Qn.unionBy=oa,Qn.unionWith=aa,Qn.uniq=function(e){return e&&e.length?di(e):[]},Qn.uniqBy=function(e,t){return e&&e.length?di(e,lo(t,2)):[]},Qn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?di(e,n,t):[]},Qn.unset=function(e,t){return null==e||pi(e,t)},Qn.unzip=sa,Qn.unzipWith=ua,Qn.update=function(e,t,n){return null==e?e:fi(e,t,bi(n))},Qn.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:fi(e,t,bi(r),i)},Qn.values=Ys,Qn.valuesIn=function(e){return null==e?[]:Jt(e,zs(e))},Qn.without=ca,Qn.words=eu,Qn.wrap=function(e,t){return Ua(bi(t),e)},Qn.xor=la,Qn.xorBy=ha,Qn.xorWith=da,Qn.zip=pa,Qn.zipObject=function(e,t){return vi(e||[],t||[],rr)},Qn.zipObjectDeep=function(e,t){return vi(e||[],t||[],ti)},Qn.zipWith=fa,Qn.entries=Ws,Qn.entriesIn=Qs,Qn.extend=Es,Qn.extendWith=Ns,lu(Qn,Qn),Qn.add=bu,Qn.attempt=tu,Qn.camelCase=Fs,Qn.capitalize=Vs,Qn.ceil=Mu,Qn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=ws(r))==r?r:0),t!==n&&(t=(t=ws(t))==t?t:0),cr(ws(e),t,r)},Qn.clone=function(e){return lr(e,4)},Qn.cloneDeep=function(e){return lr(e,5)},Qn.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:n)},Qn.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:n)},Qn.conformsTo=function(e,t){return null==t||hr(e,t,Os(t))},Qn.deburr=Hs,Qn.defaultTo=function(e,t){return null==e||e!=e?t:e},Qn.divide=Au,Qn.endsWith=function(e,t,r){e=Ms(e),t=hi(t);var i=e.length,o=r=r===n?i:cr(gs(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},Qn.eq=Ya,Qn.escape=function(e){return(e=Ms(e))&&Z.test(e)?e.replace(G,nn):e},Qn.escapeRegExp=function(e){return(e=Ms(e))&&re.test(e)?e.replace(ne,"\\$&"):e},Qn.every=function(e,t,r){var i=Ga(e)?Lt:yr;return r&&Ao(e,t,r)&&(t=n),i(e,lo(t,3))},Qn.find=wa,Qn.findIndex=Ho,Qn.findKey=function(e,t){return Pt(e,lo(t,3),Ar)},Qn.findLast=ba,Qn.findLastIndex=Go,Qn.findLastKey=function(e,t){return Pt(e,lo(t,3),Er)},Qn.floor=Eu,Qn.forEach=Ma,Qn.forEachRight=Aa,Qn.forIn=function(e,t){return null==e?e:br(e,lo(t,3),zs)},Qn.forInRight=function(e,t){return null==e?e:Mr(e,lo(t,3),zs)},Qn.forOwn=function(e,t){return e&&Ar(e,lo(t,3))},Qn.forOwnRight=function(e,t){return e&&Er(e,lo(t,3))},Qn.get=xs,Qn.gt=Fa,Qn.gte=Va,Qn.has=function(e,t){return null!=e&&vo(e,t,xr)},Qn.hasIn=Ss,Qn.head=Zo,Qn.identity=au,Qn.includes=function(e,t,n,r){e=Za(e)?e:Ys(e),n=n&&!r?gs(n):0;var i=e.length;return n<0&&(n=bn(i+n,0)),ls(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Bt(e,t,n)>-1},Qn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:gs(n);return i<0&&(i=bn(r+i,0)),Bt(e,t,i)},Qn.inRange=function(e,t,r){return t=ys(t),r===n?(r=t,t=0):r=ys(r),function(e,t,n){return e>=Mn(t,n)&&e=-9007199254740991&&e<=d},Qn.isSet=cs,Qn.isString=ls,Qn.isSymbol=hs,Qn.isTypedArray=ds,Qn.isUndefined=function(e){return e===n},Qn.isWeakMap=function(e){return is(e)&&go(e)==j},Qn.isWeakSet=function(e){return is(e)&&"[object WeakSet]"==Lr(e)},Qn.join=function(e,t){return null==e?"":vn.call(e,t)},Qn.kebabCase=Gs,Qn.last=$o,Qn.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=gs(r))<0?bn(i+o,0):Mn(o,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Rt(e,Wt,o,!0)},Qn.lowerCase=qs,Qn.lowerFirst=Zs,Qn.lt=ps,Qn.lte=fs,Qn.max=function(e){return e&&e.length?gr(e,au,kr):n},Qn.maxBy=function(e,t){return e&&e.length?gr(e,lo(t,2),kr):n},Qn.mean=function(e){return Qt(e,au)},Qn.meanBy=function(e,t){return Qt(e,lo(t,2))},Qn.min=function(e){return e&&e.length?gr(e,au,Ur):n},Qn.minBy=function(e,t){return e&&e.length?gr(e,lo(t,2),Ur):n},Qn.stubArray=vu,Qn.stubFalse=wu,Qn.stubObject=function(){return{}},Qn.stubString=function(){return""},Qn.stubTrue=function(){return!0},Qn.multiply=Tu,Qn.nth=function(e,t){return e&&e.length?Vr(e,gs(t)):n},Qn.noConflict=function(){return ht._===this&&(ht._=We),this},Qn.noop=hu,Qn.now=xa,Qn.pad=function(e,t,n){e=Ms(e);var r=(t=gs(t))?hn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Hi(_t(i),n)+e+Hi(yt(i),n)},Qn.padEnd=function(e,t,n){e=Ms(e);var r=(t=gs(t))?hn(e):0;return t&&rt){var i=e;e=t,t=i}if(r||e%1||t%1){var o=Nn();return Mn(e+o*(t-e+st("1e-"+((o+"").length-1))),t)}return Jr(e,t)},Qn.reduce=function(e,t,n){var r=Ga(e)?Dt:Vt,i=arguments.length<3;return r(e,lo(t,4),n,i,fr)},Qn.reduceRight=function(e,t,n){var r=Ga(e)?Ot:Vt,i=arguments.length<3;return r(e,lo(t,4),n,i,mr)},Qn.repeat=function(e,t,r){return t=(r?Ao(e,t,r):t===n)?1:gs(t),Xr(Ms(e),t)},Qn.replace=function(){var e=arguments,t=Ms(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Qn.result=function(e,t,r){var i=-1,o=(t=Mi(t,e)).length;for(o||(o=1,e=n);++id)return[];var n=f,r=Mn(e,f);t=lo(t),e-=f;for(var i=Gt(r,t);++n=a)return e;var u=r-hn(i);if(u<1)return i;var c=s?Ei(s,0,u).join(""):e.slice(0,u);if(o===n)return c+i;if(s&&(u+=c.length-u),us(o)){if(e.slice(u).search(o)){var l,h=c;for(o.global||(o=ke(o.source,Ms(pe.exec(o))+"g")),o.lastIndex=0;l=o.exec(h);)var d=l.index;c=c.slice(0,d===n?u:d)}}else if(e.indexOf(hi(o),u)!=u){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+i},Qn.unescape=function(e){return(e=Ms(e))&&q.test(e)?e.replace(H,fn):e},Qn.uniqueId=function(e){var t=++Pe;return Ms(e)+t},Qn.upperCase=Ks,Qn.upperFirst=$s,Qn.each=Ma,Qn.eachRight=Aa,Qn.first=Zo,lu(Qn,(Nu={},Ar(Qn,(function(e,t){_e.call(Qn.prototype,t)||(Nu[t]=e)})),Nu),{chain:!1}),Qn.VERSION="4.17.21",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Qn[e].placeholder=Qn})),Tt(["drop","take"],(function(e,t){Hn.prototype[e]=function(r){r=r===n?1:bn(gs(r),0);var i=this.__filtered__&&!t?new Hn(this):this.clone();return i.__filtered__?i.__takeCount__=Mn(r,i.__takeCount__):i.__views__.push({size:Mn(r,f),type:e+(i.__dir__<0?"Right":"")}),i},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Tt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:lo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Tt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),Tt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(au)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new Hn(this):this.map((function(n){return Cr(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(Ra(lo(e)))},Hn.prototype.slice=function(e,t){e=gs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Hn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=gs(t))<0?r.dropRight(-t):r.take(t-e)),r)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(f)},Ar(Hn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=Qn[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(Qn.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,u=t instanceof Hn,c=s[0],l=u||Ga(t),h=function(e){var t=o.apply(Qn,Ct([e],s));return i&&d?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(u=l=!1);var d=this.__chain__,p=!!this.__actions__.length,f=a&&!d,m=u&&!p;if(!a&&l){t=m?t:new Hn(this);var y=e.apply(t,s);return y.__actions__.push({func:ya,args:[h],thisArg:n}),new Vn(y,d)}return f&&m?e.apply(this,s):(y=this.thru(h),f?i?y.value()[0]:y.value():y)})})),Tt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=je[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Qn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ga(i)?i:[],e)}return this[n]((function(n){return t.apply(Ga(n)?n:[],e)}))}})),Ar(Hn.prototype,(function(e,t){var n=Qn[t];if(n){var r=n.name+"";_e.call(Dn,r)||(Dn[r]=[]),Dn[r].push({name:t,func:n})}})),Dn[Qi(n,2).name]=[{name:"wrapper",func:n}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=ji(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ji(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ji(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ga(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Qn.prototype.plant=function(e){for(var t,r=this;r instanceof Fn;){var i=Qo(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},Qn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:ya,args:[ra],thisArg:n}),new Vn(t,this.__chain__)}return this.thru(ra)},Qn.prototype.toJSON=Qn.prototype.valueOf=Qn.prototype.value=function(){return yi(this.__wrapped__,this.__actions__)},Qn.prototype.first=Qn.prototype.head,at&&(Qn.prototype[at]=function(){return this}),Qn}();pt?((pt.exports=mn)._=mn,dt._=mn):ht._=mn}).call(Hp)})),yF="_DePayConnectDialogPreviouslyConnectedWallet",gF=function(e){localStorage[yF]=e},vF=function(e){var t,n,r=eL.useRef(),i=bI(eL.useState(),2),o=i[0],a=i[1],s=bI(eL.useState(),2),u=s[0],c=s[1],l=bI(eL.useState(),2),h=l[0],d=l[1],p=bI(eL.useState(),2),f=p[0],m=p[1],y=bI(eL.useState(),2),g=y[0],v=y[1],w=bI(eL.useState(),2),b=w[0],M=w[1],A=bI(eL.useState(),2);A[0],A[1];var E=bI(eL.useState(!1),2),N=E[0],T=E[1],I=bI(eL.useState(!1),2),L=I[0],k=I[1],x=bI(eL.useState(),2),S=x[0],j=x[1];eL.useContext(uF).navigate;var C=eL.useContext(rD).accept,D=eL.createElement("div",{className:"PaddingTopS PaddingLeftM PaddingRightM"},(null===(t=e.wallet)||void 0===t?void 0:t.logo)&&eL.createElement("div",{className:"PaddingTopXS"},eL.createElement("div",{className:"LineHeightL FontSizeL PaddingTopS"},eL.createElement("span",{className:"CardImage rounded large"},eL.createElement("img",{className:"transparent",src:e.wallet.logo}))))),O=function(){return new fF({width:340,height:340,type:"svg",dotsOptions:{type:"extra-rounded"},cornersSquareOptions:{type:"rounded"},backgroundOptions:{color:"transparent"}})},z=eL.useCallback(mF.debounce((function(){var t,n;if(null!==(t=e.platform)&&void 0!==t&&t.solanaPay&&C&&C.every((function(e){return e.amount})))return e.continueWithSolanaPay();if("function"==typeof e.platform.qr){var r=O();return r.update({data:e.platform.qr()}),void j(r)}switch(null===(n=e.platform)||void 0===n?void 0:n.qr){case"WalletConnectV1":case"WalletConnectV2":if(null==S){localStorage[atob("ZGVwYXk6d2FsbGV0czp3YzI6cHJvamVjdElk")]=atob("YjFmYzJmMDZlYTIxMDdmY2Q5OWM2OGY0MTI3MTQxYWI=");var i=new zT[e.platform.qr];i.connect({name:e.wallet.name,logo:e.wallet.logo,reconnect:!0,connect:function(e){var t=e.uri,n=O();n.update({data:t}),j(n)}}).then((function(t){e.resolve(t,i)}))}break;case"WalletLink":var o=new zT[e.platform.qr];o.connect({connect:function(e){var t=e.uri,n=O();n.update({data:t}),j(n)}}).then((function(t){e.resolve(t,o)}))}}),100),[]);return eL.useEffect((function(){gI(wI.mark((function t(){var n,r,i,o,s,u,l,h,p,f,y,g;return wI.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(l=!1,null===(n=e.wallet)||void 0===n||!n.extension){t.next=7;break}return t.next=4,zT[e.wallet.extension].isAvailable();case 4:l=t.sent,t.next=11;break;case 7:if(null===(r=e.wallet)||void 0===r||!r.extensions){t.next=11;break}return t.next=10,Promise.all(e.wallet.extensions.map(function(){var e=gI(wI.mark((function e(t){return wI.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,zT[t].isAvailable();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 10:l=t.sent.filter(Boolean)[0];case 11:if(a(l),null===(i=e.platform)||void 0===i||!i.connect){t.next=21;break}return t.next=15,zT[e.platform.connect].isAvailable();case 15:if(t.t1=t.sent,t.t1){t.next=18;break}t.t1=!1;case 18:t.t0=t.t1,t.next=22;break;case 21:t.t0=!1;case 22:h=t.t0,M(h),p=!!e.platform&&e.platform.connect,c(p),f=!(null===(o=e.platform)||void 0===o||!o.copyLink),m(f),y=!!e.platform&&e.platform.open,d(y),g=(null===(s=e.platform)||void 0===s?void 0:s.solanaPay)&&C&&C.every((function(e){return e.amount}))||(null===(u=e.platform)||void 0===u?void 0:u.qr)&&(!N||"WalletLink"===e.platform.qr),v(g);case 32:case"end":return t.stop()}}),t)})))()}),[]),eL.useEffect((function(){var t,n,r,i;void 0!==b&&T(!o&&!pF()&&!(null!==(t=e.wallet)&&void 0!==t&&null!==(n=t.desktop)&&void 0!==n&&n.native)&&((null===(r=e.platform)||void 0===r?void 0:r.qr)||(null===(i=e.platform)||void 0===i?void 0:i.solanaPay)))}),[o,b]),eL.useEffect((function(){var t,n;N&&(null!==(t=e.platform)&&void 0!==t&&t.qr||null!==(n=e.platform)&&void 0!==n&&n.solanaPay)&&z()}),[N]),eL.useEffect((function(){N&&S&&r&&r.current&&(r.current.innerHTML="",S.append(r.current))}),[S]),N&&null!==(n=e.platform)&&void 0!==n&&n.solanaPay&&C&&C.every((function(e){return e.amount}))?null:eL.createElement(dF,{stacked:!0,header:D,footer:!1,body:eL.createElement("div",{className:"TextCenter PaddingBottomS"},eL.createElement("div",{className:"PaddingLeftL PaddingRightL"},eL.createElement("h1",{className:"LineHeightL Text FontSizeL FontWeightBold"},"Connect ",e.wallet.name)),!window.location.protocol.match("https")&&eL.createElement("div",{className:"PaddingTopS PaddingLeftL PaddingRightL"},eL.createElement("div",{className:"Alert FontSizeS"},eL.createElement("strong",null,"Most wallets do not connect to http!"))),!o&&!u&&!h&&!f&&!g&&eL.createElement("div",{className:"PaddingTopS PaddingBottomS PaddingLeftL PaddingRightL"},eL.createElement("div",{className:"Alert FontSizeS"},eL.createElement("strong",null,"Unable to connect to this wallet!"))),N&&eL.createElement("div",null,eL.createElement("div",{ref:r,className:"QRCode"},N&&void 0===S&&eL.createElement("div",{className:"PaddingTopS"},eL.createElement("div",{className:"Skeleton",style:{borderRadius:"18px",width:"305px",height:"305px"}},eL.createElement("div",{className:"SkeletonBackground"})))),N&&void 0===S&&eL.createElement("div",{className:"Opacity05 PaddingBottomXS PaddingTopS"},eL.createElement("small",null,"Generating QR code...")),N&&void 0!==S&&eL.createElement("div",{className:"Opacity05 PaddingBottomXS PaddingTopXS"},eL.createElement("small",null,"Scan QR code with your wallet")),(o||u||h||f)&&eL.createElement("div",null,eL.createElement("div",{className:"PaddingBottomXS PaddingTopS Opacity03",style:{display:"flex"}},eL.createElement("div",{style:{borderBottom:"1px solid black",flex:"0.4",position:"relative",top:"-9px"},className:"Opacity05"}),eL.createElement("div",{style:{flex:"0.2"},className:"PaddingLeftXS PaddingRightXS"},eL.createElement("small",null,"or")),eL.createElement("div",{style:{borderBottom:"1px solid black",flex:"0.4",position:"relative",top:"-9px"},className:"Opacity05"})))),(o||u||h||g&&!N||f)&&eL.createElement("div",{className:"PaddingLeftL PaddingRightL PaddingTopS PaddingBottomS"},o&&eL.createElement("div",{className:"PaddingBottomXS"},e.showConnectExtensionWarning&&eL.createElement("div",{className:"PaddingTopS PaddingBottomS PaddingLeftS PaddingRightS"},eL.createElement("div",{className:"Alert"},eL.createElement("span",{className:"FontWeightBold PaddingBottomXS"},"You wallet extension window is already asking to connect. It might be hidden."))),e.connectingExtension&&eL.createElement("div",{className:"Card disabled small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},eL.createElement("div",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},eL.createElement("div",{className:"PaddingTopXS"},eL.createElement("div",{className:"Loading Icon medium",style:{position:"relative"}}))),eL.createElement("div",{className:"PaddingLeftS LineHeightXS"},eL.createElement("div",{className:"CardText FontWeightMedium"},"Connecting extension"))),!e.connectingExtension&&eL.createElement("button",{onClick:function(){return e.connectExtension(e.wallet)},className:"Card small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},eL.createElement("span",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},eL.createElement("img",{className:"transparent ",title:"Connect your wallet",style:{height:"26px"},src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAyNTAgMjUwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyNTAgMjUwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPHBhdGggZD0iTTE3Mi44LDY4LjNjLTQuOS0yLjItNy40LTguNC00LjUtMTMuNmM1LjMtOS40LDEwLTE4LjYsNC4zLTI5LjFjLTctMTIuNy0yNC4xLTE3LjQtMzYuNi0xMGMtMTUuNCw5LjEtMTMuNCwyNS42LTUuMSwzOC45CgkJYzMuMyw1LjIsMC45LDExLjYtNC4yLDEzLjlsLTYxLjIsMC4xbDAsMC44bDAuMSwyMS44bDAuMSwzNy45Yy0xLjksNS41LTguNyw4LjQtMTQuMSw1Yy0xMy40LTguMy0yOS44LTEwLjEtMzguOSw1LjMKCQljLTcuMywxMi41LTIuNSwyOS43LDEwLjIsMzYuNWMxMC41LDUuNywxOS43LDEsMjkuMS00LjRjNS40LTMuMSwxMS45LTAuMywxMy44LDVsMC4xLDU5LjhsNTcuMi0wLjFjMC4xLDAsMC4yLDAsMC4zLDBsMy42LDAKCQljNS0yLjMsNy40LTguNyw0LjItMTMuOWMtOC4zLTEzLjMtMTAuMy0yOS44LDUuMS0zOC45YzEyLjUtNy40LDI5LjYtMi43LDM2LjYsMTBjNS43LDEwLjUsMS4xLDE5LjctNC4zLDI5LjEKCQljLTIuOSw1LjItMC41LDExLjQsNC41LDEzLjZsMy42LDBjMC4xLDAsMC4yLDAsMC4zLDBsNTYuNS0wLjFsLTAuMS01OC44Yy0xLjQtNi42LTcuOC05LjItMTQuMS01LjhjLTkuNSw1LjItMTcuOSw5LjgtMjguNCw0LjEKCQljLTEyLjgtNi45LTE4LjItMjMuNy0xMC45LTM2LjNjOS0xNS40LDI1LjUtMTMuNiwzOC45LTUuM2M1LjcsMy41LDEyLjksMC4yLDE0LjQtNS45bC0wLjEtMzUuNEwyMzMuMyw2OWwwLTAuOEwxNzIuOCw2OC4zeiIvPgo8L2c+Cjwvc3ZnPgo="})),eL.createElement("div",{className:"PaddingLeftS LineHeightXS"},eL.createElement("div",{className:"CardText FontWeightMedium"},"Connect extension")))),u&&eL.createElement("div",{className:"PaddingBottomXS"},e.connectingApp&&eL.createElement("div",{className:"Card disabled small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},eL.createElement("div",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},eL.createElement("div",{className:"PaddingTopXS"},eL.createElement("div",{className:"Loading Icon medium",style:{position:"relative"}}))),eL.createElement("div",{className:"PaddingLeftS LineHeightXS"},eL.createElement("div",{className:"CardText FontWeightMedium"},"Connecting app"))),!e.connectingApp&&eL.createElement("button",{onClick:function(){return e.connectViaRedirect(e.wallet)},className:"Card small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},eL.createElement("span",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},eL.createElement("img",{className:"transparent ",title:"Click to connect app",style:{height:"26px",width:"26px",borderRadius:"8px"},src:e.wallet.logo})),eL.createElement("div",{className:"PaddingLeftS LineHeightXS"},eL.createElement("div",{className:"CardText FontWeightMedium"},"Connect app")))),h&&eL.createElement("div",{className:"PaddingBottomXS"},eL.createElement("button",{onClick:function(){return e.openInApp(e.wallet)},className:"Card small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},eL.createElement("span",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},eL.createElement("img",{className:"transparent ",title:"Click to open in app",style:{height:"26px",width:"26px",borderRadius:"8px"},src:e.wallet.logo})),eL.createElement("div",{className:"PaddingLeftS LineHeightXS"},eL.createElement("div",{className:"CardText FontWeightMedium"},"Open in app")))),g&&!N&&eL.createElement("div",{className:"PaddingBottomXS"},eL.createElement("button",{onClick:function(){T(!0),z()},className:"Card small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},eL.createElement("span",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},eL.createElement("img",{className:"transparent ",title:"Scan QR code to connect a mobile wallet",style:{height:"26px"},src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHN2ZyAgUFVCTElDICctLy9XM0MvL0RURCBTVkcgMS4xLy9FTicgICdodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQnPgo8c3ZnIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDEwMDAgMTAwMCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIwIDAgMWUzIDFlMyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1ldGFkYXRhPiBTdmcgVmVjdG9yIEljb25zIDogaHR0cDovL3d3dy5vbmxpbmV3ZWJmb250cy5jb20vaWNvbiA8L21ldGFkYXRhPgo8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDUxMSkgc2NhbGUoLjEgLS4xKSI+PHBhdGggZD0ibTEwMCAyNzk3LjF2LTIyMTIuOWg0NDI1Ljh2NDQyNS44aC00NDI1Ljh2LTIyMTIuOXptMzQ3Ny40IDB2LTEyNjQuNWgtMjUyOXYyNTI5aDI1Mjl2LTEyNjQuNXoiLz48cGF0aCBkPSJtMTY4MC42IDI3OTcuMXYtNjMyLjNoMTI2NC42djEyNjQuNmgtMTI2NC42di02MzIuM3oiLz48cGF0aCBkPSJtNTQ3NC4yIDI3OTcuMXYtMjIxMi45aDQ0MjUuOHY0NDI1LjhoLTQ0MjUuOHYtMjIxMi45em0zNDc3LjQgMHYtMTI2NC41aC0yNTI5djI1MjloMjUyOXYtMTI2NC41eiIvPjxwYXRoIGQ9Im03MDU0LjggMjc5Ny4xdi02MzIuM2gxMjY0LjZ2MTI2NC42aC0xMjY0LjZ2LTYzMi4zeiIvPjxwYXRoIGQ9Im0xMDAtMjU3Ny4xdi0yMjEyLjloNDQyNS44djQ0MjUuOGgtNDQyNS44di0yMjEyLjl6bTM0NzcuNCAwdi0xMjY0LjVoLTI1Mjl2MjUyOWgyNTI5di0xMjY0LjV6Ii8+PHBhdGggZD0ibTE2ODAuNi0yNTc3LjF2LTYzMi4zaDEyNjQuNnYxMjY0LjZoLTEyNjQuNnYtNjMyLjN6Ii8+PHBhdGggZD0ibTU0NzQuMi05MTcuNHYtNTUzLjJoMTEwNi40di0xMTA2LjRoLTExMDYuNHYtMTEwNi40aDExMDYuNHYtMTEwNi42aDExMDYuNHYxMTA2LjRoMTEwNi40di0xMTA2LjRoMTEwNi42djExMDYuNGgtMTEwNi40djExMDYuNGgxMTA2LjR2MTEwNi40aC0xMTA2LjR2MTEwNi40aC0xMTA2LjR2LTExMDYuNGgtMTEwNi40djExMDYuNGgtMTEwNi40di01NTN6bTMzMTkuMy0xMTA2LjV2LTU1My4yaC0xMTA2LjR2LTExMDYuNGgtMTEwNi40djExMDYuNGgxMTA2LjR2MTEwNi40aDExMDYuNHYtNTUzLjJ6Ii8+PC9nPgo8L3N2Zz4K"})),eL.createElement("div",{className:"PaddingLeftS LineHeightXS"},eL.createElement("div",{className:"CardText FontWeightMedium"},"Scan QR code")))),f&&eL.createElement("div",{className:"PaddingBottomXS TooltipWrapper"},eL.createElement("button",{onClick:function(){var t=new zT[e.platform.copyLink];t.connect({name:e.wallet.name,logo:e.wallet.logo,reconnect:!0,connect:function(e){!function(e,t){const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0&&document.getSelection().getRangeAt(0);n.select();let i=!1;try{i=!!document.execCommand("copy")}catch(e){i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}(e.uri),k(!0),setTimeout((function(){return k(!1)}),3e3)}}).then((function(n){e.resolve(n,t)}))},className:"Card small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},eL.createElement("span",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},eL.createElement("img",{className:"transparent ",title:"Copy connection link",style:{height:"26px"},src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB3aWR0aD0iNTEycHgiIGhlaWdodD0iNTEycHgiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwYXRoIGZpbGw9IiMwMTAxMDEiIGQ9Ik00NTkuNjU0LDIzMy4zNzNsLTkwLjUzMSw5MC41Yy00OS45NjksNTAtMTMxLjAzMSw1MC0xODEsMGMtNy44NzUtNy44NDQtMTQuMDMxLTE2LjY4OC0xOS40MzgtMjUuODEzDQoJbDQyLjA2My00Mi4wNjNjMi0yLjAxNiw0LjQ2OS0zLjE3Miw2LjgyOC00LjUzMWMyLjkwNiw5LjkzOCw3Ljk4NCwxOS4zNDQsMTUuNzk3LDI3LjE1NmMyNC45NTMsMjQuOTY5LDY1LjU2MywyNC45MzgsOTAuNSwwDQoJbDkwLjUtOTAuNWMyNC45NjktMjQuOTY5LDI0Ljk2OS02NS41NjMsMC05MC41MTZjLTI0LjkzOC0yNC45NTMtNjUuNTMxLTI0Ljk1My05MC41LDBsLTMyLjE4OCwzMi4yMTkNCgljLTI2LjEwOS0xMC4xNzItNTQuMjUtMTIuOTA2LTgxLjY0MS04Ljg5MWw2OC41NzgtNjguNTc4YzUwLTQ5Ljk4NCwxMzEuMDMxLTQ5Ljk4NCwxODEuMDMxLDANCglDNTA5LjYyMywxMDIuMzQyLDUwOS42MjMsMTgzLjM4OSw0NTkuNjU0LDIzMy4zNzN6IE0yMjAuMzI2LDM4Mi4xODZsLTMyLjIwMywzMi4yMTljLTI0Ljk1MywyNC45MzgtNjUuNTYzLDI0LjkzOC05MC41MTYsMA0KCWMtMjQuOTUzLTI0Ljk2OS0yNC45NTMtNjUuNTYzLDAtOTAuNTMxbDkwLjUxNi05MC41YzI0Ljk2OS0yNC45NjksNjUuNTQ3LTI0Ljk2OSw5MC41LDBjNy43OTcsNy43OTcsMTIuODc1LDE3LjIwMywxNS44MTMsMjcuMTI1DQoJYzIuMzc1LTEuMzc1LDQuODEzLTIuNSw2LjgxMy00LjVsNDIuMDYzLTQyLjA0N2MtNS4zNzUtOS4xNTYtMTEuNTYzLTE3Ljk2OS0xOS40MzgtMjUuODI4Yy00OS45NjktNDkuOTg0LTEzMS4wMzEtNDkuOTg0LTE4MS4wMTYsMA0KCWwtOTAuNSw5MC41Yy00OS45ODQsNTAtNDkuOTg0LDEzMS4wMzEsMCwxODEuMDMxYzQ5Ljk4NCw0OS45NjksMTMxLjAzMSw0OS45NjksMTgxLjAxNiwwbDY4LjU5NC02OC41OTQNCglDMjc0LjU2MSwzOTUuMDkyLDI0Ni40MiwzOTIuMzQyLDIyMC4zMjYsMzgyLjE4NnoiLz4NCjwvc3ZnPg0K"})),eL.createElement("div",{className:"PaddingLeftS LineHeightXS"},eL.createElement("div",{className:"CardText FontWeightMedium"},"Copy connection link"))),L&&eL.createElement("div",{className:"Tooltip absolute top"},eL.createElement("span",{className:"TooltipArrowDown"}),"Connection link copied"))))})},wF=function(){return navigator.userAgent.toLowerCase().includes("android")},bF=function(){var e=navigator.userAgent.toLowerCase();return e.includes("webview")||e.includes("wv")||navigator.userAgent.toLowerCase().match(/\) mobile\//)&&!e.includes("safari")},MF=function(e){var t,n;if(pF()){if(wF())t=null===(n=e.mobile)||void 0===n?void 0:n.android;else if(Boolean(/iPad|iPhone|iPod/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)){var r;t=null===(r=e.mobile)||void 0===r?void 0:r.ios}}else t=e.desktop;return t},AF=function(){return eL.createElement("div",{className:"PoweredByWrapper"},eL.createElement("a",{href:"https://depay.com",rel:"noopener noreferrer",target:"_blank",className:"PoweredByLink"},"by DePay"))},EF=function(e){var t,n=e.wallet.extensions.map((function(e){return zT[e].info.blockchains})).flat();e.accept&&(n=n.filter((function(t){return e.accept.some((function(e){return e.blockchain===t}))})));return eL.createElement(dF,{header:eL.createElement("div",{className:"PaddingTopS PaddingBottomS PaddingLeftM PaddingRightM"},(null===(t=e.wallet)||void 0===t?void 0:t.logo)&&eL.createElement("div",{className:"PaddingTopXS"},eL.createElement("div",{className:"LineHeightL FontSizeL PaddingTopS"},eL.createElement("span",{className:"CardImage rounded large"},eL.createElement("img",{className:"transparent",src:e.wallet.logo})))),eL.createElement("div",null,eL.createElement("h1",{className:"LineHeightL Text FontSizeL FontWeightBold"},"Select Blockchain"))),stacked:!0,bodyClassName:"ScrollHeight",body:eL.createElement("div",null,n.map((function(t){return eL.createElement("div",{key:t,className:"Card Row TextLeft",onClick:function(){return function(t){e.onSelect(e.wallet.extensions.find((function(e){return zT[e].info.blockchains.includes(t)})))}(t)}},eL.createElement("div",{className:"CardImage"},eL.createElement("img",{className:"transparent BlockchainLogo",src:Vp[t].logo,style:{backgroundColor:Vp[t].logoBackgroundColor}})),eL.createElement("div",{className:"CardBody"},eL.createElement("span",{className:"CardText"},Vp[t].label)))}))),footer:null})};function NF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var TF=function(e){var t=bI(eL.useState(0),2),n=t[0],r=t[1];return eL.useEffect((function(){var t=function(){r(n+1),0!=n&&e.hide()};return window.addEventListener("click",t),function(){window.removeEventListener("click",t)}}),[e.open,n]),eL.createElement("div",{className:"DropDown ".concat(e.open?"open":"")},eL.createElement("ul",null,e.items.map((function(e,t){return eL.createElement("li",{key:t},eL.createElement("button",{className:"DropDownItem",onClick:function(){return e.action()}},e.label))}))))},IF=function(e){return eL.createElement("svg",{className:"MenuIcon Icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"},eL.createElement("line",{x1:"11.6",y1:"17.6",x2:"11.6",y2:"17.6"}),eL.createElement("line",{x1:"11.6",y1:"11.8",x2:"11.6",y2:"11.8"}),eL.createElement("line",{x1:"11.6",y1:"6.2",x2:"11.6",y2:"6.2"}))};function LF(e){return Array.isArray?Array.isArray(e):"[object Array]"===OF(e)}function kF(e){return"string"==typeof e}function xF(e){return"number"==typeof e}function SF(e){return!0===e||!1===e||function(e){return jF(e)&&null!==e}(e)&&"[object Boolean]"==OF(e)}function jF(e){return"object"==typeof e}function CF(e){return null!=e}function DF(e){return!e.trim().length}function OF(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const zF=Object.prototype.hasOwnProperty;class _F{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=PF(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function PF(e){let t=null,n=null,r=null,i=1,o=null;if(kF(e)||LF(e))r=e,t=RF(e),n=BF(e);else{if(!zF.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const a=e.name;if(r=a,zF.call(e,"weight")&&(i=e.weight,i<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(a));t=RF(a),n=BF(a),o=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:o}}function RF(e){return LF(e)?e:e.split(".")}function BF(e){return LF(e)?e.join("."):e}var UF={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx{if(CF(e))if(t[o]){const a=e[t[o]];if(!CF(a))return;if(o===t.length-1&&(kF(a)||xF(a)||SF(a)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(a));else if(LF(a)){r=!0;for(let e=0,n=a.length;e{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,kF(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();kF(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(CF(i))if(LF(i)){let e=[];const t=[{nestedArrIndex:-1,value:i}];for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop();if(CF(r))if(kF(r)&&!DF(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else LF(r)&&r.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[r]=e}else if(kF(i)&&!DF(i)){let e={v:i,n:this.norm.get(i)};n.$[r]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function YF(e,t,{getFn:n=UF.getFn,fieldNormWeight:r=UF.fieldNormWeight}={}){const i=new QF({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(PF)),i.setSources(t),i.create(),i}function FF(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:i=UF.distance,ignoreLocation:o=UF.ignoreLocation}={}){const a=t/e.length;if(o)return a;const s=Math.abs(r-n);return i?a+s/i:s?1:a}function VF(e,t,n,{location:r=UF.location,distance:i=UF.distance,threshold:o=UF.threshold,findAllMatches:a=UF.findAllMatches,minMatchCharLength:s=UF.minMatchCharLength,includeMatches:u=UF.includeMatches,ignoreLocation:c=UF.ignoreLocation}={}){if(t.length>32)throw new Error((e=>`Pattern length exceeds max of ${e}.`)(32));const l=t.length,h=e.length,d=Math.max(0,Math.min(r,h));let p=o,f=d;const m=s>1||u,y=m?Array(h):[];let g;for(;(g=e.indexOf(t,f))>-1;){let e=FF(t,{currentLocation:g,expectedLocation:d,distance:i,ignoreLocation:c});if(p=Math.min(e,p),f=g+l,m){let e=0;for(;e=u;o-=1){let a=o-1,s=n[e.charAt(a)];if(m&&(y[a]=+!!s),A[o]=(A[o+1]<<1|1)&s,r&&(A[o]|=(v[o+1]|v[o])<<1|1|v[o+1]),A[o]&M&&(w=FF(t,{errors:r,currentLocation:a,expectedLocation:d,distance:i,ignoreLocation:c}),w<=p)){if(p=w,f=a,f<=d)break;u=Math.max(1,2*d-f)}}if(FF(t,{errors:r+1,currentLocation:d,expectedLocation:d,distance:i,ignoreLocation:c})>p)break;v=A}const A={isMatch:f>=0,score:Math.max(.001,w)};if(m){const e=function(e=[],t=UF.minMatchCharLength){let n=[],r=-1,i=-1,o=0;for(let a=e.length;o=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}(y,s);e.length?u&&(A.indices=e):A.isMatch=!1}return A}function HF(e){let t={};for(let n=0,r=e.length;n{this.chunks.push({pattern:e,alphabet:HF(e),startIndex:t})},l=this.pattern.length;if(l>32){let e=0;const t=l%32,n=l-t;for(;e{const{isMatch:f,score:m,indices:y}=VF(e,t,d,{location:r+p,distance:i,threshold:o,findAllMatches:a,minMatchCharLength:s,includeMatches:n,ignoreLocation:u});f&&(h=!0),l+=m,f&&y&&(c=[...c,...y])}));let d={isMatch:h,score:h?l/this.chunks.length:1};return h&&n&&(d.indices=c),d}}class qF{constructor(e){this.pattern=e}static isMultiMatch(e){return ZF(e,this.multiRegex)}static isSingleMatch(e){return ZF(e,this.singleRegex)}search(){}}function ZF(e,t){const n=e.match(t);return n?n[1]:null}class JF extends qF{constructor(e,{location:t=UF.location,threshold:n=UF.threshold,distance:r=UF.distance,includeMatches:i=UF.includeMatches,findAllMatches:o=UF.findAllMatches,minMatchCharLength:a=UF.minMatchCharLength,isCaseSensitive:s=UF.isCaseSensitive,ignoreLocation:u=UF.ignoreLocation}={}){super(e),this._bitapSearch=new GF(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class XF extends qF{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const r=[],i=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);const o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}const KF=[class extends qF{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},XF,class extends qF{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends qF{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends qF{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends qF{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends qF{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},JF],$F=KF.length,eV=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const tV=new Set([JF.type,XF.type]);class nV{constructor(e,{isCaseSensitive:t=UF.isCaseSensitive,includeMatches:n=UF.includeMatches,minMatchCharLength:r=UF.minMatchCharLength,ignoreLocation:i=UF.ignoreLocation,findAllMatches:o=UF.findAllMatches,location:a=UF.location,threshold:s=UF.threshold,distance:u=UF.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:r,findAllMatches:o,ignoreLocation:i,location:a,threshold:s,distance:u},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let n=e.trim().split(eV).filter((e=>e&&!!e.trim())),r=[];for(let e=0,i=n.length;e!(!e[oV]&&!e[aV]),lV=e=>({[oV]:Object.keys(e).map((t=>({[t]:e[t]})))});function hV(e,t,{auto:n=!0}={}){const r=e=>{let i=Object.keys(e);const o=(e=>!!e[sV])(e);if(!o&&i.length>1&&!cV(e))return r(lV(e));if((e=>!LF(e)&&jF(e)&&!cV(e))(e)){const r=o?e[sV]:i[0],a=o?e[uV]:e[r];if(!kF(a))throw new Error((e=>`Invalid value for key ${e}`)(r));const s={keyId:BF(r),pattern:a};return n&&(s.searcher=iV(a,t)),s}let a={children:[],operator:i[0]};return i.forEach((t=>{const n=e[t];LF(n)&&n.forEach((e=>{a.children.push(r(e))}))})),a};return cV(e)||(e=lV(e)),r(e)}function dV(e,t){const n=e.matches;t.matches=[],CF(n)&&n.forEach((e=>{if(!CF(e.indices)||!e.indices.length)return;const{indices:n,value:r}=e;let i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)}))}function pV(e,t){t.score=e.score}class fV{constructor(e,t={},n){this.options={...UF,...t},this.options.useExtendedSearch,this._keyStore=new _F(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof QF))throw new Error("Incorrect 'index' type");this._myIndex=t||YF(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){CF(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let n=0,r=this._docs.length;n{let n=1;e.matches.forEach((({key:e,norm:r,score:i})=>{const o=e?e.weight:null;n*=Math.pow(0===i&&o?Number.EPSILON:i,(o||1)*(t?1:r))})),e.score=n}))}(s,{ignoreFieldNorm:a}),i&&s.sort(o),xF(t)&&t>-1&&(s=s.slice(0,t)),function(e,t,{includeMatches:n=UF.includeMatches,includeScore:r=UF.includeScore}={}){const i=[];return n&&i.push(dV),r&&i.push(pV),e.map((e=>{const{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach((t=>{t(e,r)})),r}))}(s,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){const t=iV(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((({v:e,i:n,n:i})=>{if(!CF(e))return;const{isMatch:o,score:a,indices:s}=t.searchIn(e);o&&r.push({item:e,idx:n,matches:[{score:a,value:e,norm:i,indices:s}]})})),r}_searchLogical(e){const t=hV(e,this.options),n=(e,t,r)=>{if(!e.children){const{keyId:n,searcher:i}=e,o=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i});return o&&o.length?[{idx:r,item:t,matches:o}]:[]}const i=[];for(let o=0,a=e.children.length;o{if(CF(e)){let a=n(t,e,r);a.length&&(i[r]||(i[r]={idx:r,item:e,matches:[]},o.push(i[r])),a.forEach((({matches:e})=>{i[r].matches.push(...e)})))}})),o}_searchObjectList(e){const t=iV(e,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach((({$:e,i:r})=>{if(!CF(e))return;let o=[];n.forEach(((n,r)=>{o.push(...this._findMatches({key:n,value:e[r],searcher:t}))})),o.length&&i.push({idx:r,item:e,matches:o})})),i}_findMatches({key:e,value:t,searcher:n}){if(!CF(t))return[];let r=[];if(LF(t))t.forEach((({v:t,i:i,n:o})=>{if(!CF(t))return;const{isMatch:a,score:s,indices:u}=n.searchIn(t);a&&r.push({score:s,key:e,value:t,idx:i,norm:o,indices:u})}));else{const{v:i,n:o}=t,{isMatch:a,score:s,indices:u}=n.searchIn(i);a&&r.push({score:s,key:e,value:i,norm:o,indices:u})}return r}} /** * react-virtual * diff --git a/dist/esm/index.evm.js b/dist/esm/index.evm.js index 60745400..00c4dad9 100644 --- a/dist/esm/index.evm.js +++ b/dist/esm/index.evm.js @@ -22511,14 +22511,14 @@ var ConnectWalletDialog = (function (props) { style: { width: "50px" } + }, /*#__PURE__*/React.createElement("div", { + className: "PaddingTopXS" }, /*#__PURE__*/React.createElement("div", { className: "Loading Icon medium", style: { - position: 'relative', - top: '4px', - left: '1px' + position: 'relative' } - })), /*#__PURE__*/React.createElement("div", { + }))), /*#__PURE__*/React.createElement("div", { className: "PaddingLeftS LineHeightXS" }, /*#__PURE__*/React.createElement("div", { className: "CardText FontWeightMedium" @@ -22558,14 +22558,14 @@ var ConnectWalletDialog = (function (props) { style: { width: "50px" } + }, /*#__PURE__*/React.createElement("div", { + className: "PaddingTopXS" }, /*#__PURE__*/React.createElement("div", { className: "Loading Icon medium", style: { - position: 'relative', - top: '2px', - left: '0px' + position: 'relative' } - })), /*#__PURE__*/React.createElement("div", { + }))), /*#__PURE__*/React.createElement("div", { className: "PaddingLeftS LineHeightXS" }, /*#__PURE__*/React.createElement("div", { className: "CardText FontWeightMedium" diff --git a/dist/esm/index.evm.js.map b/dist/esm/index.evm.js.map index dcb8d6f0..3cb65a02 100644 --- a/dist/esm/index.evm.js.map +++ b/dist/esm/index.evm.js.map @@ -1 +1 @@ -{"version":3,"file":"index.evm.js","sources":["../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js","../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","../../src/blockchains.js","../../src/helpers/allWallets.js","../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","../../node_modules/@babel/runtime/helpers/esm/typeof.js","../../node_modules/regenerator-runtime/runtime.js","../../node_modules/@babel/runtime/regenerator/index.js","../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js","../../src/contexts/ClosableContext.js","../../src/contexts/UpdatableContext.js","../../src/providers/ClosableProvider.jsx","../../src/contexts/ConfigurationContext.js","../../src/components/ChevronLeft.jsx","../../src/components/CloseIcon.jsx","../../src/components/Dialog.jsx","../../src/graphics/extension.js","../../src/helpers/isMobile.js","../../src/graphics/link.js","../../src/graphics/qrcode.js","../../node_modules/lodash/lodash.js","../../src/helpers/previouslyConnectedWallet.js","../../src/dialogs/ConnectWalletDialog.jsx","../../src/helpers/isAndroid.js","../../src/helpers/isWebView.js","../../src/helpers/isIOS.js","../../src/helpers/platformForWallet.js","../../src/components/PoweredBy.jsx","../../src/helpers/safeAppUrl.js","../../src/helpers/safeUniversalUrl.js","../../src/dialogs/SelectPlatformDialog.jsx","../../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../../src/components/DropDown.jsx","../../src/components/MenuIcon.jsx","../../src/components/SelectWalletList.jsx","../../src/dialogs/SelectWalletDialog.jsx","../../src/graphics/questions.js","../../src/dialogs/WhatIsAWalletDialog.jsx","../../src/stacks/ConnectStack.js","../../src/helpers/ensureDocument.js","../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js","../../node_modules/@babel/runtime/helpers/esm/createClass.js","../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../../node_modules/@babel/runtime/helpers/esm/inherits.js","../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","../../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","../../src/contexts/ErrorContext.js","../../src/graphics/error.js","../../node_modules/@depay/react-dialog/dist/esm/index.js","../../src/providers/ErrorProvider.jsx","../../src/styles/AlertStyle.js","../../src/styles/ButtonCircularStyle.js","../../src/styles/ButtonPrimaryStyle.js","../../src/styles/CardStyle.js","../../src/styles/DialogStyle.js","../../src/styles/DropDownStyle.js","../../src/styles/FontStyle.js","../../src/styles/GraphicStyle.js","../../src/styles/GridStyle.js","../../src/styles/HeightStyle.js","../../src/styles/IconStyle.js","../../src/styles/ImageStyle.js","../../src/styles/InputStyle.js","../../src/styles/LinkStyle.js","../../src/styles/LoadingTextStyle.js","../../src/styles/LogoStyle.js","../../src/styles/OpacityStyle.js","../../src/styles/PaddingStyle.js","../../src/styles/PoweredByStyle.js","../../src/styles/QRCodeStyle.js","../../src/styles/RangeSliderStyle.js","../../src/styles/ResetStyle.js","../../src/styles/SearchStyle.js","../../src/styles/SkeletonStyle.js","../../src/styles/TableStyle.js","../../src/styles/TabStyle.js","../../src/styles/TextButtonStyle.js","../../src/styles/TextStyle.js","../../src/styles/TokenAmountStyle.js","../../src/styles/TokenImageStyle.js","../../src/styles/TooltipStyle.js","../../src/styles/WalletStyle.js","../../src/helpers/style.js","../../src/helpers/mount.js","../../src/helpers/requireReactVersion.js","../../src/contexts/SelectionContext.js","../../src/providers/SelectionProvider.jsx","../../src/providers/UpdatableProvider.jsx","../../src/Connect.jsx","../../src/contexts/NavigateContext.js","../../src/dialogs/LoadingDialog.jsx","../../src/stacks/LoadingStack.js","../../src/providers/NavigateProvider.jsx","../../node_modules/@depay/js-verify-signature-web/dist/esm/index.web.js","../../src/providers/ConfigurationProvider.jsx","../../src/Loading.jsx","../../src/contexts/WalletContext.js","../../src/dialogs/SignLoginDialog.js","../../src/stacks/LoginStack.js","../../src/helpers/round.js","../../src/helpers/format.js","../../src/dialogs/PaymentBlockchainsDialog.jsx","../../src/contexts/SolanaPayContext.js","../../src/dialogs/WalletMissesBlockchainSupportDialog.jsx","../../src/providers/WalletProvider.jsx","../../src/Login.jsx","../../src/contexts/ChangableAmountContext.js","../../src/contexts/ConversionRateContext.js","../../src/providers/ChangableAmountProvider.jsx","../../src/providers/ConversionRateProvider.jsx","../../src/contexts/PaymentAmountRoutingContext.js","../../src/helpers/findMaxRoute.js","../../src/contexts/PaymentRoutingContext.js","../../src/helpers/routePayments.js","../../src/providers/PaymentRoutingProvider.jsx","../../src/providers/PaymentAmountRoutingProvider.jsx","../../src/graphics/insufficient.js","../../src/dialogs/InsufficientAmountOfTokensDialog.jsx","../../src/dialogs/NoPaymentOptionFoundDialog.jsx","../../src/contexts/PaymentContext.js","../../src/dialogs/PaymentOptionsDialog.jsx","../../src/contexts/PaymentTrackingContext.js","../../src/contexts/TransactionTrackingContext.js","../../src/providers/PaymentProvider.jsx","../../src/contexts/PaymentValueContext.js","../../src/dialogs/ChangeAmountDialog.jsx","../../src/skeletons/ChangePaymentSkeleton.jsx","../../src/dialogs/ChangePaymentDialog.jsx","../../src/dialogs/PaymentFailedDialog.jsx","../../src/components/ChevronRight.jsx","../../src/components/Checkmark.jsx","../../src/components/DigitalWalletIcon.jsx","../../src/helpers/etaForConfirmations.js","../../src/components/LoadingText.jsx","../../src/components/Footer.jsx","../../src/skeletons/PaymentOverviewSkeleton.jsx","../../src/dialogs/PaymentOverviewDialog.jsx","../../src/dialogs/TracingFailedDialog.js","../../src/dialogs/TrackingFailedDialog.jsx","../../src/dialogs/WrongNetworkDialog.jsx","../../src/stacks/PaymentStack.js","../../src/helpers/getNonce.js","../../src/providers/PaymentTrackingProvider.jsx","../../src/providers/PaymentValueProvider.jsx","../../src/stacks/SolanaPayStack.js","../../src/providers/SolanaPayProvider.jsx","../../src/helpers/supportedCurrencies.js","../../src/providers/TransactionTrackingProvider.jsx","../../src/Payment.jsx","../../src/contexts/SaleRoutingContext.js","../../src/contexts/ToTokenContext.js","../../src/providers/ToTokenProvider.jsx","../../src/providers/SaleRoutingProvider.jsx","../../src/skeletons/SaleOverviewSkeleton.jsx","../../src/dialogs/SaleOverviewDialog.jsx","../../src/stacks/SaleStack.js","../../src/Sale.jsx","../../src/helpers/addressEllipsis.js","../../src/helpers/msToTime.js","../../src/dialogs/ConfirmNFTSelectionDialog.jsx","../../src/dialogs/EnterNFTDataManuallyDialog.jsx","../../src/dialogs/SelectBlockchainDialog.jsx","../../src/stacks/SelectNFTStack.js","../../src/dialogs/ConfirmTokenSelectionDialog.jsx","../../src/dialogs/SelectTokenDialog.jsx","../../src/stacks/SelectTokenStack.js","../../src/Select.jsx","../../src/index.js"],"sourcesContent":["export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}","export default function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","export default function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}","/*#if _EVM\n\nlet supported = ['ethereum', 'bsc', 'polygon', 'arbitrum', 'optimism', 'base', 'avalanche', 'gnosis', 'fantom']\nsupported.evm = ['ethereum', 'bsc', 'polygon', 'arbitrum', 'optimism', 'base', 'avalanche', 'gnosis', 'fantom']\nsupported.svm = []\nsupported.solana = []\n\n/*#elif _SOLANA\n\nlet supported = ['solana']\nsupported.evm = []\nsupported.svm = ['solana']\nsupported.solana = ['solana']\n\n//#else */\n\nlet supported = ['ethereum', 'bsc', 'polygon', 'solana', 'arbitrum', 'optimism', 'base', 'avalanche', 'gnosis', 'fantom']\nsupported.evm = ['ethereum', 'bsc', 'polygon', 'arbitrum', 'optimism', 'base', 'avalanche', 'gnosis', 'fantom']\nsupported.svm = ['solana']\nsupported.solana = ['solana']\n\n//#endif\n\nexport { supported }\n","/*#if _EVM\n\nimport { wallets } from '@depay/web3-wallets-evm'\n\n/*#elif _SOLANA\n\nimport { wallets } from '@depay/web3-wallets-solana'\n\n//#else */\n\nimport { wallets } from '@depay/web3-wallets'\n\n//#endif\n\nimport Blockchains from '@depay/web3-blockchains'\nimport { supported } from '../blockchains'\n\nexport default [\n {\n \"name\": \"Coinbase\",\n \"extensions\": [\"CoinbaseEVM\", \"CoinbaseSVM\"],\n \"desktop\": { \"qr\": \"WalletLink\" },\n \"mobile\": { \n \"ios\": { \"native\": \"cbwallet://dapp\", \"universal\": \"https://go.cb-w.com/dapp\", \"open\": ()=>`cbwallet://dapp?url=${encodeURIComponent(window.location.toString())}` },\n \"android\": { \"native\": \"cbwallet://dapp\", \"universal\": \"https://go.cb-w.com/dapp\", \"open\": ()=>`https://go.cb-w.com/dapp?cb_url=${encodeURIComponent(window.location.toString())}` },\n },\n \"logo\": wallets.CoinbaseEVM?.info?.logo,\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"MetaMask\",\n \"extension\": \"MetaMask\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"metamask:\", \"universal\": \"https://metamask.app.link\", \"qr\": \"WalletConnectV1\", \"connect\":\"WalletConnectV2\" },\n \"android\": { \"native\": \"metamask:\", \"universal\": \"https://metamask.app.link\", \"qr\": \"WalletConnectV1\", \"connect\":\"WalletConnectV2\" },\n },\n \"logo\": wallets.MetaMask?.info?.logo,\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Phantom\",\n \"extensions\": [\"PhantomSVM\", \"PhantomEVM\"],\n \"desktop\": {\n \"solanaPay\": true,\n \"qr\": ()=>`phantom://browse/${encodeURIComponent(window.location.toString())}?ref=${encodeURIComponent(window.location.origin.toString())}`\n },\n \"mobile\": {\n \"ios\": {\n \"native\": \"phantom:\",\n \"open\": ()=>`https://phantom.app/ul/browse/${encodeURIComponent(window.location.toString())}?ref=${encodeURIComponent(window.location.origin.toString())}`,\n \"qr\": ()=>`phantom://browse/${encodeURIComponent(window.location.toString())}?ref=${encodeURIComponent(window.location.origin.toString())}`,\n \"solanaPay\": true,\n },\n \"android\": {\n \"native\": \"phantom:\",\n \"connect\": \"SolanaMobileWalletAdapter\",\n \"qr\": ()=>`phantom://browse/${encodeURIComponent(window.location.toString())}?ref=${encodeURIComponent(window.location.origin.toString())}`,\n \"solanaPay\": true,\n },\n },\n \"logo\": wallets.PhantomSVM?.info?.logo,\n \"blockchains\": [...supported.solana]\n },\n {\n \"name\": \"Trust Wallet\",\n \"extensions\": [\"TrustEVM\", \"TrustSVM\"],\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"trust:\", \"universal\": \"https://link.trustwallet.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"trust:\", \"universal\": \"https://link.trustwallet.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": wallets.TrustEVM?.info?.logo,\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Binance Wallet\",\n \"extension\": \"Binance\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"bnc://app.binance.com/cedefi/\", \"universal\": \"https://app.binance.com/cedefi\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"bnc://app.binance.com/cedefi/\", \"universal\": \"https://app.binance.com/cedefi\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": wallets.Binance?.info?.logo,\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Crypto.com | DeFi Wallet\",\n \"extension\": \"CryptoCom\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"dfw://\", \"universal\": \"https://wallet.crypto.com\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"dfw://\", \"universal\": \"https://wallet.crypto.com\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": wallets.CryptoCom?.info?.logo,\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Coin98\",\n \"extensions\": [\"Coin98EVM\", \"Coin98SVM\"],\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"coin98:\", \"universal\": \"https://coin98.services\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"coin98:\", \"universal\": \"https://coin98.services\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": wallets.Coin98EVM?.info?.logo,\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Brave\",\n \"extension\": \"Brave\",\n \"logo\": wallets.Brave?.info?.logo,\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Rainbow\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"rainbow:\", \"universal\": \"https://rnbwapp.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"rainbow:\", \"universal\": \"https://rnbwapp.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/rainbow.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Timeless Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"timeless-wallet:\", \"universal\": \"https://timelesswallet.xyz\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"timeless-wallet:\", \"universal\": \"https://timelesswallet.xyz\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/timeless.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Uniswap Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV2\" },\n \"mobile\": { \n \"ios\": { \"native\": \"uniswap:\", \"universal\": \"https://uniswap.org/app\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV2\" },\n \"android\": { \"native\": \"uniswap:\", \"universal\": \"https://uniswap.org/app\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV2\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/uniswap_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Safe\",\n \"desktop\": { \"qr\": \"WalletConnectV1\", \"copyLink\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"safe\", \"universal\": \"https://app.safe.global\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"safe\", \"universal\": \"https://app.safe.global\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/safe.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Rabby\",\n \"extension\": \"Rabby\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": wallets.Rabby?.info?.logo,\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Backpack\",\n \"extension\": \"Backpack\",\n \"desktop\": {\n \"qr\": \"SolanaPay\",\n },\n \"mobile\": {\n \"ios\": {\n \"qr\": \"SolanaPay\",\n },\n \"android\": {\n \"qr\": \"SolanaPay\",\n },\n },\n \"logo\": wallets.Backpack?.info?.logo,\n \"blockchains\": [...supported.solana]\n },\n {\n \"name\": \"Glow\",\n \"extension\": \"Glow\",\n \"desktop\": {\n \"qr\": ()=>window.location.toString(),\n \"solanaPay\": \"true\",\n },\n \"mobile\": {\n \"ios\": {\n \"qr\": ()=>window.location.toString(),\n \"solanaPay\": \"true\",\n },\n \"android\": {\n \"connect\": \"SolanaMobileWalletAdapter\",\n \"qr\": ()=>window.location.toString(),\n \"solanaPay\": \"true\",\n },\n },\n \"logo\": wallets.Glow?.info?.logo,\n \"blockchains\": [...supported.solana]\n },\n {\n \"name\": \"Solflare\",\n \"extension\": \"Solflare\",\n \"desktop\": {\n \"solanaPay\": true,\n },\n \"mobile\": {\n \"ios\": {\n \"native\": \"solflare:\",\n \"universal\": \"https://solflare.com/ul\",\n \"open\": ()=>`https://solflare.com/ul/v1/browse/${encodeURIComponent(window.location.toString())}?ref=${window.location.origin.toString()}`,\n \"solanaPay\": true,\n },\n \"android\": {\n \"native\": \"solflare:\",\n \"universal\": \"https://solflare.com/ul\",\n \"connect\": \"SolanaMobileWalletAdapter\",\n \"solanaPay\": true,\n },\n },\n \"logo\": wallets.Solflare?.info?.logo,\n \"blockchains\": [...supported.solana]\n },\n {\n \"name\": \"imToken\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"imtokenv2:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"imtokenv2:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/imtoken.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"MEW wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"mewwallet:\" , \"universal\": \"https://mewwallet.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"mewwallet:\" , \"universal\": \"https://mewwallet.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/mew_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"ONTO\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"ontoprovider:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"ontoprovider:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/onto.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Zerion\",\n \"desktop\": { \"native\": \"zerion://\", \"qr\": \"WalletConnectV1\", \"connect\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"zerion://\", \"universal\": \"https://wallet.zerion.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"zerion://\", \"universal\": \"https://wallet.zerion.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/zerion.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Spot\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"spot://\", \"universal\": \"https://spot.so\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"spot://\", \"universal\": \"https://spot.so\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/spot.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"BitGet (BitKeep)\",\n \"desktop\": { \"qr\": \"WalletConnectV2\" },\n \"mobile\": { \n \"ios\": { \"native\": \"bitget://\", \"universal\": \"https://bkapp.vip\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV2\" },\n \"android\": { \"native\": \"bitget://\", \"universal\": \"https://bkapp.vip\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV2\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/bitget.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Unstoppable Domains\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"universal\": \"https://unstoppabledomains.com/mobile\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://unstoppabledomains.com/mobile\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/unstoppable_domains.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Omni\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"omni:\", \"universal\": \"https://links.omni.app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"omni:\", \"universal\": \"https://links.omni.app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/omni.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"KEYRING PRO\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"keyring:\", \"universal\": \"https://keyring.app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"keyring:\", \"universal\": \"https://keyring.app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/keyring_pro.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"TP Wallet (TokenPocket)\",\n \"extension\": \"TokenPocket\",\n \"desktop\": { \"qr\": \"WalletConnectV2\" },\n \"mobile\": { \n \"ios\": { \"native\": \"tpoutside:\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV2\" },\n \"android\": { \"native\": \"tpoutside:\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV2\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/token_pocket.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"BitPay\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"bitpay:\", \"universal\": \"https://link.bitpay.com/wallet\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"bitpay:\", \"universal\": \"https://link.bitpay.com/wallet\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/bitpay.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"MathWallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"mathwallet:\", \"universal\": \"https://www.mathwallet.org\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"mathwallet:\", \"universal\": \"https://www.mathwallet.org\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/math_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Ledger Live\",\n \"desktop\": { \"native\": \"ledgerlive:\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV2\", \"copyLink\": \"WalletConnectV2\" },\n \"mobile\": { \n \"ios\": { \"native\": \"ledgerlive:\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV2\" },\n \"android\": { \"native\": \"ledgerlive:\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV2\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/ledger_live.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"1inch Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"oneinch://\", \"universal\": \"https://wallet.1inch.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"oneinch://\", \"universal\": \"https://wallet.1inch.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/1inch_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"iToken Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"huobiwallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"huobiwallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/i_token_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Huddln\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"huddln:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"huddln:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/huddln.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Eidoo\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"eidoo:\", \"universal\": \"https://eidoo.io/crypto-wallet\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"eidoo:\", \"universal\": \"https://eidoo.io/crypto-wallet\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/eidoo.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"CoolWallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"coolwallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"coolwallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/cool_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Unstoppable Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"universal\": \"unstoppable.money://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"unstoppable.money://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/unstoppable.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"AlphaWallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"awallet:\", \"universal\": \"https://aw.app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"awallet:\", \"universal\": \"https://aw.app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/alpha_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Pillar\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"pillarwallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"pillarwallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/pillar.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"D'CENT Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"dcent:\", \"universal\": \"https://link.dcentwallet.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"dcent:\", \"universal\": \"https://link.dcentwallet.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/dcent.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"ZelCore\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"zel:\", \"universal\": \"https://link.zel.network\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"zel:\", \"universal\": \"https://link.zel.network\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/zel_core.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Nash\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"nash:\", \"universal\": \"https://nash.io/walletconnect\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"nash:\", \"universal\": \"https://nash.io/walletconnect\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/nash.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Coinomi\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"universal\": \"https://coinomi.page.link\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://coinomi.page.link\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/coinomi.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"CYBAVO Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"cybavowallet:\", \"universal\": \"https://cdn.cybavo.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"cybavowallet:\", \"universal\": \"https://cdn.cybavo.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/cybavo.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Tokenary\",\n \"desktop\": { \"native\": \"tokenary:\", \"universal\": \"https://tokenary.io\", \"connect\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/tokenary.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Torus\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/torus.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"SafePal\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"safepalwallet\", \"universal\": \"https://link.safepal.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"safepalwallet\", \"universal\": \"https://link.safepal.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/safepal.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Infinity Wallet\",\n \"desktop\": { \"native\": \"infinity:\", \"universal\": \"https://infinitywallet.io/\", \"connect\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/infinity_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Bridge Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"bridgewallet:\", \"universal\": \"https://bridge.mtpelerin.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"bridgewallet:\", \"universal\": \"https://bridge.mtpelerin.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/mtperlin.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"SparkPoint\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"sparkpoint:\", \"universal\": \"https://sparkpoint.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"sparkpoint:\", \"universal\": \"https://sparkpoint.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/sparkpoint.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"PEAKDEFI Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"peakdefiwallet:\", \"universal\": \"https://peakdefi.com/download\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"peakdefiwallet:\", \"universal\": \"https://peakdefi.com/download\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/peakdefi.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"AT.Wallet\",\n \"desktop\": { \"native\": \"atwallet:\", \"qr\": \"WalletConnectV1\", \"connect\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"atwallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"atwallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/atwallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Ellipal\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"ellipal:\", \"universal\": \"https://www.ellipal.com/\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"ellipal:\", \"universal\": \"https://www.ellipal.com/\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/ellipal.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Aktionariat\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"aktionariat:\", \"universal\": \"https://app.aktionariat.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"aktionariat:\", \"universal\": \"https://app.aktionariat.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/aktionariat.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Talken Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"talken-wallet:\", \"universal\": \"https://talken.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"talken-wallet:\", \"universal\": \"https://talken.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/talken.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"KyberSwap\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"kyberswap:\", \"universal\": \"https://kyberswapnew.app.link\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"kyberswap:\", \"universal\": \"https://kyberswapnew.app.link\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/kyberswap.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Tongue Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"tongue:\", \"universal\": \"https://www.tongue.fi\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"tongue:\", \"universal\": \"https://www.tongue.fi\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/tongue.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"RWallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"rwallet:\", \"universal\": \"https://www.rwallet.app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"rwallet:\", \"universal\": \"https://www.rwallet.app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/rwallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"O3Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"o3wallet:\", \"universal\": \"https://o3.network\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"o3wallet:\", \"universal\": \"https://o3.network\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/o3wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"HashKey Me\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"hashme:\", \"universal\": \"https://me.hashkey.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"hashme:\", \"universal\": \"https://me.hashkey.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/hashkeyme.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Guarda Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/guarda.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Defiant\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"defiantapp:\", \"universal\": \"https://defiantapp.tech\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"defiantapp:\", \"universal\": \"https://defiantapp.tech\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/defiant.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Valora\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"celo://wallet\", \"universal\": \"https://valoraapp.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"celo://wallet\", \"universal\": \"https://valoraapp.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/valora.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Celo Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"celowallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"celowallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/celo.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Elastos Essentials\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"essentials:\", \"universal\": \"https://essentials.elastos.net\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"essentials:\", \"universal\": \"https://essentials.elastos.net\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/elastos_essentials.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Stasis\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"stasis:\", \"universal\": \"https://app.stasis.net\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"stasis:\", \"universal\": \"https://app.stasis.net\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/stasis.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"JulWallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"julwallet:\", \"universal\": \"https://justliquidity.org\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"julwallet:\", \"universal\": \"https://justliquidity.org\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/julwallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Bitpie\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"bitpie:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"bitpie:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/bitpie.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Minerva Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"minerva:\", \"universal\": \"https://minerva.digital\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"minerva:\", \"universal\": \"https://minerva.digital\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/minerva.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Tangem\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"tangem:\", \"universal\": \"https://app.tangem.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"tangem:\", \"universal\": \"https://app.tangem.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/tangem.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"ioPay\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"iopay:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"iopay:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/io_pay.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Coinhub\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/coinhub.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Go Pocket\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/gopocket.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Wallet 3\",\n \"desktop\": { \"native\": \"wallet3:\", \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"wallet3:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"wallet3:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/wallet3.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"yiToken\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"yitoken:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"yitoken:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/yitoken.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"DID Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"abt:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"abt:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/didwallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Shinobi Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"shinobi-wallet://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"shinobi-wallet://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/shinobi_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"AirGap Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"airgap-wallet://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"airgap-wallet://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/air_gap_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"SecuX\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"secux://\", \"universal\": \"https://wsweb.secuxtech.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"secux://\", \"universal\": \"https://wsweb.secuxtech.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/secux.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Orange\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"orangewallet:\", \"universal\": \"https://link.orangewallet.app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"orangewallet:\", \"universal\": \"https://link.orangewallet.app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/orange.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Krystal\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"krystalWallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"krystalWallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/krystal.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Kriptomat\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"kriptomatapp://wallet-connect\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"kriptomatapp://wallet-connect\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/kriptomat.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Ambire Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"ambire:\", \"universal\": \"https://mobile.ambire.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"ambire:\", \"universal\": \"https://mobile.ambire.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/ambire_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"PayBolt\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"paybolt://Wallet\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"paybolt://Wallet\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/pay_bolt.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"OKX Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV2\" },\n \"mobile\": { \n \"ios\": { \"native\": \"okex://main\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV2\" },\n \"android\": { \"native\": \"okex://main\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV2\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/okx_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Mask Network\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/mask_network.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Uniblow\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/uniblow.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Autonomy: Digital Art Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"autonomy-wc\", \"universal\": \"https://autonomy.io/apps/wc\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"autonomy-wc\", \"universal\": \"https://autonomy.io/apps/wc\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/autonomy.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Lilico\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"lilico://\", \"universal\": \"https://link.lilico.app/wc\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"lilico://\", \"universal\": \"https://link.lilico.app/wc\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/lilico.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Fireblocks\",\n \"desktop\": { \"universal\": \"https://console.fireblocks.io/v2\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"fireblocks-wc://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"fireblocks-wc://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/fireblocks.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"WATT ME\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"wattwallet://wallet-connect/\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"wattwallet://wallet-connect/\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/wattme.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Coingrig\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"coingrig://\", \"universal\": \"https://link.coingrig.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"coingrig://\", \"universal\": \"https://link.coingrig.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/coingrig.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Cryptnox Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/cryptnox_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"bobablocks\",\n \"desktop\": { \"native\": \"bobablocks://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"bobablocks://\", \"universal\": \"https://app.bobablocks.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"bobablocks://\", \"universal\": \"https://app.bobablocks.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/bobablocks.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Plasma Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"plasmawallet:\", \"universal\": \"https://plasma-wallet.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"plasmawallet:\", \"universal\": \"https://plasma-wallet.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/plasma_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"HUMBL WALLET\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"humblwallet:\", \"universal\": \"https://wallet.search3.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"humblwallet:\", \"universal\": \"https://wallet.search3.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/humbl_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Zelus\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"zeluswallet://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"zeluswallet://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/zelus.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Earth Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"earthwallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"earthwallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/earth_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Boba Multisig\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/boba_multisig.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"EASY\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"co.theeasy.app://\", \"universal\": \"https://link.easy.me\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"co.theeasy.app://\", \"universal\": \"https://link.easy.me\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/easy.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"ISLAMIwallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"islamiwallet://islami.com/path/\", \"universal\": \"https://islamiwallet.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"islamiwallet://islami.com/path/\", \"universal\": \"https://islamiwallet.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/islam_iwallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Card Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"cardwallet://\", \"universal\": \"https://wallet.cardstack.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"cardwallet://\", \"universal\": \"https://wallet.cardstack.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/card_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"GameStop Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/game_stop_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"RealT Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/real_t_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"PLTwallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"pltwallet:\", \"universal\": \"https://pltwallet.io/\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"pltwallet:\", \"universal\": \"https://pltwallet.io/\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/pl_twallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Avacus\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"avacus://\", \"universal\": \"https://avacus.app.link\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"avacus://\", \"universal\": \"https://avacus.app.link\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/avacus.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"StrikeX Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"strikex://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"strikex://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/strike_x_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"BCERTin wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/bcer_tin_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Edge Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV2\" },\n \"mobile\": { \n \"ios\": { \"native\": \"edge://\", \"universal\": \"https://deep.edge.app\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV2\" },\n \"android\": { \"native\": \"edge://\", \"universal\": \"https://deep.edge.app\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV2\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/edge_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Freedom Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"freedom-wallet://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"freedom-wallet://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/freedom_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Assure\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"assure://\", \"universal\": \"https://www.assure.pro/Official\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"assure://\", \"universal\": \"https://www.assure.pro/Official\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/assure.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Cosmostation\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"cosmostation://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"cosmostation://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/cosmostation.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"THORWallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"thorwallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"thorwallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/thor_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Gryfyn\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/gryfyn.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"CoinStats\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"coinstats:\", \"universal\": \"https://coinstats.app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"coinstats:\", \"universal\": \"https://coinstats.app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/coin_stats.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Abra Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"abra:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"abra:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/abra_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Opera Crypto Browser\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"cryptobrowser://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"cryptobrowser://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/opera_crypto_browser.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Keywallet Touch\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"keywalletTouch://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"keywalletTouch://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/keywallet_touch.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Enno Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"ennowallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"ennowallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/enno_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"A4 Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/a4_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Bitcoin.com Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"bitcoincom://\", \"universal\": \"https://wallet.bitcoin.com/\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"bitcoincom://\", \"universal\": \"https://wallet.bitcoin.com/\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/bitcoincom.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Defiant\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"defiantapp://\", \"universal\": \"https://defiantapp.tech/\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"defiantapp://\", \"universal\": \"https://defiantapp.tech/\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/defiant.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Chain\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/chain.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Verso\",\n \"desktop\": { \"native\": \"verso\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"verso\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"verso\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/verso.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"LOBSTR Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"lobstr://\", \"universal\": \"https://lobstr.co/uni/wc\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"lobstr://\", \"universal\": \"https://lobstr.co/uni/wc\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/lobstr_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Bifrost Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"bifrostwallet:\", \"universal\": \"https://app.bifrostwallet.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"bifrostwallet:\", \"universal\": \"https://app.bifrostwallet.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/bifrost_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Okse Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"oksewallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"oksewallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/okse_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"BRISE Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/brise_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"HyperPay\",\n \"extension\": \"HyperPay\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": wallets.HyperPay?.info?.logo,\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"ATON\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/aton.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Frontier\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"frontier://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"frontier://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/frontier.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"MDAO Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"ttmwalletapp://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"ttmwalletapp://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/mdao_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"TTM Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"ttmwalletapp:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"ttmwalletapp:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/ttm_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Opto Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"opto://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"opto://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/opto_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"XFUN Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"xfunwallet://\", \"universal\": \"https://xfun.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"xfunwallet://\", \"universal\": \"https://xfun.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/xfun_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Exodus\",\n \"extensions\": [\"ExodusEVM\", \"ExodusSVM\"],\n \"desktop\": { \"native\": \"exodus://\", \"qr\": \"WalletConnectV2\" },\n \"mobile\": { \n \"ios\": { \"native\": \"exodus://\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV2\" },\n \"android\": { \"native\": \"exodus://\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV2\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/exodus.jpg\",\n \"blockchains\": [...supported]\n },\n {\n \"name\": \"Uvtoken\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"UvToken://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"UvToken://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/uv_token.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"PREMA Wallet\",\n \"desktop\": { \"native\": \"premawallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"premawallet:\", \"universal\": \"https://premanft.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"premawallet:\", \"universal\": \"https://premanft.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/prema_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Shinobi-Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"shinobi-wallet://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"shinobi-wallet://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/shinobi.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"ByteBank\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"hideoutWallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"hideoutWallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/byte_bank.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Ancrypto Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"ancrypto://app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"ancrypto://app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/ancrypto_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Bee Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"beewallet.app://\", \"universal\": \"https://beewallet.app/wc\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"beewallet.app://\", \"universal\": \"https://beewallet.app/wc\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/bee_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"LATOKEN Multichain DeFi Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"dfwallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"dfwallet:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/latoken_multichain_de_fi_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"TK Finance\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"tk://\", \"universal\": \"https://trustkeys.network\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"tk://\", \"universal\": \"https://trustkeys.network\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/tk_finance.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Oxalus Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"oxalus://\", \"universal\": \"https://deeplink.oxalus.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"oxalus://\", \"universal\": \"https://deeplink.oxalus.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/oxalus_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"3S Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"bhcwallet://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"bhcwallet://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/3_s_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Klever Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"kleverwallet:\", \"universal\": \"https://klever.page.link\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"kleverwallet:\", \"universal\": \"https://klever.page.link\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/klever_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"OneKey\",\n \"desktop\": { \"native\": \"onekey-wallet://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"onekey-wallet://\", \"universal\": \"https://app.onekey.so/wc/connect\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"onekey-wallet://\", \"universal\": \"https://app.onekey.so/wc/connect\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/one_key.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"helix id\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"helix-id://helix-id.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"helix-id://helix-id.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/helix_id.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"ABC Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"abc-wallet://abcwc\", \"universal\": \"https://abcwalletconnect.page.link\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"abc-wallet://abcwc\", \"universal\": \"https://abcwalletconnect.page.link\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/abcwallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"HaHa\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"haha://\", \"universal\": \"https://haha.me\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"haha://\", \"universal\": \"https://haha.me\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/haha.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Volt: DeFi\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"volt:\", \"universal\": \"https://get.voltage.finance\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"volt:\", \"universal\": \"https://get.voltage.finance\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/volt.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Wirex Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"wirexwallet://\", \"universal\": \"https://wwallet.app.link\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"wirexwallet://\", \"universal\": \"https://wwallet.app.link\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/wirex_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Robinhood Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV2\" },\n \"mobile\": { \n \"ios\": { \"native\": \"robinhood-wallet:\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV2\" },\n \"android\": { \"native\": \"robinhood-wallet:\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV2\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/robinhood_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"RiceWallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"ricewallet\", \"universal\": \"https://ricewallet.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"ricewallet\", \"universal\": \"https://ricewallet.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/rice_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"SafeMoon\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"safemoon:\", \"universal\": \"https://safemoon.net/\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"safemoon:\", \"universal\": \"https://safemoon.net/\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/safemoon.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"SimpleHold\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"simplehold://\", \"universal\": \"https://simplehold.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"simplehold://\", \"universal\": \"https://simplehold.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/simple_hold.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"GoldBit\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"goldbit://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"goldbit://\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/gold_bit.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"ioPay\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"iopay:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"iopay:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/iopay.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Bitizen\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"bitizen://wallet\", \"universal\": \"https://bitizen.org/wallet\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"bitizen://wallet\", \"universal\": \"https://bitizen.org/wallet\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/bitizen.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Slavi Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"slaviwallet:\", \"universal\": \"https://www.slaviwallet.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"slaviwallet:\", \"universal\": \"https://www.slaviwallet.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/slavi_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Nufinetes\",\n \"desktop\": { \"native\": \"vimwallet:/\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"vimwallet:/\", \"universal\": \"https://apple.vimworld.org\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"vimwallet:/\", \"universal\": \"https://apple.vimworld.org\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/nufinetes.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Arianee Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"com.arianee.wallet\", \"universal\": \"https://arianee.net\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"com.arianee.wallet\", \"universal\": \"https://arianee.net\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/arianee_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"NOW Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"walletnow://\", \"universal\": \"https://walletnow.app.link\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"walletnow://\", \"universal\": \"https://walletnow.app.link\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/now_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Arculus Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\": \"arculuswc:\", \"universal\": \"https://gw.arculus.co/app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"arculuswc:\", \"universal\": \"https://gw.arculus.co/app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/arculus_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Linen\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"native\":\"linen:\", \"universal\": \"https://linen.app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\":\"linen:\", \"universal\": \"https://linen.app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/linen.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Nitrogen Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"universal\": \"https://nitrogen.org/wc\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://nitrogen.org/wc\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/nitrogen_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"ApolloX\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"universal\": \"https://app.apollox.finance\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://app.apollox.finance\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/apollo_x.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"ID Pocket\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/id_pocket.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"CoinCircle\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"universal\": \"https://coincircle.com/app/walletconnect\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://coincircle.com/app/walletconnect\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/coin_circle.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"SahalWallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/sahal_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"UPBOND Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/upbond_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Sequence Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"universal\": \"https://sequence.app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://sequence.app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/sequence_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"LocalTrade Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"universal\": \"https://ws.lab.localtrade.cc\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://ws.lab.localtrade.cc\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/local_trade_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Loopring Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/loopring_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Vision: Crypto Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": { \n \"ios\": { \"universal\": \"https://app.vision-crypto.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://app.vision-crypto.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/vision.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Ballet Crypto\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/ballet_crypto.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Pitaka\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": {\n \"ios\": { \"native\": \"pitaka://\", \"universal\": \"https://app.pitaka.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"pitaka://\", \"universal\": \"https://app.pitaka.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/pitaka.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"AbsoluteWallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/absolute_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"The Parallel\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/the_parallel.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"CypherD Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/cypher_d_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Keplr\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/keplr.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"MyWalliD\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/my_walli_d.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Status\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/status.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Monarch Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": {\n \"ios\": { \"universal\": \"https://monarchwallet.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://monarchwallet.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/monarch_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Marble\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": {\n \"ios\": { \"universal\": \"https://app.marblewallet.com/\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://app.marblewallet.com/\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/marble.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Flooz\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": {\n \"ios\": { \"universal\": \"https://wallet.flooz.trade/wc\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://wallet.flooz.trade/wc\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/flooz.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Blockchain.com\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": {\n \"ios\": { \"universal\": \"https://login.blockchain.com/deeplink/login/wallet-connect\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://login.blockchain.com/deeplink/login/wallet-connect\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/blockchaincom.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Dohrnii Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/dohrnii_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"UniPass\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": {\n \"ios\": { \"universal\": \"https://wallet.unipass.id\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://wallet.unipass.id\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/uni_pass.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"ZenGo\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": {\n \"ios\": { \"native\": \"zengo://get.zengo.com/\", \"universal\": \"https://get.zengo.com\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"zengo://get.zengo.com/\", \"universal\": \"https://get.zengo.com\", \"connect\": \"WalletConnectV2\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/zengo2.png\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Locker Token\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/locker_token.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Keeper\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": {\n \"ios\": { \"universal\": \"https://link.keeper-wallet.app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://link.keeper-wallet.app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/keeper.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"XDEFI Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/xdefi_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Numio\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/numio.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Neon Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/neon_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Nabox\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": {\n \"ios\": { \"universal\": \"https://nabox.io/app/\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://nabox.io/app/\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/nabox.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Snowball\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": {\n \"ios\": { \"universal\": \"https://app.snowball.exchange/app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://app.snowball.exchange/app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/snowball.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"KryptoGO Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": {\n \"ios\": { \"universal\": \"https://kryptogo.page.link\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://kryptogo.page.link\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/krypto_go_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Payperless\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/payperless.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Brave Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/brave_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Crossmint\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/crossmint.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Safematrix\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": {\n \"ios\": { \"universal\": \"https://safematrix.io/\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://safematrix.io/\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/safematrix.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"pier\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": {\n \"ios\": { \"universal\": \"https://pierwallet.com/wc\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://pierwallet.com/wc\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/pier.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"FILWallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": {\n \"ios\": { \"universal\": \"https://h5.filwallet.co\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://h5.filwallet.co\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/fil_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"ParaSwap Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": {\n \"ios\": { \"universal\": \"https://wallet.paraswap.io/#/\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://wallet.paraswap.io/#/\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/para_swap_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Bitski\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": {\n \"ios\": { \"native\": \"bitski:\", \"universal\": \"https://wallet.bitski.com/walletconnect/wc\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"bitski:\", \"universal\": \"https://wallet.bitski.com/walletconnect/wc\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/bitski.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Hippo Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": {\n \"ios\": { \"native\": \"hippowallet://\", \"universal\": \"https://hippowallet.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"hippowallet://\", \"universal\": \"https://hippowallet.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/hippo_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Core\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": {\n \"ios\": { \"universal\": \"https://core.app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://core.app\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/core.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Xcapit\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": {\n \"ios\": { \"universal\": \"https://app.xcapit.com/links\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://app.xcapit.com/links\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/xcapit.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Paper\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": {\n \"ios\": { \"universal\": \"https://withpaper.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"universal\": \"https://withpaper.com\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/paper_wallet.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"MetaOne\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": {\n \"ios\": { \"native\": \"metaone:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"metaone:\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/metaone.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Enjin Wallet\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"mobile\": {\n \"ios\": { \"native\": \"enjinwallet:\", \"universal\": \"https://deeplink.wallet.enjin.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n \"android\": { \"native\": \"enjinwallet:\", \"universal\": \"https://deeplink.wallet.enjin.io\", \"connect\": \"WalletConnectV1\", \"qr\": \"WalletConnectV1\" },\n },\n \"logo\": \"https://img1.depay.com/wallets/enjin.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"BC Vault\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"https://img1.depay.com/wallets/bc_vault.jpg\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Ethereum Wallet\",\n \"extension\": \"WindowEthereum\",\n \"logo\": wallets.WindowEthereum?.info?.logo,\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"Solana Pay\",\n \"desktop\": {\n \"solanaPay\": true\n },\n \"mobile\": {\n \"ios\": {\n \"solanaPay\": true\n },\n \"android\": {\n \"solanaPay\": true\n }\n },\n \"logo\": Blockchains.solana?.logo,\n \"blockchains\": [...supported.solana]\n },\n {\n \"name\": \"Solana Wallet\",\n \"extension\": \"WindowSolana\",\n \"desktop\": {\n \"solanaPay\": true\n },\n \"mobile\": {\n \"ios\": {\n \"solanaPay\": true\n },\n \"android\": {\n \"solanaPay\": true\n }\n },\n \"logo\": wallets.WindowSolana?.info?.logo,\n \"blockchains\": [...supported.solana]\n },\n {\n \"name\": \"WalletConnect V2\",\n \"desktop\": { \"qr\": \"WalletConnectV2\" },\n \"logo\": \"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz48IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMjUuNC4xLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAtLT48c3ZnIHZlcnNpb249JzEuMScgaWQ9J0xheWVyXzEnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZycgeG1sbnM6eGxpbms9J2h0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsnIHg9JzBweCcgeT0nMHB4JyB2aWV3Qm94PScwIDAgNTAwIDUwMCcgc3R5bGU9J2VuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTAwIDUwMDsnIHhtbDpzcGFjZT0ncHJlc2VydmUnPjxzdHlsZSB0eXBlPSd0ZXh0L2Nzcyc+IC5zdDB7ZmlsbDojNTk5MUNEO30KPC9zdHlsZT48ZyBpZD0nUGFnZS0xJz48ZyBpZD0nd2FsbGV0Y29ubmVjdC1sb2dvLWFsdCc+PHBhdGggaWQ9J1dhbGxldENvbm5lY3QnIGNsYXNzPSdzdDAnIGQ9J00xMDIuNywxNjJjODEuNS03OS44LDIxMy42LTc5LjgsMjk1LjEsMGw5LjgsOS42YzQuMSw0LDQuMSwxMC41LDAsMTQuNEwzNzQsMjE4LjkgYy0yLDItNS4zLDItNy40LDBsLTEzLjUtMTMuMmMtNTYuOC01NS43LTE0OS01NS43LTIwNS44LDBsLTE0LjUsMTQuMWMtMiwyLTUuMywyLTcuNCwwTDkxLjksMTg3Yy00LjEtNC00LjEtMTAuNSwwLTE0LjQgTDEwMi43LDE2MnogTTQ2Ny4xLDIyOS45bDI5LjksMjkuMmM0LjEsNCw0LjEsMTAuNSwwLDE0LjRMMzYyLjMsNDA1LjRjLTQuMSw0LTEwLjcsNC0xNC44LDBjMCwwLDAsMCwwLDBMMjUyLDMxMS45IGMtMS0xLTIuNy0xLTMuNywwaDBsLTk1LjUsOTMuNWMtNC4xLDQtMTAuNyw0LTE0LjgsMGMwLDAsMCwwLDAsMEwzLjQsMjczLjZjLTQuMS00LTQuMS0xMC41LDAtMTQuNGwyOS45LTI5LjIgYzQuMS00LDEwLjctNCwxNC44LDBsOTUuNSw5My41YzEsMSwyLjcsMSwzLjcsMGMwLDAsMCwwLDAsMGw5NS41LTkzLjVjNC4xLTQsMTAuNy00LDE0LjgsMGMwLDAsMCwwLDAsMGw5NS41LDkzLjUgYzEsMSwyLjcsMSwzLjcsMGw5NS41LTkzLjVDNDU2LjQsMjI1LjksNDYzLDIyNS45LDQ2Ny4xLDIyOS45eicvPjwvZz48L2c+PC9zdmc+Cg==\",\n \"blockchains\": [...supported.evm]\n },\n {\n \"name\": \"WalletConnect\",\n \"desktop\": { \"qr\": \"WalletConnectV1\" },\n \"logo\": \"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz48IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMjUuNC4xLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAtLT48c3ZnIHZlcnNpb249JzEuMScgaWQ9J0xheWVyXzEnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZycgeG1sbnM6eGxpbms9J2h0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsnIHg9JzBweCcgeT0nMHB4JyB2aWV3Qm94PScwIDAgNTAwIDUwMCcgc3R5bGU9J2VuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTAwIDUwMDsnIHhtbDpzcGFjZT0ncHJlc2VydmUnPjxzdHlsZSB0eXBlPSd0ZXh0L2Nzcyc+IC5zdDB7ZmlsbDojNTk5MUNEO30KPC9zdHlsZT48ZyBpZD0nUGFnZS0xJz48ZyBpZD0nd2FsbGV0Y29ubmVjdC1sb2dvLWFsdCc+PHBhdGggaWQ9J1dhbGxldENvbm5lY3QnIGNsYXNzPSdzdDAnIGQ9J00xMDIuNywxNjJjODEuNS03OS44LDIxMy42LTc5LjgsMjk1LjEsMGw5LjgsOS42YzQuMSw0LDQuMSwxMC41LDAsMTQuNEwzNzQsMjE4LjkgYy0yLDItNS4zLDItNy40LDBsLTEzLjUtMTMuMmMtNTYuOC01NS43LTE0OS01NS43LTIwNS44LDBsLTE0LjUsMTQuMWMtMiwyLTUuMywyLTcuNCwwTDkxLjksMTg3Yy00LjEtNC00LjEtMTAuNSwwLTE0LjQgTDEwMi43LDE2MnogTTQ2Ny4xLDIyOS45bDI5LjksMjkuMmM0LjEsNCw0LjEsMTAuNSwwLDE0LjRMMzYyLjMsNDA1LjRjLTQuMSw0LTEwLjcsNC0xNC44LDBjMCwwLDAsMCwwLDBMMjUyLDMxMS45IGMtMS0xLTIuNy0xLTMuNywwaDBsLTk1LjUsOTMuNWMtNC4xLDQtMTAuNyw0LTE0LjgsMGMwLDAsMCwwLDAsMEwzLjQsMjczLjZjLTQuMS00LTQuMS0xMC41LDAtMTQuNGwyOS45LTI5LjIgYzQuMS00LDEwLjctNCwxNC44LDBsOTUuNSw5My41YzEsMSwyLjcsMSwzLjcsMGMwLDAsMCwwLDAsMGw5NS41LTkzLjVjNC4xLTQsMTAuNy00LDE0LjgsMGMwLDAsMCwwLDAsMGw5NS41LDkzLjUgYzEsMSwyLjcsMSwzLjcsMGw5NS41LTkzLjVDNDU2LjQsMjI1LjksNDYzLDIyNS45LDQ2Ny4xLDIyOS45eicvPjwvZz48L2c+PC9zdmc+Cg==\",\n \"blockchains\": [...supported.evm]\n },\n].filter((wallet)=>wallet.blockchains.filter(Boolean).length > 0)\n","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function define(obj, key, value) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n return obj[key];\n }\n try {\n // IE 8 has a broken Object.defineProperty that only works on DOM objects.\n define({}, \"\");\n } catch (err) {\n define = function(obj, key, value) {\n return obj[key] = value;\n };\n }\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n define(IteratorPrototype, iteratorSymbol, function () {\n return this;\n });\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = GeneratorFunctionPrototype;\n define(Gp, \"constructor\", GeneratorFunctionPrototype);\n define(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction);\n GeneratorFunction.displayName = define(\n GeneratorFunctionPrototype,\n toStringTagSymbol,\n \"GeneratorFunction\"\n );\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n define(prototype, method, function(arg) {\n return this._invoke(method, arg);\n });\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n define(genFun, toStringTagSymbol, \"GeneratorFunction\");\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return PromiseImpl.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return PromiseImpl.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n define(AsyncIterator.prototype, asyncIteratorSymbol, function () {\n return this;\n });\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList),\n PromiseImpl\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n define(Gp, toStringTagSymbol, \"Generator\");\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n define(Gp, iteratorSymbol, function() {\n return this;\n });\n\n define(Gp, \"toString\", function() {\n return \"[object Generator]\";\n });\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, in modern engines\n // we can explicitly access globalThis. In older engines we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n if (typeof globalThis === \"object\") {\n globalThis.regeneratorRuntime = runtime;\n } else {\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n }\n}\n","module.exports = require(\"regenerator-runtime\");\n","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}","export default function _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n\n var _s, _e;\n\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}","import React from 'react'\nexport default React.createContext()\n","import React from 'react'\nexport default React.createContext()\n","import ClosableContext from '../contexts/ClosableContext'\nimport React, { useState, useEffect, useContext } from 'react'\nimport UpdatableContext from '../contexts/UpdatableContext'\n\nexport default (props)=>{\n \n const [closable, setClosable] = useState(true)\n const [open, setOpen] = useState(true)\n const { setUpdatable } = useContext(UpdatableContext)\n\n const close = ()=>{\n if(props.closable === false) { return }\n if(!closable) { return }\n let close = true\n if(typeof closable === 'string') {\n close = confirm(closable)\n }\n if(close) {\n setUpdatable(false)\n setOpen(false)\n setTimeout(props.unmount, 300)\n }\n }\n\n useEffect(()=>{\n const preventReload = (event) => {\n if(!closable || props.closable === false) {\n const msg = 'Payment is still pending. Please wait!'\n event.preventDefault()\n event.returnValue = msg\n return msg\n } else if (typeof closable === 'string') {\n const msg = closable\n event.preventDefault()\n event.returnValue = msg\n return msg\n }\n }\n setTimeout(()=>{\n window.addEventListener('beforeunload', preventReload);\n }, 800) // timeout to prevent beforeunload error in case browser redirects to wallet (e.g. Solana Mobile Wallet Adapter)\n return ()=>{\n window.removeEventListener('beforeunload', preventReload);\n }\n }, [closable, props.closable])\n\n return(\n \n { props.children }\n \n )\n}\n","import React from 'react'\nexport default React.createContext({ accept: [] })\n","import React from 'react'\n\nexport default (props)=>{\n return(\n \n \n \n )\n}\n","import React from 'react'\n\nexport default ()=>{\n return(\n \n \n \n )\n}\n","import ChevronLeft from './ChevronLeft'\nimport ClosableContext from '../contexts/ClosableContext'\nimport CloseIcon from './CloseIcon'\nimport React, { useContext } from 'react'\nimport { NavigateStackContext } from '@depay/react-dialog-stack'\n\nexport default (props)=>{\n\n const { navigate } = useContext(NavigateStackContext)\n const { close, closable } = useContext(ClosableContext)\n\n return(\n
\n \n
\n { props.stacked &&\n
\n \n
\n }\n { closable && props.closable !== false &&\n
\n { props.alternativeHeaderAction }\n \n
\n }\n { props.header }\n
\n\n
\n { props.body }\n
\n\n { props.footer !== false &&\n
\n { props.footer }\n
\n }\n
\n )\n}\n","export default 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAyNTAgMjUwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyNTAgMjUwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPHBhdGggZD0iTTE3Mi44LDY4LjNjLTQuOS0yLjItNy40LTguNC00LjUtMTMuNmM1LjMtOS40LDEwLTE4LjYsNC4zLTI5LjFjLTctMTIuNy0yNC4xLTE3LjQtMzYuNi0xMGMtMTUuNCw5LjEtMTMuNCwyNS42LTUuMSwzOC45CgkJYzMuMyw1LjIsMC45LDExLjYtNC4yLDEzLjlsLTYxLjIsMC4xbDAsMC44bDAuMSwyMS44bDAuMSwzNy45Yy0xLjksNS41LTguNyw4LjQtMTQuMSw1Yy0xMy40LTguMy0yOS44LTEwLjEtMzguOSw1LjMKCQljLTcuMywxMi41LTIuNSwyOS43LDEwLjIsMzYuNWMxMC41LDUuNywxOS43LDEsMjkuMS00LjRjNS40LTMuMSwxMS45LTAuMywxMy44LDVsMC4xLDU5LjhsNTcuMi0wLjFjMC4xLDAsMC4yLDAsMC4zLDBsMy42LDAKCQljNS0yLjMsNy40LTguNyw0LjItMTMuOWMtOC4zLTEzLjMtMTAuMy0yOS44LDUuMS0zOC45YzEyLjUtNy40LDI5LjYtMi43LDM2LjYsMTBjNS43LDEwLjUsMS4xLDE5LjctNC4zLDI5LjEKCQljLTIuOSw1LjItMC41LDExLjQsNC41LDEzLjZsMy42LDBjMC4xLDAsMC4yLDAsMC4zLDBsNTYuNS0wLjFsLTAuMS01OC44Yy0xLjQtNi42LTcuOC05LjItMTQuMS01LjhjLTkuNSw1LjItMTcuOSw5LjgtMjguNCw0LjEKCQljLTEyLjgtNi45LTE4LjItMjMuNy0xMC45LTM2LjNjOS0xNS40LDI1LjUtMTMuNiwzOC45LTUuM2M1LjcsMy41LDEyLjksMC4yLDE0LjQtNS45bC0wLjEtMzUuNEwyMzMuMyw2OWwwLTAuOEwxNzIuOCw2OC4zeiIvPgo8L2c+Cjwvc3ZnPgo='\n","const isMobile = ()=> {\n if (typeof window !== 'undefined') {\n return Boolean(\n window.matchMedia('(pointer:coarse)').matches ||\n /Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)\n )\n }\n\n return false\n}\n\nexport default isMobile\n","export default 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB3aWR0aD0iNTEycHgiIGhlaWdodD0iNTEycHgiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwYXRoIGZpbGw9IiMwMTAxMDEiIGQ9Ik00NTkuNjU0LDIzMy4zNzNsLTkwLjUzMSw5MC41Yy00OS45NjksNTAtMTMxLjAzMSw1MC0xODEsMGMtNy44NzUtNy44NDQtMTQuMDMxLTE2LjY4OC0xOS40MzgtMjUuODEzDQoJbDQyLjA2My00Mi4wNjNjMi0yLjAxNiw0LjQ2OS0zLjE3Miw2LjgyOC00LjUzMWMyLjkwNiw5LjkzOCw3Ljk4NCwxOS4zNDQsMTUuNzk3LDI3LjE1NmMyNC45NTMsMjQuOTY5LDY1LjU2MywyNC45MzgsOTAuNSwwDQoJbDkwLjUtOTAuNWMyNC45NjktMjQuOTY5LDI0Ljk2OS02NS41NjMsMC05MC41MTZjLTI0LjkzOC0yNC45NTMtNjUuNTMxLTI0Ljk1My05MC41LDBsLTMyLjE4OCwzMi4yMTkNCgljLTI2LjEwOS0xMC4xNzItNTQuMjUtMTIuOTA2LTgxLjY0MS04Ljg5MWw2OC41NzgtNjguNTc4YzUwLTQ5Ljk4NCwxMzEuMDMxLTQ5Ljk4NCwxODEuMDMxLDANCglDNTA5LjYyMywxMDIuMzQyLDUwOS42MjMsMTgzLjM4OSw0NTkuNjU0LDIzMy4zNzN6IE0yMjAuMzI2LDM4Mi4xODZsLTMyLjIwMywzMi4yMTljLTI0Ljk1MywyNC45MzgtNjUuNTYzLDI0LjkzOC05MC41MTYsMA0KCWMtMjQuOTUzLTI0Ljk2OS0yNC45NTMtNjUuNTYzLDAtOTAuNTMxbDkwLjUxNi05MC41YzI0Ljk2OS0yNC45NjksNjUuNTQ3LTI0Ljk2OSw5MC41LDBjNy43OTcsNy43OTcsMTIuODc1LDE3LjIwMywxNS44MTMsMjcuMTI1DQoJYzIuMzc1LTEuMzc1LDQuODEzLTIuNSw2LjgxMy00LjVsNDIuMDYzLTQyLjA0N2MtNS4zNzUtOS4xNTYtMTEuNTYzLTE3Ljk2OS0xOS40MzgtMjUuODI4Yy00OS45NjktNDkuOTg0LTEzMS4wMzEtNDkuOTg0LTE4MS4wMTYsMA0KCWwtOTAuNSw5MC41Yy00OS45ODQsNTAtNDkuOTg0LDEzMS4wMzEsMCwxODEuMDMxYzQ5Ljk4NCw0OS45NjksMTMxLjAzMSw0OS45NjksMTgxLjAxNiwwbDY4LjU5NC02OC41OTQNCglDMjc0LjU2MSwzOTUuMDkyLDI0Ni40MiwzOTIuMzQyLDIyMC4zMjYsMzgyLjE4NnoiLz4NCjwvc3ZnPg0K'\n","export default \"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHN2ZyAgUFVCTElDICctLy9XM0MvL0RURCBTVkcgMS4xLy9FTicgICdodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQnPgo8c3ZnIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDEwMDAgMTAwMCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIwIDAgMWUzIDFlMyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1ldGFkYXRhPiBTdmcgVmVjdG9yIEljb25zIDogaHR0cDovL3d3dy5vbmxpbmV3ZWJmb250cy5jb20vaWNvbiA8L21ldGFkYXRhPgo8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDUxMSkgc2NhbGUoLjEgLS4xKSI+PHBhdGggZD0ibTEwMCAyNzk3LjF2LTIyMTIuOWg0NDI1Ljh2NDQyNS44aC00NDI1Ljh2LTIyMTIuOXptMzQ3Ny40IDB2LTEyNjQuNWgtMjUyOXYyNTI5aDI1Mjl2LTEyNjQuNXoiLz48cGF0aCBkPSJtMTY4MC42IDI3OTcuMXYtNjMyLjNoMTI2NC42djEyNjQuNmgtMTI2NC42di02MzIuM3oiLz48cGF0aCBkPSJtNTQ3NC4yIDI3OTcuMXYtMjIxMi45aDQ0MjUuOHY0NDI1LjhoLTQ0MjUuOHYtMjIxMi45em0zNDc3LjQgMHYtMTI2NC41aC0yNTI5djI1MjloMjUyOXYtMTI2NC41eiIvPjxwYXRoIGQ9Im03MDU0LjggMjc5Ny4xdi02MzIuM2gxMjY0LjZ2MTI2NC42aC0xMjY0LjZ2LTYzMi4zeiIvPjxwYXRoIGQ9Im0xMDAtMjU3Ny4xdi0yMjEyLjloNDQyNS44djQ0MjUuOGgtNDQyNS44di0yMjEyLjl6bTM0NzcuNCAwdi0xMjY0LjVoLTI1Mjl2MjUyOWgyNTI5di0xMjY0LjV6Ii8+PHBhdGggZD0ibTE2ODAuNi0yNTc3LjF2LTYzMi4zaDEyNjQuNnYxMjY0LjZoLTEyNjQuNnYtNjMyLjN6Ii8+PHBhdGggZD0ibTU0NzQuMi05MTcuNHYtNTUzLjJoMTEwNi40di0xMTA2LjRoLTExMDYuNHYtMTEwNi40aDExMDYuNHYtMTEwNi42aDExMDYuNHYxMTA2LjRoMTEwNi40di0xMTA2LjRoMTEwNi42djExMDYuNGgtMTEwNi40djExMDYuNGgxMTA2LjR2MTEwNi40aC0xMTA2LjR2MTEwNi40aC0xMTA2LjR2LTExMDYuNGgtMTEwNi40djExMDYuNGgtMTEwNi40di01NTN6bTMzMTkuMy0xMTA2LjV2LTU1My4yaC0xMTA2LjR2LTExMDYuNGgtMTEwNi40djExMDYuNGgxMTA2LjR2MTEwNi40aDExMDYuNHYtNTUzLjJ6Ii8+PC9nPgo8L3N2Zz4K\"\n","/**\n * @license\n * Lodash \n * Copyright OpenJS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n;(function() {\n\n /** Used as a safe reference for `undefined` in pre-ES5 environments. */\n var undefined;\n\n /** Used as the semantic version number. */\n var VERSION = '4.17.21';\n\n /** Used as the size to enable large array optimizations. */\n var LARGE_ARRAY_SIZE = 200;\n\n /** Error message constants. */\n var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',\n FUNC_ERROR_TEXT = 'Expected a function',\n INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`';\n\n /** Used to stand-in for `undefined` hash values. */\n var HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n /** Used as the maximum memoize cache size. */\n var MAX_MEMOIZE_SIZE = 500;\n\n /** Used as the internal argument placeholder. */\n var PLACEHOLDER = '__lodash_placeholder__';\n\n /** Used to compose bitmasks for cloning. */\n var CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n /** Used to compose bitmasks for value comparisons. */\n var COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n /** Used to compose bitmasks for function metadata. */\n var WRAP_BIND_FLAG = 1,\n WRAP_BIND_KEY_FLAG = 2,\n WRAP_CURRY_BOUND_FLAG = 4,\n WRAP_CURRY_FLAG = 8,\n WRAP_CURRY_RIGHT_FLAG = 16,\n WRAP_PARTIAL_FLAG = 32,\n WRAP_PARTIAL_RIGHT_FLAG = 64,\n WRAP_ARY_FLAG = 128,\n WRAP_REARG_FLAG = 256,\n WRAP_FLIP_FLAG = 512;\n\n /** Used as default options for `_.truncate`. */\n var DEFAULT_TRUNC_LENGTH = 30,\n DEFAULT_TRUNC_OMISSION = '...';\n\n /** Used to detect hot functions by number of calls within a span of milliseconds. */\n var HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n /** Used to indicate the type of lazy iteratees. */\n var LAZY_FILTER_FLAG = 1,\n LAZY_MAP_FLAG = 2,\n LAZY_WHILE_FLAG = 3;\n\n /** Used as references for various `Number` constants. */\n var INFINITY = 1 / 0,\n MAX_SAFE_INTEGER = 9007199254740991,\n MAX_INTEGER = 1.7976931348623157e+308,\n NAN = 0 / 0;\n\n /** Used as references for the maximum length and index of an array. */\n var MAX_ARRAY_LENGTH = 4294967295,\n MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,\n HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;\n\n /** Used to associate wrap methods with their bit flags. */\n var wrapFlags = [\n ['ary', WRAP_ARY_FLAG],\n ['bind', WRAP_BIND_FLAG],\n ['bindKey', WRAP_BIND_KEY_FLAG],\n ['curry', WRAP_CURRY_FLAG],\n ['curryRight', WRAP_CURRY_RIGHT_FLAG],\n ['flip', WRAP_FLIP_FLAG],\n ['partial', WRAP_PARTIAL_FLAG],\n ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],\n ['rearg', WRAP_REARG_FLAG]\n ];\n\n /** `Object#toString` result references. */\n var argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n domExcTag = '[object DOMException]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]',\n weakSetTag = '[object WeakSet]';\n\n var arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n /** Used to match empty string literals in compiled template source. */\n var reEmptyStringLeading = /\\b__p \\+= '';/g,\n reEmptyStringMiddle = /\\b(__p \\+=) '' \\+/g,\n reEmptyStringTrailing = /(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g;\n\n /** Used to match HTML entities and HTML characters. */\n var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,\n reUnescapedHtml = /[&<>\"']/g,\n reHasEscapedHtml = RegExp(reEscapedHtml.source),\n reHasUnescapedHtml = RegExp(reUnescapedHtml.source);\n\n /** Used to match template delimiters. */\n var reEscape = /<%-([\\s\\S]+?)%>/g,\n reEvaluate = /<%([\\s\\S]+?)%>/g,\n reInterpolate = /<%=([\\s\\S]+?)%>/g;\n\n /** Used to match property names within property paths. */\n var reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/,\n rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n /**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n reHasRegExpChar = RegExp(reRegExpChar.source);\n\n /** Used to match leading whitespace. */\n var reTrimStart = /^\\s+/;\n\n /** Used to match a single whitespace character. */\n var reWhitespace = /\\s/;\n\n /** Used to match wrap detail comments. */\n var reWrapComment = /\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,\n reWrapDetails = /\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,\n reSplitDetails = /,? & /;\n\n /** Used to match words composed of alphanumeric characters. */\n var reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n /**\n * Used to validate the `validate` option in `_.template` variable.\n *\n * Forbids characters which could potentially change the meaning of the function argument definition:\n * - \"(),\" (modification of function parameters)\n * - \"=\" (default value)\n * - \"[]{}\" (destructuring of function parameters)\n * - \"/\" (beginning of a comment)\n * - whitespace\n */\n var reForbiddenIdentifierChars = /[()=,{}\\[\\]\\/\\s]/;\n\n /** Used to match backslashes in property paths. */\n var reEscapeChar = /\\\\(\\\\)?/g;\n\n /**\n * Used to match\n * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).\n */\n var reEsTemplate = /\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g;\n\n /** Used to match `RegExp` flags from their coerced string values. */\n var reFlags = /\\w*$/;\n\n /** Used to detect bad signed hexadecimal string values. */\n var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n /** Used to detect binary string values. */\n var reIsBinary = /^0b[01]+$/i;\n\n /** Used to detect host constructors (Safari). */\n var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n /** Used to detect octal string values. */\n var reIsOctal = /^0o[0-7]+$/i;\n\n /** Used to detect unsigned integer values. */\n var reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n /** Used to match Latin Unicode letters (excluding mathematical operators). */\n var reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n /** Used to ensure capturing order of template delimiters. */\n var reNoMatch = /($^)/;\n\n /** Used to match unescaped characters in compiled string literals. */\n var reUnescapedString = /['\\n\\r\\u2028\\u2029\\\\]/g;\n\n /** Used to compose unicode character classes. */\n var rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n rsSpaceRange = ' \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n /** Used to compose unicode capture groups. */\n var rsApos = \"['\\u2019]\",\n rsAstral = '[' + rsAstralRange + ']',\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n /** Used to compose unicode regexes. */\n var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\n rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsOrdLower = '\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])',\n rsOrdUpper = '\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n /** Used to match apostrophes. */\n var reApos = RegExp(rsApos, 'g');\n\n /**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\n var reComboMark = RegExp(rsCombo, 'g');\n\n /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\n var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n /** Used to match complex or compound words. */\n var reUnicodeWord = RegExp([\n rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',\n rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,\n rsUpper + '+' + rsOptContrUpper,\n rsOrdUpper,\n rsOrdLower,\n rsDigits,\n rsEmoji\n ].join('|'), 'g');\n\n /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\n var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n /** Used to detect strings that need a more robust regexp to match words. */\n var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n /** Used to assign default `context` object properties. */\n var contextProps = [\n 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',\n 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',\n 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',\n 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',\n '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'\n ];\n\n /** Used to make template sourceURLs easier to identify. */\n var templateCounter = -1;\n\n /** Used to identify `toStringTag` values of typed arrays. */\n var typedArrayTags = {};\n typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\n typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\n typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\n typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\n typedArrayTags[uint32Tag] = true;\n typedArrayTags[argsTag] = typedArrayTags[arrayTag] =\n typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\n typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\n typedArrayTags[errorTag] = typedArrayTags[funcTag] =\n typedArrayTags[mapTag] = typedArrayTags[numberTag] =\n typedArrayTags[objectTag] = typedArrayTags[regexpTag] =\n typedArrayTags[setTag] = typedArrayTags[stringTag] =\n typedArrayTags[weakMapTag] = false;\n\n /** Used to identify `toStringTag` values supported by `_.clone`. */\n var cloneableTags = {};\n cloneableTags[argsTag] = cloneableTags[arrayTag] =\n cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\n cloneableTags[boolTag] = cloneableTags[dateTag] =\n cloneableTags[float32Tag] = cloneableTags[float64Tag] =\n cloneableTags[int8Tag] = cloneableTags[int16Tag] =\n cloneableTags[int32Tag] = cloneableTags[mapTag] =\n cloneableTags[numberTag] = cloneableTags[objectTag] =\n cloneableTags[regexpTag] = cloneableTags[setTag] =\n cloneableTags[stringTag] = cloneableTags[symbolTag] =\n cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\n cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\n cloneableTags[errorTag] = cloneableTags[funcTag] =\n cloneableTags[weakMapTag] = false;\n\n /** Used to map Latin Unicode letters to basic Latin letters. */\n var deburredLetters = {\n // Latin-1 Supplement block.\n '\\xc0': 'A', '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n '\\xe0': 'a', '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n '\\xc7': 'C', '\\xe7': 'c',\n '\\xd0': 'D', '\\xf0': 'd',\n '\\xc8': 'E', '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n '\\xe8': 'e', '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n '\\xcc': 'I', '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n '\\xec': 'i', '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n '\\xd1': 'N', '\\xf1': 'n',\n '\\xd2': 'O', '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n '\\xf2': 'o', '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n '\\xd9': 'U', '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n '\\xf9': 'u', '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n '\\xdd': 'Y', '\\xfd': 'y', '\\xff': 'y',\n '\\xc6': 'Ae', '\\xe6': 'ae',\n '\\xde': 'Th', '\\xfe': 'th',\n '\\xdf': 'ss',\n // Latin Extended-A block.\n '\\u0100': 'A', '\\u0102': 'A', '\\u0104': 'A',\n '\\u0101': 'a', '\\u0103': 'a', '\\u0105': 'a',\n '\\u0106': 'C', '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n '\\u0107': 'c', '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n '\\u010e': 'D', '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n '\\u0112': 'E', '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n '\\u0113': 'e', '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n '\\u011c': 'G', '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n '\\u011d': 'g', '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n '\\u0124': 'H', '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n '\\u0128': 'I', '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n '\\u0129': 'i', '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n '\\u0134': 'J', '\\u0135': 'j',\n '\\u0136': 'K', '\\u0137': 'k', '\\u0138': 'k',\n '\\u0139': 'L', '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n '\\u013a': 'l', '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n '\\u0143': 'N', '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n '\\u0144': 'n', '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n '\\u014c': 'O', '\\u014e': 'O', '\\u0150': 'O',\n '\\u014d': 'o', '\\u014f': 'o', '\\u0151': 'o',\n '\\u0154': 'R', '\\u0156': 'R', '\\u0158': 'R',\n '\\u0155': 'r', '\\u0157': 'r', '\\u0159': 'r',\n '\\u015a': 'S', '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n '\\u015b': 's', '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n '\\u0162': 'T', '\\u0164': 'T', '\\u0166': 'T',\n '\\u0163': 't', '\\u0165': 't', '\\u0167': 't',\n '\\u0168': 'U', '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n '\\u0169': 'u', '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n '\\u0174': 'W', '\\u0175': 'w',\n '\\u0176': 'Y', '\\u0177': 'y', '\\u0178': 'Y',\n '\\u0179': 'Z', '\\u017b': 'Z', '\\u017d': 'Z',\n '\\u017a': 'z', '\\u017c': 'z', '\\u017e': 'z',\n '\\u0132': 'IJ', '\\u0133': 'ij',\n '\\u0152': 'Oe', '\\u0153': 'oe',\n '\\u0149': \"'n\", '\\u017f': 's'\n };\n\n /** Used to map characters to HTML entities. */\n var htmlEscapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": '''\n };\n\n /** Used to map HTML entities to characters. */\n var htmlUnescapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '"': '\"',\n ''': \"'\"\n };\n\n /** Used to escape characters for inclusion in compiled string literals. */\n var stringEscapes = {\n '\\\\': '\\\\',\n \"'\": \"'\",\n '\\n': 'n',\n '\\r': 'r',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n };\n\n /** Built-in method references without a dependency on `root`. */\n var freeParseFloat = parseFloat,\n freeParseInt = parseInt;\n\n /** Detect free variable `global` from Node.js. */\n var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n /** Detect free variable `self`. */\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n /** Used as a reference to the global object. */\n var root = freeGlobal || freeSelf || Function('return this')();\n\n /** Detect free variable `exports`. */\n var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n /** Detect free variable `module`. */\n var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n /** Detect the popular CommonJS extension `module.exports`. */\n var moduleExports = freeModule && freeModule.exports === freeExports;\n\n /** Detect free variable `process` from Node.js. */\n var freeProcess = moduleExports && freeGlobal.process;\n\n /** Used to access faster Node.js helpers. */\n var nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n }());\n\n /* Node.js helper references. */\n var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,\n nodeIsDate = nodeUtil && nodeUtil.isDate,\n nodeIsMap = nodeUtil && nodeUtil.isMap,\n nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,\n nodeIsSet = nodeUtil && nodeUtil.isSet,\n nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\n function apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n }\n\n /**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.forEachRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEachRight(array, iteratee) {\n var length = array == null ? 0 : array.length;\n\n while (length--) {\n if (iteratee(array[length], length, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.every` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n */\n function arrayEvery(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (!predicate(array[index], index, array)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n }\n\n /**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n }\n\n /**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\n function arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n }\n\n /**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.reduceRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the last element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduceRight(array, iteratee, accumulator, initAccum) {\n var length = array == null ? 0 : array.length;\n if (initAccum && length) {\n accumulator = array[--length];\n }\n while (length--) {\n accumulator = iteratee(accumulator, array[length], length, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n var asciiSize = baseProperty('length');\n\n /**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function asciiToArray(string) {\n return string.split('');\n }\n\n /**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function asciiWords(string) {\n return string.match(reAsciiWord) || [];\n }\n\n /**\n * The base implementation of methods like `_.findKey` and `_.findLastKey`,\n * without support for iteratee shorthands, which iterates over `collection`\n * using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the found element or its key, else `undefined`.\n */\n function baseFindKey(collection, predicate, eachFunc) {\n var result;\n eachFunc(collection, function(value, key, collection) {\n if (predicate(value, key, collection)) {\n result = key;\n return false;\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n }\n\n /**\n * This function is like `baseIndexOf` except that it accepts a comparator.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOfWith(array, value, fromIndex, comparator) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (comparator(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\n function baseIsNaN(value) {\n return value !== value;\n }\n\n /**\n * The base implementation of `_.mean` and `_.meanBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the mean.\n */\n function baseMean(array, iteratee) {\n var length = array == null ? 0 : array.length;\n return length ? (baseSum(array, iteratee) / length) : NAN;\n }\n\n /**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\n function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\n function baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.sum` and `_.sumBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the sum.\n */\n function baseSum(array, iteratee) {\n var result,\n index = -1,\n length = array.length;\n\n while (++index < length) {\n var current = iteratee(array[index]);\n if (current !== undefined) {\n result = result === undefined ? current : (result + current);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\n function baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array\n * of key-value pairs for `object` corresponding to the property names of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the key-value pairs.\n */\n function baseToPairs(object, props) {\n return arrayMap(props, function(key) {\n return [key, object[key]];\n });\n }\n\n /**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\n function baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n }\n\n /**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\n function baseUnary(func) {\n return function(value) {\n return func(value);\n };\n }\n\n /**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\n function baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n }\n\n /**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function cacheHas(cache, key) {\n return cache.has(key);\n }\n\n /**\n * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the first unmatched string symbol.\n */\n function charsStartIndex(strSymbols, chrSymbols) {\n var index = -1,\n length = strSymbols.length;\n\n while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the last unmatched string symbol.\n */\n function charsEndIndex(strSymbols, chrSymbols) {\n var index = strSymbols.length;\n\n while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Gets the number of `placeholder` occurrences in `array`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} placeholder The placeholder to search for.\n * @returns {number} Returns the placeholder count.\n */\n function countHolders(array, placeholder) {\n var length = array.length,\n result = 0;\n\n while (length--) {\n if (array[length] === placeholder) {\n ++result;\n }\n }\n return result;\n }\n\n /**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\n var deburrLetter = basePropertyOf(deburredLetters);\n\n /**\n * Used by `_.escape` to convert characters to HTML entities.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n var escapeHtmlChar = basePropertyOf(htmlEscapes);\n\n /**\n * Used by `_.template` to escape characters for inclusion in compiled string literals.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n function escapeStringChar(chr) {\n return '\\\\' + stringEscapes[chr];\n }\n\n /**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function getValue(object, key) {\n return object == null ? undefined : object[key];\n }\n\n /**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\n function hasUnicode(string) {\n return reHasUnicode.test(string);\n }\n\n /**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\n function hasUnicodeWord(string) {\n return reHasUnicodeWord.test(string);\n }\n\n /**\n * Converts `iterator` to an array.\n *\n * @private\n * @param {Object} iterator The iterator to convert.\n * @returns {Array} Returns the converted array.\n */\n function iteratorToArray(iterator) {\n var data,\n result = [];\n\n while (!(data = iterator.next()).done) {\n result.push(data.value);\n }\n return result;\n }\n\n /**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\n function mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n }\n\n /**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\n function overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n }\n\n /**\n * Replaces all `placeholder` elements in `array` with an internal placeholder\n * and returns an array of their indexes.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {*} placeholder The placeholder to replace.\n * @returns {Array} Returns the new array of placeholder indexes.\n */\n function replaceHolders(array, placeholder) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value === placeholder || value === PLACEHOLDER) {\n array[index] = PLACEHOLDER;\n result[resIndex++] = index;\n }\n }\n return result;\n }\n\n /**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\n function setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n }\n\n /**\n * Converts `set` to its value-value pairs.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the value-value pairs.\n */\n function setToPairs(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = [value, value];\n });\n return result;\n }\n\n /**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * A specialized version of `_.lastIndexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictLastIndexOf(array, value, fromIndex) {\n var index = fromIndex + 1;\n while (index--) {\n if (array[index] === value) {\n return index;\n }\n }\n return index;\n }\n\n /**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\n function stringSize(string) {\n return hasUnicode(string)\n ? unicodeSize(string)\n : asciiSize(string);\n }\n\n /**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\n function trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n }\n\n /**\n * Used by `_.unescape` to convert HTML entities to characters.\n *\n * @private\n * @param {string} chr The matched character to unescape.\n * @returns {string} Returns the unescaped character.\n */\n var unescapeHtmlChar = basePropertyOf(htmlUnescapes);\n\n /**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n function unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n }\n\n /**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function unicodeToArray(string) {\n return string.match(reUnicode) || [];\n }\n\n /**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n }\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * Create a new pristine `lodash` function using the `context` object.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Util\n * @param {Object} [context=root] The context object.\n * @returns {Function} Returns a new `lodash` function.\n * @example\n *\n * _.mixin({ 'foo': _.constant('foo') });\n *\n * var lodash = _.runInContext();\n * lodash.mixin({ 'bar': lodash.constant('bar') });\n *\n * _.isFunction(_.foo);\n * // => true\n * _.isFunction(_.bar);\n * // => false\n *\n * lodash.isFunction(lodash.foo);\n * // => false\n * lodash.isFunction(lodash.bar);\n * // => true\n *\n * // Create a suped-up `defer` in Node.js.\n * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;\n */\n var runInContext = (function runInContext(context) {\n context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));\n\n /** Built-in constructor references. */\n var Array = context.Array,\n Date = context.Date,\n Error = context.Error,\n Function = context.Function,\n Math = context.Math,\n Object = context.Object,\n RegExp = context.RegExp,\n String = context.String,\n TypeError = context.TypeError;\n\n /** Used for built-in method references. */\n var arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n /** Used to detect overreaching core-js shims. */\n var coreJsData = context['__core-js_shared__'];\n\n /** Used to resolve the decompiled source of functions. */\n var funcToString = funcProto.toString;\n\n /** Used to check objects for own properties. */\n var hasOwnProperty = objectProto.hasOwnProperty;\n\n /** Used to generate unique IDs. */\n var idCounter = 0;\n\n /** Used to detect methods masquerading as native. */\n var maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n }());\n\n /**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n var nativeObjectToString = objectProto.toString;\n\n /** Used to infer the `Object` constructor. */\n var objectCtorString = funcToString.call(Object);\n\n /** Used to restore the original `_` reference in `_.noConflict`. */\n var oldDash = root._;\n\n /** Used to detect if a method is native. */\n var reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n );\n\n /** Built-in value references. */\n var Buffer = moduleExports ? context.Buffer : undefined,\n Symbol = context.Symbol,\n Uint8Array = context.Uint8Array,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n objectCreate = Object.create,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,\n symIterator = Symbol ? Symbol.iterator : undefined,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n var defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n }());\n\n /** Mocked built-ins. */\n var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,\n ctxNow = Date && Date.now !== root.Date.now && Date.now,\n ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;\n\n /* Built-in method references for those with the same name as other `lodash` methods. */\n var nativeCeil = Math.ceil,\n nativeFloor = Math.floor,\n nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeIsFinite = context.isFinite,\n nativeJoin = arrayProto.join,\n nativeKeys = overArg(Object.keys, Object),\n nativeMax = Math.max,\n nativeMin = Math.min,\n nativeNow = Date.now,\n nativeParseInt = context.parseInt,\n nativeRandom = Math.random,\n nativeReverse = arrayProto.reverse;\n\n /* Built-in method references that are verified to be native. */\n var DataView = getNative(context, 'DataView'),\n Map = getNative(context, 'Map'),\n Promise = getNative(context, 'Promise'),\n Set = getNative(context, 'Set'),\n WeakMap = getNative(context, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n /** Used to store function metadata. */\n var metaMap = WeakMap && new WeakMap;\n\n /** Used to lookup unminified function names. */\n var realNames = {};\n\n /** Used to detect maps, sets, and weakmaps. */\n var dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n /** Used to convert symbols to primitives and strings. */\n var symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` object which wraps `value` to enable implicit method\n * chain sequences. Methods that operate on and return arrays, collections,\n * and functions can be chained together. Methods that retrieve a single value\n * or may return a primitive value will automatically end the chain sequence\n * and return the unwrapped value. Otherwise, the value must be unwrapped\n * with `_#value`.\n *\n * Explicit chain sequences, which must be unwrapped with `_#value`, may be\n * enabled using `_.chain`.\n *\n * The execution of chained methods is lazy, that is, it's deferred until\n * `_#value` is implicitly or explicitly called.\n *\n * Lazy evaluation allows several methods to support shortcut fusion.\n * Shortcut fusion is an optimization to merge iteratee calls; this avoids\n * the creation of intermediate arrays and can greatly reduce the number of\n * iteratee executions. Sections of a chain sequence qualify for shortcut\n * fusion if the section is applied to an array and iteratees accept only\n * one argument. The heuristic for whether a section qualifies for shortcut\n * fusion is subject to change.\n *\n * Chaining is supported in custom builds as long as the `_#value` method is\n * directly or indirectly included in the build.\n *\n * In addition to lodash methods, wrappers have `Array` and `String` methods.\n *\n * The wrapper `Array` methods are:\n * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`\n *\n * The wrapper `String` methods are:\n * `replace` and `split`\n *\n * The wrapper methods that support shortcut fusion are:\n * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,\n * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,\n * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`\n *\n * The chainable wrapper methods are:\n * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,\n * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,\n * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,\n * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,\n * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,\n * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,\n * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,\n * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,\n * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,\n * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,\n * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,\n * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,\n * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,\n * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,\n * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,\n * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,\n * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,\n * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,\n * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,\n * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,\n * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,\n * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,\n * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,\n * `zipObject`, `zipObjectDeep`, and `zipWith`\n *\n * The wrapper methods that are **not** chainable by default are:\n * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,\n * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,\n * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,\n * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,\n * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,\n * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,\n * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,\n * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,\n * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,\n * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,\n * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,\n * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,\n * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,\n * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,\n * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,\n * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,\n * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,\n * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,\n * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,\n * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,\n * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,\n * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,\n * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,\n * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,\n * `upperFirst`, `value`, and `words`\n *\n * @name _\n * @constructor\n * @category Seq\n * @param {*} value The value to wrap in a `lodash` instance.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2, 3]);\n *\n * // Returns an unwrapped value.\n * wrapped.reduce(_.add);\n * // => 6\n *\n * // Returns a wrapped value.\n * var squares = wrapped.map(square);\n *\n * _.isArray(squares);\n * // => false\n *\n * _.isArray(squares.value());\n * // => true\n */\n function lodash(value) {\n if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {\n if (value instanceof LodashWrapper) {\n return value;\n }\n if (hasOwnProperty.call(value, '__wrapped__')) {\n return wrapperClone(value);\n }\n }\n return new LodashWrapper(value);\n }\n\n /**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\n var baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n }());\n\n /**\n * The function whose prototype chain sequence wrappers inherit from.\n *\n * @private\n */\n function baseLodash() {\n // No operation performed.\n }\n\n /**\n * The base constructor for creating `lodash` wrapper objects.\n *\n * @private\n * @param {*} value The value to wrap.\n * @param {boolean} [chainAll] Enable explicit method chain sequences.\n */\n function LodashWrapper(value, chainAll) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__chain__ = !!chainAll;\n this.__index__ = 0;\n this.__values__ = undefined;\n }\n\n /**\n * By default, the template delimiters used by lodash are like those in\n * embedded Ruby (ERB) as well as ES2015 template strings. Change the\n * following template settings to use alternative delimiters.\n *\n * @static\n * @memberOf _\n * @type {Object}\n */\n lodash.templateSettings = {\n\n /**\n * Used to detect `data` property values to be HTML-escaped.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'escape': reEscape,\n\n /**\n * Used to detect code to be evaluated.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'evaluate': reEvaluate,\n\n /**\n * Used to detect `data` property values to inject.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'interpolate': reInterpolate,\n\n /**\n * Used to reference the data object in the template text.\n *\n * @memberOf _.templateSettings\n * @type {string}\n */\n 'variable': '',\n\n /**\n * Used to import variables into the compiled template.\n *\n * @memberOf _.templateSettings\n * @type {Object}\n */\n 'imports': {\n\n /**\n * A reference to the `lodash` function.\n *\n * @memberOf _.templateSettings.imports\n * @type {Function}\n */\n '_': lodash\n }\n };\n\n // Ensure wrappers are instances of `baseLodash`.\n lodash.prototype = baseLodash.prototype;\n lodash.prototype.constructor = lodash;\n\n LodashWrapper.prototype = baseCreate(baseLodash.prototype);\n LodashWrapper.prototype.constructor = LodashWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.\n *\n * @private\n * @constructor\n * @param {*} value The value to wrap.\n */\n function LazyWrapper(value) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__dir__ = 1;\n this.__filtered__ = false;\n this.__iteratees__ = [];\n this.__takeCount__ = MAX_ARRAY_LENGTH;\n this.__views__ = [];\n }\n\n /**\n * Creates a clone of the lazy wrapper object.\n *\n * @private\n * @name clone\n * @memberOf LazyWrapper\n * @returns {Object} Returns the cloned `LazyWrapper` object.\n */\n function lazyClone() {\n var result = new LazyWrapper(this.__wrapped__);\n result.__actions__ = copyArray(this.__actions__);\n result.__dir__ = this.__dir__;\n result.__filtered__ = this.__filtered__;\n result.__iteratees__ = copyArray(this.__iteratees__);\n result.__takeCount__ = this.__takeCount__;\n result.__views__ = copyArray(this.__views__);\n return result;\n }\n\n /**\n * Reverses the direction of lazy iteration.\n *\n * @private\n * @name reverse\n * @memberOf LazyWrapper\n * @returns {Object} Returns the new reversed `LazyWrapper` object.\n */\n function lazyReverse() {\n if (this.__filtered__) {\n var result = new LazyWrapper(this);\n result.__dir__ = -1;\n result.__filtered__ = true;\n } else {\n result = this.clone();\n result.__dir__ *= -1;\n }\n return result;\n }\n\n /**\n * Extracts the unwrapped value from its lazy wrapper.\n *\n * @private\n * @name value\n * @memberOf LazyWrapper\n * @returns {*} Returns the unwrapped value.\n */\n function lazyValue() {\n var array = this.__wrapped__.value(),\n dir = this.__dir__,\n isArr = isArray(array),\n isRight = dir < 0,\n arrLength = isArr ? array.length : 0,\n view = getView(0, arrLength, this.__views__),\n start = view.start,\n end = view.end,\n length = end - start,\n index = isRight ? end : (start - 1),\n iteratees = this.__iteratees__,\n iterLength = iteratees.length,\n resIndex = 0,\n takeCount = nativeMin(length, this.__takeCount__);\n\n if (!isArr || (!isRight && arrLength == length && takeCount == length)) {\n return baseWrapperValue(array, this.__actions__);\n }\n var result = [];\n\n outer:\n while (length-- && resIndex < takeCount) {\n index += dir;\n\n var iterIndex = -1,\n value = array[index];\n\n while (++iterIndex < iterLength) {\n var data = iteratees[iterIndex],\n iteratee = data.iteratee,\n type = data.type,\n computed = iteratee(value);\n\n if (type == LAZY_MAP_FLAG) {\n value = computed;\n } else if (!computed) {\n if (type == LAZY_FILTER_FLAG) {\n continue outer;\n } else {\n break outer;\n }\n }\n }\n result[resIndex++] = value;\n }\n return result;\n }\n\n // Ensure `LazyWrapper` is an instance of `baseLodash`.\n LazyWrapper.prototype = baseCreate(baseLodash.prototype);\n LazyWrapper.prototype.constructor = LazyWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n }\n\n /**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n }\n\n /**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n function hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n }\n\n // Add methods to `Hash`.\n Hash.prototype.clear = hashClear;\n Hash.prototype['delete'] = hashDelete;\n Hash.prototype.get = hashGet;\n Hash.prototype.has = hashHas;\n Hash.prototype.set = hashSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\n function listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n }\n\n /**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n }\n\n /**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n }\n\n /**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n function listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n }\n\n // Add methods to `ListCache`.\n ListCache.prototype.clear = listCacheClear;\n ListCache.prototype['delete'] = listCacheDelete;\n ListCache.prototype.get = listCacheGet;\n ListCache.prototype.has = listCacheHas;\n ListCache.prototype.set = listCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\n function mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n }\n\n /**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function mapCacheGet(key) {\n return getMapData(this, key).get(key);\n }\n\n /**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function mapCacheHas(key) {\n return getMapData(this, key).has(key);\n }\n\n /**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\n function mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n }\n\n // Add methods to `MapCache`.\n MapCache.prototype.clear = mapCacheClear;\n MapCache.prototype['delete'] = mapCacheDelete;\n MapCache.prototype.get = mapCacheGet;\n MapCache.prototype.has = mapCacheHas;\n MapCache.prototype.set = mapCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\n function SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n }\n\n /**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\n function setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n }\n\n /**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\n function setCacheHas(value) {\n return this.__data__.has(value);\n }\n\n // Add methods to `SetCache`.\n SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\n SetCache.prototype.has = setCacheHas;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n }\n\n /**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\n function stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n }\n\n /**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function stackGet(key) {\n return this.__data__.get(key);\n }\n\n /**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function stackHas(key) {\n return this.__data__.has(key);\n }\n\n /**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\n function stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n }\n\n // Add methods to `Stack`.\n Stack.prototype.clear = stackClear;\n Stack.prototype['delete'] = stackDelete;\n Stack.prototype.get = stackGet;\n Stack.prototype.has = stackHas;\n Stack.prototype.set = stackSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\n function arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.sample` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @returns {*} Returns the random element.\n */\n function arraySample(array) {\n var length = array.length;\n return length ? array[baseRandom(0, length - 1)] : undefined;\n }\n\n /**\n * A specialized version of `_.sampleSize` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function arraySampleSize(array, n) {\n return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));\n }\n\n /**\n * A specialized version of `_.shuffle` for arrays.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function arrayShuffle(array) {\n return shuffleSelf(copyArray(array));\n }\n\n /**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n }\n\n /**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n }\n\n /**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n }\n\n /**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n }\n\n /**\n * The base implementation of `_.at` without support for individual paths.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {string[]} paths The property paths to pick.\n * @returns {Array} Returns the picked elements.\n */\n function baseAt(object, paths) {\n var index = -1,\n length = paths.length,\n result = Array(length),\n skip = object == null;\n\n while (++index < length) {\n result[index] = skip ? undefined : get(object, paths[index]);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.clamp` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n */\n function baseClamp(number, lower, upper) {\n if (number === number) {\n if (upper !== undefined) {\n number = number <= upper ? number : upper;\n }\n if (lower !== undefined) {\n number = number >= lower ? number : lower;\n }\n }\n return number;\n }\n\n /**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\n function baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n }\n\n /**\n * The base implementation of `_.conforms` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property predicates to conform to.\n * @returns {Function} Returns the new spec function.\n */\n function baseConforms(source) {\n var props = keys(source);\n return function(object) {\n return baseConformsTo(object, source, props);\n };\n }\n\n /**\n * The base implementation of `_.conformsTo` which accepts `props` to check.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n */\n function baseConformsTo(object, source, props) {\n var length = props.length;\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (length--) {\n var key = props[length],\n predicate = source[key],\n value = object[key];\n\n if ((value === undefined && !(key in object)) || !predicate(value)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.delay` and `_.defer` which accepts `args`\n * to provide to `func`.\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {Array} args The arguments to provide to `func`.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n function baseDelay(func, wait, args) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return setTimeout(function() { func.apply(undefined, args); }, wait);\n }\n\n /**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\n function baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEach = createBaseEach(baseForOwn);\n\n /**\n * The base implementation of `_.forEachRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEachRight = createBaseEach(baseForOwnRight, true);\n\n /**\n * The base implementation of `_.every` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`\n */\n function baseEvery(collection, predicate) {\n var result = true;\n baseEach(collection, function(value, index, collection) {\n result = !!predicate(value, index, collection);\n return result;\n });\n return result;\n }\n\n /**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\n function baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.fill` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n */\n function baseFill(array, value, start, end) {\n var length = array.length;\n\n start = toInteger(start);\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = (end === undefined || end > length) ? length : toInteger(end);\n if (end < 0) {\n end += length;\n }\n end = start > end ? 0 : toLength(end);\n while (start < end) {\n array[start++] = value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\n function baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseFor = createBaseFor();\n\n /**\n * This function is like `baseFor` except that it iterates over properties\n * in the opposite order.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseForRight = createBaseFor(true);\n\n /**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.forOwnRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwnRight(object, iteratee) {\n return object && baseForRight(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.functions` which creates an array of\n * `object` function property names filtered from `props`.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} props The property names to filter.\n * @returns {Array} Returns the function names.\n */\n function baseFunctions(object, props) {\n return arrayFilter(props, function(key) {\n return isFunction(object[key]);\n });\n }\n\n /**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\n function baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n }\n\n /**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n }\n\n /**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n function baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n }\n\n /**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\n function baseGt(value, other) {\n return value > other;\n }\n\n /**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n }\n\n /**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHasIn(object, key) {\n return object != null && key in Object(object);\n }\n\n /**\n * The base implementation of `_.inRange` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to check.\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n */\n function baseInRange(number, start, end) {\n return number >= nativeMin(start, end) && number < nativeMax(start, end);\n }\n\n /**\n * The base implementation of methods like `_.intersection`, without support\n * for iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of shared values.\n */\n function baseIntersection(arrays, iteratee, comparator) {\n var includes = comparator ? arrayIncludesWith : arrayIncludes,\n length = arrays[0].length,\n othLength = arrays.length,\n othIndex = othLength,\n caches = Array(othLength),\n maxLength = Infinity,\n result = [];\n\n while (othIndex--) {\n var array = arrays[othIndex];\n if (othIndex && iteratee) {\n array = arrayMap(array, baseUnary(iteratee));\n }\n maxLength = nativeMin(array.length, maxLength);\n caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))\n ? new SetCache(othIndex && array)\n : undefined;\n }\n array = arrays[0];\n\n var index = -1,\n seen = caches[0];\n\n outer:\n while (++index < length && result.length < maxLength) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (!(seen\n ? cacheHas(seen, computed)\n : includes(result, computed, comparator)\n )) {\n othIndex = othLength;\n while (--othIndex) {\n var cache = caches[othIndex];\n if (!(cache\n ? cacheHas(cache, computed)\n : includes(arrays[othIndex], computed, comparator))\n ) {\n continue outer;\n }\n }\n if (seen) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.invert` and `_.invertBy` which inverts\n * `object` with values transformed by `iteratee` and set by `setter`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform values.\n * @param {Object} accumulator The initial inverted object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseInverter(object, setter, iteratee, accumulator) {\n baseForOwn(object, function(value, key, object) {\n setter(accumulator, iteratee(value), key, object);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.invoke` without support for individual\n * method arguments.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {Array} args The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n */\n function baseInvoke(object, path, args) {\n path = castPath(path, object);\n object = parent(object, path);\n var func = object == null ? object : object[toKey(last(path))];\n return func == null ? undefined : apply(func, object, args);\n }\n\n /**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\n function baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n }\n\n /**\n * The base implementation of `_.isArrayBuffer` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n */\n function baseIsArrayBuffer(value) {\n return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;\n }\n\n /**\n * The base implementation of `_.isDate` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n */\n function baseIsDate(value) {\n return isObjectLike(value) && baseGetTag(value) == dateTag;\n }\n\n /**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\n function baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n }\n\n /**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n }\n\n /**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\n function baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n }\n\n /**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\n function baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\n function baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n }\n\n /**\n * The base implementation of `_.isRegExp` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n */\n function baseIsRegExp(value) {\n return isObjectLike(value) && baseGetTag(value) == regexpTag;\n }\n\n /**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\n function baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n }\n\n /**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\n function baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n }\n\n /**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\n function baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n }\n\n /**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\n function baseLt(value, other) {\n return value < other;\n }\n\n /**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n }\n\n /**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n }\n\n /**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n }\n\n /**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n }\n\n /**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n }\n\n /**\n * The base implementation of `_.nth` which doesn't coerce arguments.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {number} n The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n */\n function baseNth(array, n) {\n var length = array.length;\n if (!length) {\n return;\n }\n n += n < 0 ? length : 0;\n return isIndex(n, length) ? array[n] : undefined;\n }\n\n /**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\n function baseOrderBy(collection, iteratees, orders) {\n if (iteratees.length) {\n iteratees = arrayMap(iteratees, function(iteratee) {\n if (isArray(iteratee)) {\n return function(value) {\n return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);\n }\n }\n return iteratee;\n });\n } else {\n iteratees = [identity];\n }\n\n var index = -1;\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n }\n\n /**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\n function basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n }\n\n /**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\n function basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n }\n\n /**\n * The base implementation of `_.pullAllBy` without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n */\n function basePullAll(array, values, iteratee, comparator) {\n var indexOf = comparator ? baseIndexOfWith : baseIndexOf,\n index = -1,\n length = values.length,\n seen = array;\n\n if (array === values) {\n values = copyArray(values);\n }\n if (iteratee) {\n seen = arrayMap(array, baseUnary(iteratee));\n }\n while (++index < length) {\n var fromIndex = 0,\n value = values[index],\n computed = iteratee ? iteratee(value) : value;\n\n while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {\n if (seen !== array) {\n splice.call(seen, fromIndex, 1);\n }\n splice.call(array, fromIndex, 1);\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.pullAt` without support for individual\n * indexes or capturing the removed elements.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {number[]} indexes The indexes of elements to remove.\n * @returns {Array} Returns `array`.\n */\n function basePullAt(array, indexes) {\n var length = array ? indexes.length : 0,\n lastIndex = length - 1;\n\n while (length--) {\n var index = indexes[length];\n if (length == lastIndex || index !== previous) {\n var previous = index;\n if (isIndex(index)) {\n splice.call(array, index, 1);\n } else {\n baseUnset(array, index);\n }\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.random` without support for returning\n * floating-point numbers.\n *\n * @private\n * @param {number} lower The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the random number.\n */\n function baseRandom(lower, upper) {\n return lower + nativeFloor(nativeRandom() * (upper - lower + 1));\n }\n\n /**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\n function baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n }\n\n /**\n * The base implementation of `_.repeat` which doesn't coerce arguments.\n *\n * @private\n * @param {string} string The string to repeat.\n * @param {number} n The number of times to repeat the string.\n * @returns {string} Returns the repeated string.\n */\n function baseRepeat(string, n) {\n var result = '';\n if (!string || n < 1 || n > MAX_SAFE_INTEGER) {\n return result;\n }\n // Leverage the exponentiation by squaring algorithm for a faster repeat.\n // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.\n do {\n if (n % 2) {\n result += string;\n }\n n = nativeFloor(n / 2);\n if (n) {\n string += string;\n }\n } while (n);\n\n return result;\n }\n\n /**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\n function baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n }\n\n /**\n * The base implementation of `_.sample`.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n */\n function baseSample(collection) {\n return arraySample(values(collection));\n }\n\n /**\n * The base implementation of `_.sampleSize` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function baseSampleSize(collection, n) {\n var array = values(collection);\n return shuffleSelf(array, baseClamp(n, 0, array.length));\n }\n\n /**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n return object;\n }\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n }\n\n /**\n * The base implementation of `setData` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var baseSetData = !metaMap ? identity : function(func, data) {\n metaMap.set(func, data);\n return func;\n };\n\n /**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n };\n\n /**\n * The base implementation of `_.shuffle`.\n *\n * @private\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function baseShuffle(collection) {\n return shuffleSelf(values(collection));\n }\n\n /**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n }\n\n /**\n * The base implementation of `_.some` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function baseSome(collection, predicate) {\n var result;\n\n baseEach(collection, function(value, index, collection) {\n result = predicate(value, index, collection);\n return !result;\n });\n return !!result;\n }\n\n /**\n * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which\n * performs a binary search of `array` to determine the index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndex(array, value, retHighest) {\n var low = 0,\n high = array == null ? low : array.length;\n\n if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {\n while (low < high) {\n var mid = (low + high) >>> 1,\n computed = array[mid];\n\n if (computed !== null && !isSymbol(computed) &&\n (retHighest ? (computed <= value) : (computed < value))) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return high;\n }\n return baseSortedIndexBy(array, value, identity, retHighest);\n }\n\n /**\n * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`\n * which invokes `iteratee` for `value` and each element of `array` to compute\n * their sort ranking. The iteratee is invoked with one argument; (value).\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} iteratee The iteratee invoked per element.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndexBy(array, value, iteratee, retHighest) {\n var low = 0,\n high = array == null ? 0 : array.length;\n if (high === 0) {\n return 0;\n }\n\n value = iteratee(value);\n var valIsNaN = value !== value,\n valIsNull = value === null,\n valIsSymbol = isSymbol(value),\n valIsUndefined = value === undefined;\n\n while (low < high) {\n var mid = nativeFloor((low + high) / 2),\n computed = iteratee(array[mid]),\n othIsDefined = computed !== undefined,\n othIsNull = computed === null,\n othIsReflexive = computed === computed,\n othIsSymbol = isSymbol(computed);\n\n if (valIsNaN) {\n var setLow = retHighest || othIsReflexive;\n } else if (valIsUndefined) {\n setLow = othIsReflexive && (retHighest || othIsDefined);\n } else if (valIsNull) {\n setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);\n } else if (valIsSymbol) {\n setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);\n } else if (othIsNull || othIsSymbol) {\n setLow = false;\n } else {\n setLow = retHighest ? (computed <= value) : (computed < value);\n }\n if (setLow) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return nativeMin(high, MAX_ARRAY_INDEX);\n }\n\n /**\n * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseSortedUniq(array, iteratee) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n if (!index || !eq(computed, seen)) {\n var seen = computed;\n result[resIndex++] = value === 0 ? 0 : value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toNumber` which doesn't ensure correct\n * conversions of binary, hexadecimal, or octal string values.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n */\n function baseToNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n return +value;\n }\n\n /**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\n function baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\n function baseUnset(object, path) {\n path = castPath(path, object);\n object = parent(object, path);\n return object == null || delete object[toKey(last(path))];\n }\n\n /**\n * The base implementation of `_.update`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to update.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseUpdate(object, path, updater, customizer) {\n return baseSet(object, path, updater(baseGet(object, path)), customizer);\n }\n\n /**\n * The base implementation of methods like `_.dropWhile` and `_.takeWhile`\n * without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {Function} predicate The function invoked per iteration.\n * @param {boolean} [isDrop] Specify dropping elements instead of taking them.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseWhile(array, predicate, isDrop, fromRight) {\n var length = array.length,\n index = fromRight ? length : -1;\n\n while ((fromRight ? index-- : ++index < length) &&\n predicate(array[index], index, array)) {}\n\n return isDrop\n ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))\n : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));\n }\n\n /**\n * The base implementation of `wrapperValue` which returns the result of\n * performing a sequence of actions on the unwrapped `value`, where each\n * successive action is supplied the return value of the previous.\n *\n * @private\n * @param {*} value The unwrapped value.\n * @param {Array} actions Actions to perform to resolve the unwrapped value.\n * @returns {*} Returns the resolved value.\n */\n function baseWrapperValue(value, actions) {\n var result = value;\n if (result instanceof LazyWrapper) {\n result = result.value();\n }\n return arrayReduce(actions, function(result, action) {\n return action.func.apply(action.thisArg, arrayPush([result], action.args));\n }, result);\n }\n\n /**\n * The base implementation of methods like `_.xor`, without support for\n * iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of values.\n */\n function baseXor(arrays, iteratee, comparator) {\n var length = arrays.length;\n if (length < 2) {\n return length ? baseUniq(arrays[0]) : [];\n }\n var index = -1,\n result = Array(length);\n\n while (++index < length) {\n var array = arrays[index],\n othIndex = -1;\n\n while (++othIndex < length) {\n if (othIndex != index) {\n result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);\n }\n }\n }\n return baseUniq(baseFlatten(result, 1), iteratee, comparator);\n }\n\n /**\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n *\n * @private\n * @param {Array} props The property identifiers.\n * @param {Array} values The property values.\n * @param {Function} assignFunc The function to assign values.\n * @returns {Object} Returns the new object.\n */\n function baseZipObject(props, values, assignFunc) {\n var index = -1,\n length = props.length,\n valsLength = values.length,\n result = {};\n\n while (++index < length) {\n var value = index < valsLength ? values[index] : undefined;\n assignFunc(result, props[index], value);\n }\n return result;\n }\n\n /**\n * Casts `value` to an empty array if it's not an array like object.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array|Object} Returns the cast array-like object.\n */\n function castArrayLikeObject(value) {\n return isArrayLikeObject(value) ? value : [];\n }\n\n /**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\n function castFunction(value) {\n return typeof value == 'function' ? value : identity;\n }\n\n /**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\n function castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n }\n\n /**\n * A `baseRest` alias which can be replaced with `identity` by module\n * replacement plugins.\n *\n * @private\n * @type {Function}\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n var castRest = baseRest;\n\n /**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\n function castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n }\n\n /**\n * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).\n *\n * @private\n * @param {number|Object} id The timer id or timeout object of the timer to clear.\n */\n var clearTimeout = ctxClearTimeout || function(id) {\n return root.clearTimeout(id);\n };\n\n /**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\n function cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n }\n\n /**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\n function cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n }\n\n /**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\n function cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n }\n\n /**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\n function cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n }\n\n /**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\n function cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n }\n\n /**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\n function cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n }\n\n /**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\n function compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n }\n\n /**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\n function compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n }\n\n /**\n * Creates an array that is the composition of partially applied arguments,\n * placeholders, and provided arguments into a single array of arguments.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to prepend to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgs(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersLength = holders.length,\n leftIndex = -1,\n leftLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(leftLength + rangeLength),\n isUncurried = !isCurried;\n\n while (++leftIndex < leftLength) {\n result[leftIndex] = partials[leftIndex];\n }\n while (++argsIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[holders[argsIndex]] = args[argsIndex];\n }\n }\n while (rangeLength--) {\n result[leftIndex++] = args[argsIndex++];\n }\n return result;\n }\n\n /**\n * This function is like `composeArgs` except that the arguments composition\n * is tailored for `_.partialRight`.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to append to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgsRight(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersIndex = -1,\n holdersLength = holders.length,\n rightIndex = -1,\n rightLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(rangeLength + rightLength),\n isUncurried = !isCurried;\n\n while (++argsIndex < rangeLength) {\n result[argsIndex] = args[argsIndex];\n }\n var offset = argsIndex;\n while (++rightIndex < rightLength) {\n result[offset + rightIndex] = partials[rightIndex];\n }\n while (++holdersIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[offset + holders[holdersIndex]] = args[argsIndex++];\n }\n }\n return result;\n }\n\n /**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\n function copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n }\n\n /**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\n function copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n }\n\n /**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n }\n\n /**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n }\n\n /**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\n function createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, getIteratee(iteratee, 2), accumulator);\n };\n }\n\n /**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\n function createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n }\n\n /**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n }\n\n /**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the optional `this`\n * binding of `thisArg`.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createBind(func, bitmask, thisArg) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return fn.apply(isBind ? thisArg : this, arguments);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.lowerFirst`.\n *\n * @private\n * @param {string} methodName The name of the `String` case method to use.\n * @returns {Function} Returns the new case function.\n */\n function createCaseFirst(methodName) {\n return function(string) {\n string = toString(string);\n\n var strSymbols = hasUnicode(string)\n ? stringToArray(string)\n : undefined;\n\n var chr = strSymbols\n ? strSymbols[0]\n : string.charAt(0);\n\n var trailing = strSymbols\n ? castSlice(strSymbols, 1).join('')\n : string.slice(1);\n\n return chr[methodName]() + trailing;\n };\n }\n\n /**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\n function createCompounder(callback) {\n return function(string) {\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n };\n }\n\n /**\n * Creates a function that produces an instance of `Ctor` regardless of\n * whether it was invoked as part of a `new` expression or by `call` or `apply`.\n *\n * @private\n * @param {Function} Ctor The constructor to wrap.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCtor(Ctor) {\n return function() {\n // Use a `switch` statement to work with class constructors. See\n // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist\n // for more details.\n var args = arguments;\n switch (args.length) {\n case 0: return new Ctor;\n case 1: return new Ctor(args[0]);\n case 2: return new Ctor(args[0], args[1]);\n case 3: return new Ctor(args[0], args[1], args[2]);\n case 4: return new Ctor(args[0], args[1], args[2], args[3]);\n case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);\n case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);\n case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);\n }\n var thisBinding = baseCreate(Ctor.prototype),\n result = Ctor.apply(thisBinding, args);\n\n // Mimic the constructor's `return` behavior.\n // See https://es5.github.io/#x13.2.2 for more details.\n return isObject(result) ? result : thisBinding;\n };\n }\n\n /**\n * Creates a function that wraps `func` to enable currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {number} arity The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCurry(func, bitmask, arity) {\n var Ctor = createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length,\n placeholder = getHolder(wrapper);\n\n while (index--) {\n args[index] = arguments[index];\n }\n var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)\n ? []\n : replaceHolders(args, placeholder);\n\n length -= holders.length;\n if (length < arity) {\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, undefined,\n args, holders, undefined, undefined, arity - length);\n }\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return apply(fn, this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\n function createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = getIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n }\n\n /**\n * Creates a `_.flow` or `_.flowRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new flow function.\n */\n function createFlow(fromRight) {\n return flatRest(function(funcs) {\n var length = funcs.length,\n index = length,\n prereq = LodashWrapper.prototype.thru;\n\n if (fromRight) {\n funcs.reverse();\n }\n while (index--) {\n var func = funcs[index];\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (prereq && !wrapper && getFuncName(func) == 'wrapper') {\n var wrapper = new LodashWrapper([], true);\n }\n }\n index = wrapper ? index : length;\n while (++index < length) {\n func = funcs[index];\n\n var funcName = getFuncName(func),\n data = funcName == 'wrapper' ? getData(func) : undefined;\n\n if (data && isLaziable(data[0]) &&\n data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&\n !data[4].length && data[9] == 1\n ) {\n wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);\n } else {\n wrapper = (func.length == 1 && isLaziable(func))\n ? wrapper[funcName]()\n : wrapper.thru(func);\n }\n }\n return function() {\n var args = arguments,\n value = args[0];\n\n if (wrapper && args.length == 1 && isArray(value)) {\n return wrapper.plant(value).value();\n }\n var index = 0,\n result = length ? funcs[index].apply(this, args) : value;\n\n while (++index < length) {\n result = funcs[index].call(this, result);\n }\n return result;\n };\n });\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with optional `this`\n * binding of `thisArg`, partial application, and currying.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [partialsRight] The arguments to append to those provided\n * to the new function.\n * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {\n var isAry = bitmask & WRAP_ARY_FLAG,\n isBind = bitmask & WRAP_BIND_FLAG,\n isBindKey = bitmask & WRAP_BIND_KEY_FLAG,\n isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),\n isFlip = bitmask & WRAP_FLIP_FLAG,\n Ctor = isBindKey ? undefined : createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length;\n\n while (index--) {\n args[index] = arguments[index];\n }\n if (isCurried) {\n var placeholder = getHolder(wrapper),\n holdersCount = countHolders(args, placeholder);\n }\n if (partials) {\n args = composeArgs(args, partials, holders, isCurried);\n }\n if (partialsRight) {\n args = composeArgsRight(args, partialsRight, holdersRight, isCurried);\n }\n length -= holdersCount;\n if (isCurried && length < arity) {\n var newHolders = replaceHolders(args, placeholder);\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, thisArg,\n args, newHolders, argPos, ary, arity - length\n );\n }\n var thisBinding = isBind ? thisArg : this,\n fn = isBindKey ? thisBinding[func] : func;\n\n length = args.length;\n if (argPos) {\n args = reorder(args, argPos);\n } else if (isFlip && length > 1) {\n args.reverse();\n }\n if (isAry && ary < length) {\n args.length = ary;\n }\n if (this && this !== root && this instanceof wrapper) {\n fn = Ctor || createCtor(fn);\n }\n return fn.apply(thisBinding, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.invertBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} toIteratee The function to resolve iteratees.\n * @returns {Function} Returns the new inverter function.\n */\n function createInverter(setter, toIteratee) {\n return function(object, iteratee) {\n return baseInverter(object, setter, toIteratee(iteratee), {});\n };\n }\n\n /**\n * Creates a function that performs a mathematical operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @param {number} [defaultValue] The value used for `undefined` arguments.\n * @returns {Function} Returns the new mathematical operation function.\n */\n function createMathOperation(operator, defaultValue) {\n return function(value, other) {\n var result;\n if (value === undefined && other === undefined) {\n return defaultValue;\n }\n if (value !== undefined) {\n result = value;\n }\n if (other !== undefined) {\n if (result === undefined) {\n return other;\n }\n if (typeof value == 'string' || typeof other == 'string') {\n value = baseToString(value);\n other = baseToString(other);\n } else {\n value = baseToNumber(value);\n other = baseToNumber(other);\n }\n result = operator(value, other);\n }\n return result;\n };\n }\n\n /**\n * Creates a function like `_.over`.\n *\n * @private\n * @param {Function} arrayFunc The function to iterate over iteratees.\n * @returns {Function} Returns the new over function.\n */\n function createOver(arrayFunc) {\n return flatRest(function(iteratees) {\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n return baseRest(function(args) {\n var thisArg = this;\n return arrayFunc(iteratees, function(iteratee) {\n return apply(iteratee, thisArg, args);\n });\n });\n });\n }\n\n /**\n * Creates the padding for `string` based on `length`. The `chars` string\n * is truncated if the number of characters exceeds `length`.\n *\n * @private\n * @param {number} length The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padding for `string`.\n */\n function createPadding(length, chars) {\n chars = chars === undefined ? ' ' : baseToString(chars);\n\n var charsLength = chars.length;\n if (charsLength < 2) {\n return charsLength ? baseRepeat(chars, length) : chars;\n }\n var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));\n return hasUnicode(chars)\n ? castSlice(stringToArray(result), 0, length).join('')\n : result.slice(0, length);\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the `this` binding\n * of `thisArg` and `partials` prepended to the arguments it receives.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} partials The arguments to prepend to those provided to\n * the new function.\n * @returns {Function} Returns the new wrapped function.\n */\n function createPartial(func, bitmask, thisArg, partials) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var argsIndex = -1,\n argsLength = arguments.length,\n leftIndex = -1,\n leftLength = partials.length,\n args = Array(leftLength + argsLength),\n fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n\n while (++leftIndex < leftLength) {\n args[leftIndex] = partials[leftIndex];\n }\n while (argsLength--) {\n args[leftIndex++] = arguments[++argsIndex];\n }\n return apply(fn, isBind ? thisArg : this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\n function createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n }\n\n /**\n * Creates a function that performs a relational operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @returns {Function} Returns the new relational operation function.\n */\n function createRelationalOperation(operator) {\n return function(value, other) {\n if (!(typeof value == 'string' && typeof other == 'string')) {\n value = toNumber(value);\n other = toNumber(other);\n }\n return operator(value, other);\n };\n }\n\n /**\n * Creates a function that wraps `func` to continue currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {Function} wrapFunc The function to create the `func` wrapper.\n * @param {*} placeholder The placeholder value.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {\n var isCurry = bitmask & WRAP_CURRY_FLAG,\n newHolders = isCurry ? holders : undefined,\n newHoldersRight = isCurry ? undefined : holders,\n newPartials = isCurry ? partials : undefined,\n newPartialsRight = isCurry ? undefined : partials;\n\n bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);\n bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);\n\n if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {\n bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);\n }\n var newData = [\n func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,\n newHoldersRight, argPos, ary, arity\n ];\n\n var result = wrapFunc.apply(undefined, newData);\n if (isLaziable(func)) {\n setData(result, newData);\n }\n result.placeholder = placeholder;\n return setWrapToString(result, func, bitmask);\n }\n\n /**\n * Creates a function like `_.round`.\n *\n * @private\n * @param {string} methodName The name of the `Math` method to use when rounding.\n * @returns {Function} Returns the new round function.\n */\n function createRound(methodName) {\n var func = Math[methodName];\n return function(number, precision) {\n number = toNumber(number);\n precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);\n if (precision && nativeIsFinite(number)) {\n // Shift with exponential notation to avoid floating-point issues.\n // See [MDN](https://mdn.io/round#Examples) for more details.\n var pair = (toString(number) + 'e').split('e'),\n value = func(pair[0] + 'e' + (+pair[1] + precision));\n\n pair = (toString(value) + 'e').split('e');\n return +(pair[0] + 'e' + (+pair[1] - precision));\n }\n return func(number);\n };\n }\n\n /**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\n var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n };\n\n /**\n * Creates a `_.toPairs` or `_.toPairsIn` function.\n *\n * @private\n * @param {Function} keysFunc The function to get the keys of a given object.\n * @returns {Function} Returns the new pairs function.\n */\n function createToPairs(keysFunc) {\n return function(object) {\n var tag = getTag(object);\n if (tag == mapTag) {\n return mapToArray(object);\n }\n if (tag == setTag) {\n return setToPairs(object);\n }\n return baseToPairs(object, keysFunc(object));\n };\n }\n\n /**\n * Creates a function that either curries or invokes `func` with optional\n * `this` binding and partially applied arguments.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags.\n * 1 - `_.bind`\n * 2 - `_.bindKey`\n * 4 - `_.curry` or `_.curryRight` of a bound function\n * 8 - `_.curry`\n * 16 - `_.curryRight`\n * 32 - `_.partial`\n * 64 - `_.partialRight`\n * 128 - `_.rearg`\n * 256 - `_.ary`\n * 512 - `_.flip`\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to be partially applied.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {\n var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;\n if (!isBindKey && typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var length = partials ? partials.length : 0;\n if (!length) {\n bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);\n partials = holders = undefined;\n }\n ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);\n arity = arity === undefined ? arity : toInteger(arity);\n length -= holders ? holders.length : 0;\n\n if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {\n var partialsRight = partials,\n holdersRight = holders;\n\n partials = holders = undefined;\n }\n var data = isBindKey ? undefined : getData(func);\n\n var newData = [\n func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,\n argPos, ary, arity\n ];\n\n if (data) {\n mergeData(newData, data);\n }\n func = newData[0];\n bitmask = newData[1];\n thisArg = newData[2];\n partials = newData[3];\n holders = newData[4];\n arity = newData[9] = newData[9] === undefined\n ? (isBindKey ? 0 : func.length)\n : nativeMax(newData[9] - length, 0);\n\n if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {\n bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);\n }\n if (!bitmask || bitmask == WRAP_BIND_FLAG) {\n var result = createBind(func, bitmask, thisArg);\n } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {\n result = createCurry(func, bitmask, arity);\n } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {\n result = createPartial(func, bitmask, thisArg, partials);\n } else {\n result = createHybrid.apply(undefined, newData);\n }\n var setter = data ? baseSetData : setData;\n return setWrapToString(setter(result, newData), func, bitmask);\n }\n\n /**\n * Used by `_.defaults` to customize its `_.assignIn` use to assign properties\n * of source objects to the destination object for all destination properties\n * that resolve to `undefined`.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to assign.\n * @param {Object} object The parent object of `objValue`.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsAssignIn(objValue, srcValue, key, object) {\n if (objValue === undefined ||\n (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n return srcValue;\n }\n return objValue;\n }\n\n /**\n * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source\n * objects into destination objects that are passed thru.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to merge.\n * @param {Object} object The parent object of `objValue`.\n * @param {Object} source The parent object of `srcValue`.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {\n if (isObject(objValue) && isObject(srcValue)) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, objValue);\n baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);\n stack['delete'](srcValue);\n }\n return objValue;\n }\n\n /**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\n function customOmitClone(value) {\n return isPlainObject(value) ? undefined : value;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\n function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Check that cyclic values are equal.\n var objStacked = stack.get(object);\n var othStacked = stack.get(other);\n if (objStacked && othStacked) {\n return objStacked == other && othStacked == object;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n function flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n }\n\n /**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n }\n\n /**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n }\n\n /**\n * Gets metadata for `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {*} Returns the metadata for `func`.\n */\n var getData = !metaMap ? noop : function(func) {\n return metaMap.get(func);\n };\n\n /**\n * Gets the name of `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {string} Returns the function name.\n */\n function getFuncName(func) {\n var result = (func.name + ''),\n array = realNames[result],\n length = hasOwnProperty.call(realNames, result) ? array.length : 0;\n\n while (length--) {\n var data = array[length],\n otherFunc = data.func;\n if (otherFunc == null || otherFunc == func) {\n return data.name;\n }\n }\n return result;\n }\n\n /**\n * Gets the argument placeholder value for `func`.\n *\n * @private\n * @param {Function} func The function to inspect.\n * @returns {*} Returns the placeholder value.\n */\n function getHolder(func) {\n var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;\n return object.placeholder;\n }\n\n /**\n * Gets the appropriate \"iteratee\" function. If `_.iteratee` is customized,\n * this function returns the custom method, otherwise it returns `baseIteratee`.\n * If arguments are provided, the chosen function is invoked with them and\n * its result is returned.\n *\n * @private\n * @param {*} [value] The value to convert to an iteratee.\n * @param {number} [arity] The arity of the created iteratee.\n * @returns {Function} Returns the chosen function or its result.\n */\n function getIteratee() {\n var result = lodash.iteratee || iteratee;\n result = result === iteratee ? baseIteratee : result;\n return arguments.length ? result(arguments[0], arguments[1]) : result;\n }\n\n /**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n function getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n }\n\n /**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\n function getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n }\n\n /**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n function getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n }\n\n /**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\n function getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n }\n\n /**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n };\n\n /**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n };\n\n /**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n var getTag = baseGetTag;\n\n // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\n if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n }\n\n /**\n * Gets the view, applying any `transforms` to the `start` and `end` positions.\n *\n * @private\n * @param {number} start The start of the view.\n * @param {number} end The end of the view.\n * @param {Array} transforms The transformations to apply to the view.\n * @returns {Object} Returns an object containing the `start` and `end`\n * positions of the view.\n */\n function getView(start, end, transforms) {\n var index = -1,\n length = transforms.length;\n\n while (++index < length) {\n var data = transforms[index],\n size = data.size;\n\n switch (data.type) {\n case 'drop': start += size; break;\n case 'dropRight': end -= size; break;\n case 'take': end = nativeMin(end, start + size); break;\n case 'takeRight': start = nativeMax(start, end - size); break;\n }\n }\n return { 'start': start, 'end': end };\n }\n\n /**\n * Extracts wrapper details from the `source` body comment.\n *\n * @private\n * @param {string} source The source to inspect.\n * @returns {Array} Returns the wrapper details.\n */\n function getWrapDetails(source) {\n var match = source.match(reWrapDetails);\n return match ? match[1].split(reSplitDetails) : [];\n }\n\n /**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\n function hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n }\n\n /**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\n function initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n }\n\n /**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n }\n\n /**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n }\n\n /**\n * Inserts wrapper `details` in a comment at the top of the `source` body.\n *\n * @private\n * @param {string} source The source to modify.\n * @returns {Array} details The details to insert.\n * @returns {string} Returns the modified source.\n */\n function insertWrapDetails(source, details) {\n var length = details.length;\n if (!length) {\n return source;\n }\n var lastIndex = length - 1;\n details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];\n details = details.join(length > 2 ? ', ' : ' ');\n return source.replace(reWrapComment, '{\\n/* [wrapped with ' + details + '] */\\n');\n }\n\n /**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\n function isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n }\n\n /**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n function isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n }\n\n /**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\n function isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n }\n\n /**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\n function isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n }\n\n /**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\n function isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n }\n\n /**\n * Checks if `func` has a lazy counterpart.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` has a lazy counterpart,\n * else `false`.\n */\n function isLaziable(func) {\n var funcName = getFuncName(func),\n other = lodash[funcName];\n\n if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {\n return false;\n }\n if (func === other) {\n return true;\n }\n var data = getData(other);\n return !!data && func === data[0];\n }\n\n /**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\n function isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n }\n\n /**\n * Checks if `func` is capable of being masked.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `func` is maskable, else `false`.\n */\n var isMaskable = coreJsData ? isFunction : stubFalse;\n\n /**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\n function isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n }\n\n /**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\n function isStrictComparable(value) {\n return value === value && !isObject(value);\n }\n\n /**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n }\n\n /**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\n function memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n }\n\n /**\n * Merges the function metadata of `source` into `data`.\n *\n * Merging metadata reduces the number of wrappers used to invoke a function.\n * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`\n * may be applied regardless of execution order. Methods like `_.ary` and\n * `_.rearg` modify function arguments, making the order in which they are\n * executed important, preventing the merging of metadata. However, we make\n * an exception for a safe combined case where curried functions have `_.ary`\n * and or `_.rearg` applied.\n *\n * @private\n * @param {Array} data The destination metadata.\n * @param {Array} source The source metadata.\n * @returns {Array} Returns `data`.\n */\n function mergeData(data, source) {\n var bitmask = data[1],\n srcBitmask = source[1],\n newBitmask = bitmask | srcBitmask,\n isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);\n\n var isCombo =\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||\n ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));\n\n // Exit early if metadata can't be merged.\n if (!(isCommon || isCombo)) {\n return data;\n }\n // Use source `thisArg` if available.\n if (srcBitmask & WRAP_BIND_FLAG) {\n data[2] = source[2];\n // Set when currying a bound function.\n newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;\n }\n // Compose partial arguments.\n var value = source[3];\n if (value) {\n var partials = data[3];\n data[3] = partials ? composeArgs(partials, value, source[4]) : value;\n data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];\n }\n // Compose partial right arguments.\n value = source[5];\n if (value) {\n partials = data[5];\n data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;\n data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];\n }\n // Use source `argPos` if available.\n value = source[7];\n if (value) {\n data[7] = value;\n }\n // Use source `ary` if it's smaller.\n if (srcBitmask & WRAP_ARY_FLAG) {\n data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);\n }\n // Use source `arity` if one is not provided.\n if (data[9] == null) {\n data[9] = source[9];\n }\n // Use source `func` and merge bitmasks.\n data[0] = source[0];\n data[1] = newBitmask;\n\n return data;\n }\n\n /**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\n function objectToString(value) {\n return nativeObjectToString.call(value);\n }\n\n /**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\n function overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n }\n\n /**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\n function parent(object, path) {\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n }\n\n /**\n * Reorder `array` according to the specified indexes where the element at\n * the first index is assigned as the first element, the element at\n * the second index is assigned as the second element, and so on.\n *\n * @private\n * @param {Array} array The array to reorder.\n * @param {Array} indexes The arranged array indexes.\n * @returns {Array} Returns `array`.\n */\n function reorder(array, indexes) {\n var arrLength = array.length,\n length = nativeMin(indexes.length, arrLength),\n oldArray = copyArray(array);\n\n while (length--) {\n var index = indexes[length];\n array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;\n }\n return array;\n }\n\n /**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n }\n\n /**\n * Sets metadata for `func`.\n *\n * **Note:** If this function becomes hot, i.e. is invoked a lot in a short\n * period of time, it will trip its breaker and transition to an identity\n * function to avoid garbage collection pauses in V8. See\n * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)\n * for more details.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var setData = shortOut(baseSetData);\n\n /**\n * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n var setTimeout = ctxSetTimeout || function(func, wait) {\n return root.setTimeout(func, wait);\n };\n\n /**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var setToString = shortOut(baseSetToString);\n\n /**\n * Sets the `toString` method of `wrapper` to mimic the source of `reference`\n * with wrapper details in a comment at the top of the source body.\n *\n * @private\n * @param {Function} wrapper The function to modify.\n * @param {Function} reference The reference function.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Function} Returns `wrapper`.\n */\n function setWrapToString(wrapper, reference, bitmask) {\n var source = (reference + '');\n return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));\n }\n\n /**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\n function shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n }\n\n /**\n * A specialized version of `_.shuffle` which mutates and sets the size of `array`.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @param {number} [size=array.length] The size of `array`.\n * @returns {Array} Returns `array`.\n */\n function shuffleSelf(array, size) {\n var index = -1,\n length = array.length,\n lastIndex = length - 1;\n\n size = size === undefined ? length : size;\n while (++index < size) {\n var rand = baseRandom(index, lastIndex),\n value = array[rand];\n\n array[rand] = array[index];\n array[index] = value;\n }\n array.length = size;\n return array;\n }\n\n /**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\n var stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n });\n\n /**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\n function toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\n function toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n }\n\n /**\n * Updates wrapper `details` based on `bitmask` flags.\n *\n * @private\n * @returns {Array} details The details to modify.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Array} Returns `details`.\n */\n function updateWrapDetails(details, bitmask) {\n arrayEach(wrapFlags, function(pair) {\n var value = '_.' + pair[0];\n if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {\n details.push(value);\n }\n });\n return details.sort();\n }\n\n /**\n * Creates a clone of `wrapper`.\n *\n * @private\n * @param {Object} wrapper The wrapper to clone.\n * @returns {Object} Returns the cloned wrapper.\n */\n function wrapperClone(wrapper) {\n if (wrapper instanceof LazyWrapper) {\n return wrapper.clone();\n }\n var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);\n result.__actions__ = copyArray(wrapper.__actions__);\n result.__index__ = wrapper.__index__;\n result.__values__ = wrapper.__values__;\n return result;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of elements split into groups the length of `size`.\n * If `array` can't be split evenly, the final chunk will be the remaining\n * elements.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to process.\n * @param {number} [size=1] The length of each chunk\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the new array of chunks.\n * @example\n *\n * _.chunk(['a', 'b', 'c', 'd'], 2);\n * // => [['a', 'b'], ['c', 'd']]\n *\n * _.chunk(['a', 'b', 'c', 'd'], 3);\n * // => [['a', 'b', 'c'], ['d']]\n */\n function chunk(array, size, guard) {\n if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {\n size = 1;\n } else {\n size = nativeMax(toInteger(size), 0);\n }\n var length = array == null ? 0 : array.length;\n if (!length || size < 1) {\n return [];\n }\n var index = 0,\n resIndex = 0,\n result = Array(nativeCeil(length / size));\n\n while (index < length) {\n result[resIndex++] = baseSlice(array, index, (index += size));\n }\n return result;\n }\n\n /**\n * Creates an array with all falsey values removed. The values `false`, `null`,\n * `0`, `\"\"`, `undefined`, and `NaN` are falsey.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to compact.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.compact([0, 1, false, 2, '', 3]);\n * // => [1, 2, 3]\n */\n function compact(array) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * Creates a new array concatenating `array` with any additional arrays\n * and/or values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to concatenate.\n * @param {...*} [values] The values to concatenate.\n * @returns {Array} Returns the new concatenated array.\n * @example\n *\n * var array = [1];\n * var other = _.concat(array, 2, [3], [[4]]);\n *\n * console.log(other);\n * // => [1, 2, 3, [4]]\n *\n * console.log(array);\n * // => [1]\n */\n function concat() {\n var length = arguments.length;\n if (!length) {\n return [];\n }\n var args = Array(length - 1),\n array = arguments[0],\n index = length;\n\n while (index--) {\n args[index - 1] = arguments[index];\n }\n return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));\n }\n\n /**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\n var difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `iteratee` which\n * is invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * **Note:** Unlike `_.pullAllBy`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var differenceBy = baseRest(function(array, values) {\n var iteratee = last(values);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `comparator`\n * which is invoked to compare elements of `array` to `values`. The order and\n * references of result values are determined by the first array. The comparator\n * is invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.pullAllWith`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n *\n * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }]\n */\n var differenceWith = baseRest(function(array, values) {\n var comparator = last(values);\n if (isArrayLikeObject(comparator)) {\n comparator = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)\n : [];\n });\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.drop([1, 2, 3]);\n * // => [2, 3]\n *\n * _.drop([1, 2, 3], 2);\n * // => [3]\n *\n * _.drop([1, 2, 3], 5);\n * // => []\n *\n * _.drop([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function drop(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.dropRight([1, 2, 3]);\n * // => [1, 2]\n *\n * _.dropRight([1, 2, 3], 2);\n * // => [1]\n *\n * _.dropRight([1, 2, 3], 5);\n * // => []\n *\n * _.dropRight([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function dropRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the end.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.dropRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropRightWhile(users, ['active', false]);\n * // => objects for ['barney']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropRightWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the beginning.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.dropWhile(users, function(o) { return !o.active; });\n * // => objects for ['pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropWhile(users, ['active', false]);\n * // => objects for ['pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true)\n : [];\n }\n\n /**\n * Fills elements of `array` with `value` from `start` up to, but not\n * including, `end`.\n *\n * **Note:** This method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Array\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.fill(array, 'a');\n * console.log(array);\n * // => ['a', 'a', 'a']\n *\n * _.fill(Array(3), 2);\n * // => [2, 2, 2]\n *\n * _.fill([4, 6, 8, 10], '*', 1, 3);\n * // => [4, '*', '*', 10]\n */\n function fill(array, value, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {\n start = 0;\n end = length;\n }\n return baseFill(array, value, start, end);\n }\n\n /**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\n function findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index);\n }\n\n /**\n * This method is like `_.findIndex` except that it iterates over elements\n * of `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\n * // => 2\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\n * // => 0\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastIndex(users, ['active', false]);\n * // => 2\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastIndex(users, 'active');\n * // => 0\n */\n function findLastIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length - 1;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = fromIndex < 0\n ? nativeMax(length + index, 0)\n : nativeMin(index, length - 1);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index, true);\n }\n\n /**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\n function flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n }\n\n /**\n * Recursively flattens `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flattenDeep([1, [2, [3, [4]], 5]]);\n * // => [1, 2, 3, 4, 5]\n */\n function flattenDeep(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, INFINITY) : [];\n }\n\n /**\n * Recursively flatten `array` up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * var array = [1, [2, [3, [4]], 5]];\n *\n * _.flattenDepth(array, 1);\n * // => [1, 2, [3, [4]], 5]\n *\n * _.flattenDepth(array, 2);\n * // => [1, 2, 3, [4], 5]\n */\n function flattenDepth(array, depth) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(array, depth);\n }\n\n /**\n * The inverse of `_.toPairs`; this method returns an object composed\n * from key-value `pairs`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} pairs The key-value pairs.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.fromPairs([['a', 1], ['b', 2]]);\n * // => { 'a': 1, 'b': 2 }\n */\n function fromPairs(pairs) {\n var index = -1,\n length = pairs == null ? 0 : pairs.length,\n result = {};\n\n while (++index < length) {\n var pair = pairs[index];\n result[pair[0]] = pair[1];\n }\n return result;\n }\n\n /**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\n function head(array) {\n return (array && array.length) ? array[0] : undefined;\n }\n\n /**\n * Gets the index at which the first occurrence of `value` is found in `array`\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. If `fromIndex` is negative, it's used as the\n * offset from the end of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.indexOf([1, 2, 1, 2], 2);\n * // => 1\n *\n * // Search from the `fromIndex`.\n * _.indexOf([1, 2, 1, 2], 2, 2);\n * // => 3\n */\n function indexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseIndexOf(array, value, index);\n }\n\n /**\n * Gets all but the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.initial([1, 2, 3]);\n * // => [1, 2]\n */\n function initial(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 0, -1) : [];\n }\n\n /**\n * Creates an array of unique values that are included in all given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersection([2, 1], [2, 3]);\n * // => [2]\n */\n var intersection = baseRest(function(arrays) {\n var mapped = arrayMap(arrays, castArrayLikeObject);\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped)\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `iteratee`\n * which is invoked for each element of each `arrays` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [2.1]\n *\n * // The `_.property` iteratee shorthand.\n * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }]\n */\n var intersectionBy = baseRest(function(arrays) {\n var iteratee = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n if (iteratee === last(mapped)) {\n iteratee = undefined;\n } else {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `comparator`\n * which is invoked to compare elements of `arrays`. The order and references\n * of result values are determined by the first array. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.intersectionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }]\n */\n var intersectionWith = baseRest(function(arrays) {\n var comparator = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n comparator = typeof comparator == 'function' ? comparator : undefined;\n if (comparator) {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, undefined, comparator)\n : [];\n });\n\n /**\n * Converts all elements in `array` into a string separated by `separator`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to convert.\n * @param {string} [separator=','] The element separator.\n * @returns {string} Returns the joined string.\n * @example\n *\n * _.join(['a', 'b', 'c'], '~');\n * // => 'a~b~c'\n */\n function join(array, separator) {\n return array == null ? '' : nativeJoin.call(array, separator);\n }\n\n /**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\n function last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n }\n\n /**\n * This method is like `_.indexOf` except that it iterates over elements of\n * `array` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.lastIndexOf([1, 2, 1, 2], 2);\n * // => 3\n *\n * // Search from the `fromIndex`.\n * _.lastIndexOf([1, 2, 1, 2], 2, 2);\n * // => 1\n */\n function lastIndexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);\n }\n return value === value\n ? strictLastIndexOf(array, value, index)\n : baseFindIndex(array, baseIsNaN, index, true);\n }\n\n /**\n * Gets the element at index `n` of `array`. If `n` is negative, the nth\n * element from the end is returned.\n *\n * @static\n * @memberOf _\n * @since 4.11.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=0] The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n *\n * _.nth(array, 1);\n * // => 'b'\n *\n * _.nth(array, -2);\n * // => 'c';\n */\n function nth(array, n) {\n return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;\n }\n\n /**\n * Removes all given values from `array` using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`\n * to remove elements from an array by predicate.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...*} [values] The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pull(array, 'a', 'c');\n * console.log(array);\n * // => ['b', 'b']\n */\n var pull = baseRest(pullAll);\n\n /**\n * This method is like `_.pull` except that it accepts an array of values to remove.\n *\n * **Note:** Unlike `_.difference`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pullAll(array, ['a', 'c']);\n * console.log(array);\n * // => ['b', 'b']\n */\n function pullAll(array, values) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values)\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `iteratee` which is\n * invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The iteratee is invoked with one argument: (value).\n *\n * **Note:** Unlike `_.differenceBy`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];\n *\n * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');\n * console.log(array);\n * // => [{ 'x': 2 }]\n */\n function pullAllBy(array, values, iteratee) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, getIteratee(iteratee, 2))\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `comparator` which\n * is invoked to compare elements of `array` to `values`. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.differenceWith`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];\n *\n * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);\n * console.log(array);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]\n */\n function pullAllWith(array, values, comparator) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, undefined, comparator)\n : array;\n }\n\n /**\n * Removes elements from `array` corresponding to `indexes` and returns an\n * array of removed elements.\n *\n * **Note:** Unlike `_.at`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...(number|number[])} [indexes] The indexes of elements to remove.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n * var pulled = _.pullAt(array, [1, 3]);\n *\n * console.log(array);\n * // => ['a', 'c']\n *\n * console.log(pulled);\n * // => ['b', 'd']\n */\n var pullAt = flatRest(function(array, indexes) {\n var length = array == null ? 0 : array.length,\n result = baseAt(array, indexes);\n\n basePullAt(array, arrayMap(indexes, function(index) {\n return isIndex(index, length) ? +index : index;\n }).sort(compareAscending));\n\n return result;\n });\n\n /**\n * Removes all elements from `array` that `predicate` returns truthy for\n * and returns an array of the removed elements. The predicate is invoked\n * with three arguments: (value, index, array).\n *\n * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`\n * to pull elements from an array by value.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = [1, 2, 3, 4];\n * var evens = _.remove(array, function(n) {\n * return n % 2 == 0;\n * });\n *\n * console.log(array);\n * // => [1, 3]\n *\n * console.log(evens);\n * // => [2, 4]\n */\n function remove(array, predicate) {\n var result = [];\n if (!(array && array.length)) {\n return result;\n }\n var index = -1,\n indexes = [],\n length = array.length;\n\n predicate = getIteratee(predicate, 3);\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result.push(value);\n indexes.push(index);\n }\n }\n basePullAt(array, indexes);\n return result;\n }\n\n /**\n * Reverses `array` so that the first element becomes the last, the second\n * element becomes the second to last, and so on.\n *\n * **Note:** This method mutates `array` and is based on\n * [`Array#reverse`](https://mdn.io/Array/reverse).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.reverse(array);\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function reverse(array) {\n return array == null ? array : nativeReverse.call(array);\n }\n\n /**\n * Creates a slice of `array` from `start` up to, but not including, `end`.\n *\n * **Note:** This method is used instead of\n * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are\n * returned.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function slice(array, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {\n start = 0;\n end = length;\n }\n else {\n start = start == null ? 0 : toInteger(start);\n end = end === undefined ? length : toInteger(end);\n }\n return baseSlice(array, start, end);\n }\n\n /**\n * Uses a binary search to determine the lowest index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedIndex([30, 50], 40);\n * // => 1\n */\n function sortedIndex(array, value) {\n return baseSortedIndex(array, value);\n }\n\n /**\n * This method is like `_.sortedIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedIndexBy(objects, { 'x': 4 }, 'x');\n * // => 0\n */\n function sortedIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));\n }\n\n /**\n * This method is like `_.indexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedIndexOf([4, 5, 5, 5, 6], 5);\n * // => 1\n */\n function sortedIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value);\n if (index < length && eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.sortedIndex` except that it returns the highest\n * index at which `value` should be inserted into `array` in order to\n * maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedLastIndex([4, 5, 5, 5, 6], 5);\n * // => 4\n */\n function sortedLastIndex(array, value) {\n return baseSortedIndex(array, value, true);\n }\n\n /**\n * This method is like `_.sortedLastIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 1\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');\n * // => 1\n */\n function sortedLastIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);\n }\n\n /**\n * This method is like `_.lastIndexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);\n * // => 3\n */\n function sortedLastIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value, true) - 1;\n if (eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.uniq` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniq([1, 1, 2]);\n * // => [1, 2]\n */\n function sortedUniq(array) {\n return (array && array.length)\n ? baseSortedUniq(array)\n : [];\n }\n\n /**\n * This method is like `_.uniqBy` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);\n * // => [1.1, 2.3]\n */\n function sortedUniqBy(array, iteratee) {\n return (array && array.length)\n ? baseSortedUniq(array, getIteratee(iteratee, 2))\n : [];\n }\n\n /**\n * Gets all but the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.tail([1, 2, 3]);\n * // => [2, 3]\n */\n function tail(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 1, length) : [];\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.take([1, 2, 3]);\n * // => [1]\n *\n * _.take([1, 2, 3], 2);\n * // => [1, 2]\n *\n * _.take([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.take([1, 2, 3], 0);\n * // => []\n */\n function take(array, n, guard) {\n if (!(array && array.length)) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.takeRight([1, 2, 3]);\n * // => [3]\n *\n * _.takeRight([1, 2, 3], 2);\n * // => [2, 3]\n *\n * _.takeRight([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.takeRight([1, 2, 3], 0);\n * // => []\n */\n function takeRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with elements taken from the end. Elements are\n * taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.takeRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeRightWhile(users, ['active', false]);\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeRightWhile(users, 'active');\n * // => []\n */\n function takeRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), false, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` with elements taken from the beginning. Elements\n * are taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.takeWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeWhile(users, ['active', false]);\n * // => objects for ['barney', 'fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeWhile(users, 'active');\n * // => []\n */\n function takeWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3))\n : [];\n }\n\n /**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\n var union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n });\n\n /**\n * This method is like `_.union` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which uniqueness is computed. Result values are chosen from the first\n * array in which the value occurs. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.unionBy([2.1], [1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n var unionBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.union` except that it accepts `comparator` which\n * is invoked to compare elements of `arrays`. Result values are chosen from\n * the first array in which the value occurs. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.unionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var unionWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);\n });\n\n /**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\n function uniq(array) {\n return (array && array.length) ? baseUniq(array) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * uniqueness is computed. The order of result values is determined by the\n * order they occur in the array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n function uniqBy(array, iteratee) {\n return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `comparator` which\n * is invoked to compare elements of `array`. The order of result values is\n * determined by the order they occur in the array.The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.uniqWith(objects, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]\n */\n function uniqWith(array, comparator) {\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return (array && array.length) ? baseUniq(array, undefined, comparator) : [];\n }\n\n /**\n * This method is like `_.zip` except that it accepts an array of grouped\n * elements and creates an array regrouping the elements to their pre-zip\n * configuration.\n *\n * @static\n * @memberOf _\n * @since 1.2.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n *\n * _.unzip(zipped);\n * // => [['a', 'b'], [1, 2], [true, false]]\n */\n function unzip(array) {\n if (!(array && array.length)) {\n return [];\n }\n var length = 0;\n array = arrayFilter(array, function(group) {\n if (isArrayLikeObject(group)) {\n length = nativeMax(group.length, length);\n return true;\n }\n });\n return baseTimes(length, function(index) {\n return arrayMap(array, baseProperty(index));\n });\n }\n\n /**\n * This method is like `_.unzip` except that it accepts `iteratee` to specify\n * how regrouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * regrouped values.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip([1, 2], [10, 20], [100, 200]);\n * // => [[1, 10, 100], [2, 20, 200]]\n *\n * _.unzipWith(zipped, _.add);\n * // => [3, 30, 300]\n */\n function unzipWith(array, iteratee) {\n if (!(array && array.length)) {\n return [];\n }\n var result = unzip(array);\n if (iteratee == null) {\n return result;\n }\n return arrayMap(result, function(group) {\n return apply(iteratee, undefined, group);\n });\n }\n\n /**\n * Creates an array excluding all given values using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.pull`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...*} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.xor\n * @example\n *\n * _.without([2, 1, 2, 3], 1, 2);\n * // => [3]\n */\n var without = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, values)\n : [];\n });\n\n /**\n * Creates an array of unique values that is the\n * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)\n * of the given arrays. The order of result values is determined by the order\n * they occur in the arrays.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.without\n * @example\n *\n * _.xor([2, 1], [2, 3]);\n * // => [1, 3]\n */\n var xor = baseRest(function(arrays) {\n return baseXor(arrayFilter(arrays, isArrayLikeObject));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which by which they're compared. The order of result values is determined\n * by the order they occur in the arrays. The iteratee is invoked with one\n * argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2, 3.4]\n *\n * // The `_.property` iteratee shorthand.\n * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var xorBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `comparator` which is\n * invoked to compare elements of `arrays`. The order of result values is\n * determined by the order they occur in the arrays. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.xorWith(objects, others, _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var xorWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);\n });\n\n /**\n * Creates an array of grouped elements, the first of which contains the\n * first elements of the given arrays, the second of which contains the\n * second elements of the given arrays, and so on.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n */\n var zip = baseRest(unzip);\n\n /**\n * This method is like `_.fromPairs` except that it accepts two arrays,\n * one of property identifiers and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 0.4.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['a', 'b'], [1, 2]);\n * // => { 'a': 1, 'b': 2 }\n */\n function zipObject(props, values) {\n return baseZipObject(props || [], values || [], assignValue);\n }\n\n /**\n * This method is like `_.zipObject` except that it supports property paths.\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);\n * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }\n */\n function zipObjectDeep(props, values) {\n return baseZipObject(props || [], values || [], baseSet);\n }\n\n /**\n * This method is like `_.zip` except that it accepts `iteratee` to specify\n * how grouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * grouped values.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {\n * return a + b + c;\n * });\n * // => [111, 222]\n */\n var zipWith = baseRest(function(arrays) {\n var length = arrays.length,\n iteratee = length > 1 ? arrays[length - 1] : undefined;\n\n iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;\n return unzipWith(arrays, iteratee);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` wrapper instance that wraps `value` with explicit method\n * chain sequences enabled. The result of such sequences must be unwrapped\n * with `_#value`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Seq\n * @param {*} value The value to wrap.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'pebbles', 'age': 1 }\n * ];\n *\n * var youngest = _\n * .chain(users)\n * .sortBy('age')\n * .map(function(o) {\n * return o.user + ' is ' + o.age;\n * })\n * .head()\n * .value();\n * // => 'pebbles is 1'\n */\n function chain(value) {\n var result = lodash(value);\n result.__chain__ = true;\n return result;\n }\n\n /**\n * This method invokes `interceptor` and returns `value`. The interceptor\n * is invoked with one argument; (value). The purpose of this method is to\n * \"tap into\" a method chain sequence in order to modify intermediate results.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns `value`.\n * @example\n *\n * _([1, 2, 3])\n * .tap(function(array) {\n * // Mutate input array.\n * array.pop();\n * })\n * .reverse()\n * .value();\n * // => [2, 1]\n */\n function tap(value, interceptor) {\n interceptor(value);\n return value;\n }\n\n /**\n * This method is like `_.tap` except that it returns the result of `interceptor`.\n * The purpose of this method is to \"pass thru\" values replacing intermediate\n * results in a method chain sequence.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns the result of `interceptor`.\n * @example\n *\n * _(' abc ')\n * .chain()\n * .trim()\n * .thru(function(value) {\n * return [value];\n * })\n * .value();\n * // => ['abc']\n */\n function thru(value, interceptor) {\n return interceptor(value);\n }\n\n /**\n * This method is the wrapper version of `_.at`.\n *\n * @name at\n * @memberOf _\n * @since 1.0.0\n * @category Seq\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _(object).at(['a[0].b.c', 'a[1]']).value();\n * // => [3, 4]\n */\n var wrapperAt = flatRest(function(paths) {\n var length = paths.length,\n start = length ? paths[0] : 0,\n value = this.__wrapped__,\n interceptor = function(object) { return baseAt(object, paths); };\n\n if (length > 1 || this.__actions__.length ||\n !(value instanceof LazyWrapper) || !isIndex(start)) {\n return this.thru(interceptor);\n }\n value = value.slice(start, +start + (length ? 1 : 0));\n value.__actions__.push({\n 'func': thru,\n 'args': [interceptor],\n 'thisArg': undefined\n });\n return new LodashWrapper(value, this.__chain__).thru(function(array) {\n if (length && !array.length) {\n array.push(undefined);\n }\n return array;\n });\n });\n\n /**\n * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.\n *\n * @name chain\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 }\n * ];\n *\n * // A sequence without explicit chaining.\n * _(users).head();\n * // => { 'user': 'barney', 'age': 36 }\n *\n * // A sequence with explicit chaining.\n * _(users)\n * .chain()\n * .head()\n * .pick('user')\n * .value();\n * // => { 'user': 'barney' }\n */\n function wrapperChain() {\n return chain(this);\n }\n\n /**\n * Executes the chain sequence and returns the wrapped result.\n *\n * @name commit\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2];\n * var wrapped = _(array).push(3);\n *\n * console.log(array);\n * // => [1, 2]\n *\n * wrapped = wrapped.commit();\n * console.log(array);\n * // => [1, 2, 3]\n *\n * wrapped.last();\n * // => 3\n *\n * console.log(array);\n * // => [1, 2, 3]\n */\n function wrapperCommit() {\n return new LodashWrapper(this.value(), this.__chain__);\n }\n\n /**\n * Gets the next value on a wrapped object following the\n * [iterator protocol](https://mdn.io/iteration_protocols#iterator).\n *\n * @name next\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the next iterator value.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 1 }\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 2 }\n *\n * wrapped.next();\n * // => { 'done': true, 'value': undefined }\n */\n function wrapperNext() {\n if (this.__values__ === undefined) {\n this.__values__ = toArray(this.value());\n }\n var done = this.__index__ >= this.__values__.length,\n value = done ? undefined : this.__values__[this.__index__++];\n\n return { 'done': done, 'value': value };\n }\n\n /**\n * Enables the wrapper to be iterable.\n *\n * @name Symbol.iterator\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the wrapper object.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped[Symbol.iterator]() === wrapped;\n * // => true\n *\n * Array.from(wrapped);\n * // => [1, 2]\n */\n function wrapperToIterator() {\n return this;\n }\n\n /**\n * Creates a clone of the chain sequence planting `value` as the wrapped value.\n *\n * @name plant\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @param {*} value The value to plant.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2]).map(square);\n * var other = wrapped.plant([3, 4]);\n *\n * other.value();\n * // => [9, 16]\n *\n * wrapped.value();\n * // => [1, 4]\n */\n function wrapperPlant(value) {\n var result,\n parent = this;\n\n while (parent instanceof baseLodash) {\n var clone = wrapperClone(parent);\n clone.__index__ = 0;\n clone.__values__ = undefined;\n if (result) {\n previous.__wrapped__ = clone;\n } else {\n result = clone;\n }\n var previous = clone;\n parent = parent.__wrapped__;\n }\n previous.__wrapped__ = value;\n return result;\n }\n\n /**\n * This method is the wrapper version of `_.reverse`.\n *\n * **Note:** This method mutates the wrapped array.\n *\n * @name reverse\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _(array).reverse().value()\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function wrapperReverse() {\n var value = this.__wrapped__;\n if (value instanceof LazyWrapper) {\n var wrapped = value;\n if (this.__actions__.length) {\n wrapped = new LazyWrapper(this);\n }\n wrapped = wrapped.reverse();\n wrapped.__actions__.push({\n 'func': thru,\n 'args': [reverse],\n 'thisArg': undefined\n });\n return new LodashWrapper(wrapped, this.__chain__);\n }\n return this.thru(reverse);\n }\n\n /**\n * Executes the chain sequence to resolve the unwrapped value.\n *\n * @name value\n * @memberOf _\n * @since 0.1.0\n * @alias toJSON, valueOf\n * @category Seq\n * @returns {*} Returns the resolved unwrapped value.\n * @example\n *\n * _([1, 2, 3]).value();\n * // => [1, 2, 3]\n */\n function wrapperValue() {\n return baseWrapperValue(this.__wrapped__, this.__actions__);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the number of times the key was returned by `iteratee`. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.countBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': 1, '6': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.countBy(['one', 'two', 'three'], 'length');\n * // => { '3': 2, '5': 1 }\n */\n var countBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n ++result[key];\n } else {\n baseAssignValue(result, key, 1);\n }\n });\n\n /**\n * Checks if `predicate` returns truthy for **all** elements of `collection`.\n * Iteration is stopped once `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * **Note:** This method returns `true` for\n * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because\n * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of\n * elements of empty collections.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n * @example\n *\n * _.every([true, 1, null, 'yes'], Boolean);\n * // => false\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.every(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.every(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.every(users, 'active');\n * // => false\n */\n function every(collection, predicate, guard) {\n var func = isArray(collection) ? arrayEvery : baseEvery;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n *\n * // Combining several predicates using `_.overEvery` or `_.overSome`.\n * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));\n * // => objects for ['fred', 'barney']\n */\n function filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\n var find = createFind(findIndex);\n\n /**\n * This method is like `_.find` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=collection.length-1] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * _.findLast([1, 2, 3, 4], function(n) {\n * return n % 2 == 1;\n * });\n * // => 3\n */\n var findLast = createFind(findLastIndex);\n\n /**\n * Creates a flattened array of values by running each element in `collection`\n * thru `iteratee` and flattening the mapped results. The iteratee is invoked\n * with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [n, n];\n * }\n *\n * _.flatMap([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMap(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), 1);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDeep([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMapDeep(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), INFINITY);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDepth([1, 2], duplicate, 2);\n * // => [[1, 1], [2, 2]]\n */\n function flatMapDepth(collection, iteratee, depth) {\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(map(collection, iteratee), depth);\n }\n\n /**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forEach(collection, iteratee) {\n var func = isArray(collection) ? arrayEach : baseEach;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forEach` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @alias eachRight\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEach\n * @example\n *\n * _.forEachRight([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `2` then `1`.\n */\n function forEachRight(collection, iteratee) {\n var func = isArray(collection) ? arrayEachRight : baseEachRight;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\n var groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n });\n\n /**\n * Checks if `value` is in `collection`. If `collection` is a string, it's\n * checked for a substring of `value`, otherwise\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * is used for equality comparisons. If `fromIndex` is negative, it's used as\n * the offset from the end of `collection`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {boolean} Returns `true` if `value` is found, else `false`.\n * @example\n *\n * _.includes([1, 2, 3], 1);\n * // => true\n *\n * _.includes([1, 2, 3], 1, 2);\n * // => false\n *\n * _.includes({ 'a': 1, 'b': 2 }, 1);\n * // => true\n *\n * _.includes('abcd', 'bc');\n * // => true\n */\n function includes(collection, value, fromIndex, guard) {\n collection = isArrayLike(collection) ? collection : values(collection);\n fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;\n\n var length = collection.length;\n if (fromIndex < 0) {\n fromIndex = nativeMax(length + fromIndex, 0);\n }\n return isString(collection)\n ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)\n : (!!length && baseIndexOf(collection, value, fromIndex) > -1);\n }\n\n /**\n * Invokes the method at `path` of each element in `collection`, returning\n * an array of the results of each invoked method. Any additional arguments\n * are provided to each invoked method. If `path` is a function, it's invoked\n * for, and `this` bound to, each element in `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array|Function|string} path The path of the method to invoke or\n * the function invoked per iteration.\n * @param {...*} [args] The arguments to invoke each method with.\n * @returns {Array} Returns the array of results.\n * @example\n *\n * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');\n * // => [[1, 5, 7], [1, 2, 3]]\n *\n * _.invokeMap([123, 456], String.prototype.split, '');\n * // => [['1', '2', '3'], ['4', '5', '6']]\n */\n var invokeMap = baseRest(function(collection, path, args) {\n var index = -1,\n isFunc = typeof path == 'function',\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value) {\n result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);\n });\n return result;\n });\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the last element responsible for generating the key. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * var array = [\n * { 'dir': 'left', 'code': 97 },\n * { 'dir': 'right', 'code': 100 }\n * ];\n *\n * _.keyBy(array, function(o) {\n * return String.fromCharCode(o.code);\n * });\n * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }\n *\n * _.keyBy(array, 'dir');\n * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }\n */\n var keyBy = createAggregator(function(result, value, key) {\n baseAssignValue(result, key, value);\n });\n\n /**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\n function map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.sortBy` except that it allows specifying the sort\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\n * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n * descending or \"asc\" for ascending sort order of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @param {string[]} [orders] The sort orders of `iteratees`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 34 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 36 }\n * ];\n *\n * // Sort by `user` in ascending order and by `age` in descending order.\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\n function orderBy(collection, iteratees, orders, guard) {\n if (collection == null) {\n return [];\n }\n if (!isArray(iteratees)) {\n iteratees = iteratees == null ? [] : [iteratees];\n }\n orders = guard ? undefined : orders;\n if (!isArray(orders)) {\n orders = orders == null ? [] : [orders];\n }\n return baseOrderBy(collection, iteratees, orders);\n }\n\n /**\n * Creates an array of elements split into two groups, the first of which\n * contains elements `predicate` returns truthy for, the second of which\n * contains elements `predicate` returns falsey for. The predicate is\n * invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the array of grouped elements.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true },\n * { 'user': 'pebbles', 'age': 1, 'active': false }\n * ];\n *\n * _.partition(users, function(o) { return o.active; });\n * // => objects for [['fred'], ['barney', 'pebbles']]\n *\n * // The `_.matches` iteratee shorthand.\n * _.partition(users, { 'age': 1, 'active': false });\n * // => objects for [['pebbles'], ['barney', 'fred']]\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.partition(users, ['active', false]);\n * // => objects for [['barney', 'pebbles'], ['fred']]\n *\n * // The `_.property` iteratee shorthand.\n * _.partition(users, 'active');\n * // => objects for [['fred'], ['barney', 'pebbles']]\n */\n var partition = createAggregator(function(result, value, key) {\n result[key ? 0 : 1].push(value);\n }, function() { return [[], []]; });\n\n /**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\n function reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n }\n\n /**\n * This method is like `_.reduce` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduce\n * @example\n *\n * var array = [[0, 1], [2, 3], [4, 5]];\n *\n * _.reduceRight(array, function(flattened, other) {\n * return flattened.concat(other);\n * }, []);\n * // => [4, 5, 2, 3, 0, 1]\n */\n function reduceRight(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduceRight : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);\n }\n\n /**\n * The opposite of `_.filter`; this method returns the elements of `collection`\n * that `predicate` does **not** return truthy for.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.filter\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true }\n * ];\n *\n * _.reject(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.reject(users, { 'age': 40, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.reject(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.reject(users, 'active');\n * // => objects for ['barney']\n */\n function reject(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, negate(getIteratee(predicate, 3)));\n }\n\n /**\n * Gets a random element from `collection`.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n * @example\n *\n * _.sample([1, 2, 3, 4]);\n * // => 2\n */\n function sample(collection) {\n var func = isArray(collection) ? arraySample : baseSample;\n return func(collection);\n }\n\n /**\n * Gets `n` random elements at unique keys from `collection` up to the\n * size of `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @param {number} [n=1] The number of elements to sample.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the random elements.\n * @example\n *\n * _.sampleSize([1, 2, 3], 2);\n * // => [3, 1]\n *\n * _.sampleSize([1, 2, 3], 4);\n * // => [2, 3, 1]\n */\n function sampleSize(collection, n, guard) {\n if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n var func = isArray(collection) ? arraySampleSize : baseSampleSize;\n return func(collection, n);\n }\n\n /**\n * Creates an array of shuffled values, using a version of the\n * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n * @example\n *\n * _.shuffle([1, 2, 3, 4]);\n * // => [4, 1, 3, 2]\n */\n function shuffle(collection) {\n var func = isArray(collection) ? arrayShuffle : baseShuffle;\n return func(collection);\n }\n\n /**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\n function size(collection) {\n if (collection == null) {\n return 0;\n }\n if (isArrayLike(collection)) {\n return isString(collection) ? stringSize(collection) : collection.length;\n }\n var tag = getTag(collection);\n if (tag == mapTag || tag == setTag) {\n return collection.size;\n }\n return baseKeys(collection).length;\n }\n\n /**\n * Checks if `predicate` returns truthy for **any** element of `collection`.\n * Iteration is stopped once `predicate` returns truthy. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n * @example\n *\n * _.some([null, 0, 'yes', false], Boolean);\n * // => true\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.some(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.some(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.some(users, 'active');\n * // => true\n */\n function some(collection, predicate, guard) {\n var func = isArray(collection) ? arraySome : baseSome;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 30 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]\n */\n var sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\n var now = ctxNow || function() {\n return root.Date.now();\n };\n\n /*------------------------------------------------------------------------*/\n\n /**\n * The opposite of `_.before`; this method creates a function that invokes\n * `func` once it's called `n` or more times.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {number} n The number of calls before `func` is invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var saves = ['profile', 'settings'];\n *\n * var done = _.after(saves.length, function() {\n * console.log('done saving!');\n * });\n *\n * _.forEach(saves, function(type) {\n * asyncSave({ 'type': type, 'complete': done });\n * });\n * // => Logs 'done saving!' after the two async saves have completed.\n */\n function after(n, func) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n < 1) {\n return func.apply(this, arguments);\n }\n };\n }\n\n /**\n * Creates a function that invokes `func`, with up to `n` arguments,\n * ignoring any additional arguments.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @param {number} [n=func.length] The arity cap.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.ary(parseInt, 1));\n * // => [6, 8, 10]\n */\n function ary(func, n, guard) {\n n = guard ? undefined : n;\n n = (func && n == null) ? func.length : n;\n return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);\n }\n\n /**\n * Creates a function that invokes `func`, with the `this` binding and arguments\n * of the created function, while it's called less than `n` times. Subsequent\n * calls to the created function return the result of the last `func` invocation.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {number} n The number of calls at which `func` is no longer invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * jQuery(element).on('click', _.before(5, addContactToList));\n * // => Allows adding up to 4 contacts to the list.\n */\n function before(n, func) {\n var result;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n > 0) {\n result = func.apply(this, arguments);\n }\n if (n <= 1) {\n func = undefined;\n }\n return result;\n };\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of `thisArg`\n * and `partials` prepended to the arguments it receives.\n *\n * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for partially applied arguments.\n *\n * **Note:** Unlike native `Function#bind`, this method doesn't set the \"length\"\n * property of bound functions.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to bind.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * function greet(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n *\n * var object = { 'user': 'fred' };\n *\n * var bound = _.bind(greet, object, 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bind(greet, object, _, '!');\n * bound('hi');\n * // => 'hi fred!'\n */\n var bind = baseRest(function(func, thisArg, partials) {\n var bitmask = WRAP_BIND_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bind));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(func, bitmask, thisArg, partials, holders);\n });\n\n /**\n * Creates a function that invokes the method at `object[key]` with `partials`\n * prepended to the arguments it receives.\n *\n * This method differs from `_.bind` by allowing bound functions to reference\n * methods that may be redefined or don't yet exist. See\n * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)\n * for more details.\n *\n * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Function\n * @param {Object} object The object to invoke the method on.\n * @param {string} key The key of the method.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * var object = {\n * 'user': 'fred',\n * 'greet': function(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n * };\n *\n * var bound = _.bindKey(object, 'greet', 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * object.greet = function(greeting, punctuation) {\n * return greeting + 'ya ' + this.user + punctuation;\n * };\n *\n * bound('!');\n * // => 'hiya fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bindKey(object, 'greet', _, '!');\n * bound('hi');\n * // => 'hiya fred!'\n */\n var bindKey = baseRest(function(object, key, partials) {\n var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bindKey));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(key, bitmask, object, partials, holders);\n });\n\n /**\n * Creates a function that accepts arguments of `func` and either invokes\n * `func` returning its result, if at least `arity` number of arguments have\n * been provided, or returns a function that accepts the remaining `func`\n * arguments, and so on. The arity of `func` may be specified if `func.length`\n * is not sufficient.\n *\n * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curry(abc);\n *\n * curried(1)(2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(1)(_, 3)(2);\n * // => [1, 2, 3]\n */\n function curry(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curry.placeholder;\n return result;\n }\n\n /**\n * This method is like `_.curry` except that arguments are applied to `func`\n * in the manner of `_.partialRight` instead of `_.partial`.\n *\n * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curryRight(abc);\n *\n * curried(3)(2)(1);\n * // => [1, 2, 3]\n *\n * curried(2, 3)(1);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(3)(1, _)(2);\n * // => [1, 2, 3]\n */\n function curryRight(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curryRight.placeholder;\n return result;\n }\n\n /**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\n function debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n }\n\n /**\n * Defers invoking the `func` until the current call stack has cleared. Any\n * additional arguments are provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to defer.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.defer(function(text) {\n * console.log(text);\n * }, 'deferred');\n * // => Logs 'deferred' after one millisecond.\n */\n var defer = baseRest(function(func, args) {\n return baseDelay(func, 1, args);\n });\n\n /**\n * Invokes `func` after `wait` milliseconds. Any additional arguments are\n * provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.delay(function(text) {\n * console.log(text);\n * }, 1000, 'later');\n * // => Logs 'later' after one second.\n */\n var delay = baseRest(function(func, wait, args) {\n return baseDelay(func, toNumber(wait) || 0, args);\n });\n\n /**\n * Creates a function that invokes `func` with arguments reversed.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to flip arguments for.\n * @returns {Function} Returns the new flipped function.\n * @example\n *\n * var flipped = _.flip(function() {\n * return _.toArray(arguments);\n * });\n *\n * flipped('a', 'b', 'c', 'd');\n * // => ['d', 'c', 'b', 'a']\n */\n function flip(func) {\n return createWrap(func, WRAP_FLIP_FLAG);\n }\n\n /**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\n function memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n }\n\n // Expose `MapCache`.\n memoize.Cache = MapCache;\n\n /**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\n function negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var args = arguments;\n switch (args.length) {\n case 0: return !predicate.call(this);\n case 1: return !predicate.call(this, args[0]);\n case 2: return !predicate.call(this, args[0], args[1]);\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\n }\n return !predicate.apply(this, args);\n };\n }\n\n /**\n * Creates a function that is restricted to invoking `func` once. Repeat calls\n * to the function return the value of the first invocation. The `func` is\n * invoked with the `this` binding and arguments of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var initialize = _.once(createApplication);\n * initialize();\n * initialize();\n * // => `createApplication` is invoked once\n */\n function once(func) {\n return before(2, func);\n }\n\n /**\n * Creates a function that invokes `func` with its arguments transformed.\n *\n * @static\n * @since 4.0.0\n * @memberOf _\n * @category Function\n * @param {Function} func The function to wrap.\n * @param {...(Function|Function[])} [transforms=[_.identity]]\n * The argument transforms.\n * @returns {Function} Returns the new function.\n * @example\n *\n * function doubled(n) {\n * return n * 2;\n * }\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var func = _.overArgs(function(x, y) {\n * return [x, y];\n * }, [square, doubled]);\n *\n * func(9, 3);\n * // => [81, 6]\n *\n * func(10, 5);\n * // => [100, 10]\n */\n var overArgs = castRest(function(func, transforms) {\n transforms = (transforms.length == 1 && isArray(transforms[0]))\n ? arrayMap(transforms[0], baseUnary(getIteratee()))\n : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));\n\n var funcsLength = transforms.length;\n return baseRest(function(args) {\n var index = -1,\n length = nativeMin(args.length, funcsLength);\n\n while (++index < length) {\n args[index] = transforms[index].call(this, args[index]);\n }\n return apply(func, this, args);\n });\n });\n\n /**\n * Creates a function that invokes `func` with `partials` prepended to the\n * arguments it receives. This method is like `_.bind` except it does **not**\n * alter the `this` binding.\n *\n * The `_.partial.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 0.2.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var sayHelloTo = _.partial(greet, 'hello');\n * sayHelloTo('fred');\n * // => 'hello fred'\n *\n * // Partially applied with placeholders.\n * var greetFred = _.partial(greet, _, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n */\n var partial = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partial));\n return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);\n });\n\n /**\n * This method is like `_.partial` except that partially applied arguments\n * are appended to the arguments it receives.\n *\n * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var greetFred = _.partialRight(greet, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n *\n * // Partially applied with placeholders.\n * var sayHelloTo = _.partialRight(greet, 'hello', _);\n * sayHelloTo('fred');\n * // => 'hello fred'\n */\n var partialRight = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partialRight));\n return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);\n });\n\n /**\n * Creates a function that invokes `func` with arguments arranged according\n * to the specified `indexes` where the argument value at the first index is\n * provided as the first argument, the argument value at the second index is\n * provided as the second argument, and so on.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to rearrange arguments for.\n * @param {...(number|number[])} indexes The arranged argument indexes.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var rearged = _.rearg(function(a, b, c) {\n * return [a, b, c];\n * }, [2, 0, 1]);\n *\n * rearged('b', 'c', 'a')\n * // => ['a', 'b', 'c']\n */\n var rearg = flatRest(function(func, indexes) {\n return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);\n });\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * created function and arguments from `start` and beyond provided as\n * an array.\n *\n * **Note:** This method is based on the\n * [rest parameter](https://mdn.io/rest_parameters).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.rest(function(what, names) {\n * return what + ' ' + _.initial(names).join(', ') +\n * (_.size(names) > 1 ? ', & ' : '') + _.last(names);\n * });\n *\n * say('hello', 'fred', 'barney', 'pebbles');\n * // => 'hello fred, barney, & pebbles'\n */\n function rest(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start === undefined ? start : toInteger(start);\n return baseRest(func, start);\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * create function and an array of arguments much like\n * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).\n *\n * **Note:** This method is based on the\n * [spread operator](https://mdn.io/spread_operator).\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Function\n * @param {Function} func The function to spread arguments over.\n * @param {number} [start=0] The start position of the spread.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.spread(function(who, what) {\n * return who + ' says ' + what;\n * });\n *\n * say(['fred', 'hello']);\n * // => 'fred says hello'\n *\n * var numbers = Promise.all([\n * Promise.resolve(40),\n * Promise.resolve(36)\n * ]);\n *\n * numbers.then(_.spread(function(x, y) {\n * return x + y;\n * }));\n * // => a Promise of 76\n */\n function spread(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start == null ? 0 : nativeMax(toInteger(start), 0);\n return baseRest(function(args) {\n var array = args[start],\n otherArgs = castSlice(args, 0, start);\n\n if (array) {\n arrayPush(otherArgs, array);\n }\n return apply(func, this, otherArgs);\n });\n }\n\n /**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\n function throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n }\n\n /**\n * Creates a function that accepts up to one argument, ignoring any\n * additional arguments.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.unary(parseInt));\n * // => [6, 8, 10]\n */\n function unary(func) {\n return ary(func, 1);\n }\n\n /**\n * Creates a function that provides `value` to `wrapper` as its first\n * argument. Any additional arguments provided to the function are appended\n * to those provided to the `wrapper`. The wrapper is invoked with the `this`\n * binding of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {*} value The value to wrap.\n * @param {Function} [wrapper=identity] The wrapper function.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var p = _.wrap(_.escape, function(func, text) {\n * return '

' + func(text) + '

';\n * });\n *\n * p('fred, barney, & pebbles');\n * // => '

fred, barney, & pebbles

'\n */\n function wrap(value, wrapper) {\n return partial(castFunction(wrapper), value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Casts `value` as an array if it's not one.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Lang\n * @param {*} value The value to inspect.\n * @returns {Array} Returns the cast array.\n * @example\n *\n * _.castArray(1);\n * // => [1]\n *\n * _.castArray({ 'a': 1 });\n * // => [{ 'a': 1 }]\n *\n * _.castArray('abc');\n * // => ['abc']\n *\n * _.castArray(null);\n * // => [null]\n *\n * _.castArray(undefined);\n * // => [undefined]\n *\n * _.castArray();\n * // => []\n *\n * var array = [1, 2, 3];\n * console.log(_.castArray(array) === array);\n * // => true\n */\n function castArray() {\n if (!arguments.length) {\n return [];\n }\n var value = arguments[0];\n return isArray(value) ? value : [value];\n }\n\n /**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\n function clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.clone` except that it accepts `customizer` which\n * is invoked to produce the cloned value. If `customizer` returns `undefined`,\n * cloning is handled by the method instead. The `customizer` is invoked with\n * up to four arguments; (value [, index|key, object, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeepWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(false);\n * }\n * }\n *\n * var el = _.cloneWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 0\n */\n function cloneWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\n function cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.cloneWith` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the deep cloned value.\n * @see _.cloneWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(true);\n * }\n * }\n *\n * var el = _.cloneDeepWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 20\n */\n function cloneDeepWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * Checks if `object` conforms to `source` by invoking the predicate\n * properties of `source` with the corresponding property values of `object`.\n *\n * **Note:** This method is equivalent to `_.conforms` when `source` is\n * partially applied.\n *\n * @static\n * @memberOf _\n * @since 4.14.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 1; } });\n * // => true\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 2; } });\n * // => false\n */\n function conformsTo(object, source) {\n return source == null || baseConformsTo(object, source, keys(source));\n }\n\n /**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\n function eq(value, other) {\n return value === other || (value !== value && other !== other);\n }\n\n /**\n * Checks if `value` is greater than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n * @see _.lt\n * @example\n *\n * _.gt(3, 1);\n * // => true\n *\n * _.gt(3, 3);\n * // => false\n *\n * _.gt(1, 3);\n * // => false\n */\n var gt = createRelationalOperation(baseGt);\n\n /**\n * Checks if `value` is greater than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than or equal to\n * `other`, else `false`.\n * @see _.lte\n * @example\n *\n * _.gte(3, 1);\n * // => true\n *\n * _.gte(3, 3);\n * // => true\n *\n * _.gte(1, 3);\n * // => false\n */\n var gte = createRelationalOperation(function(value, other) {\n return value >= other;\n });\n\n /**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n };\n\n /**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\n var isArray = Array.isArray;\n\n /**\n * Checks if `value` is classified as an `ArrayBuffer` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n * @example\n *\n * _.isArrayBuffer(new ArrayBuffer(2));\n * // => true\n *\n * _.isArrayBuffer(new Array(2));\n * // => false\n */\n var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;\n\n /**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n function isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n }\n\n /**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\n function isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n }\n\n /**\n * Checks if `value` is classified as a boolean primitive or object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.\n * @example\n *\n * _.isBoolean(false);\n * // => true\n *\n * _.isBoolean(null);\n * // => false\n */\n function isBoolean(value) {\n return value === true || value === false ||\n (isObjectLike(value) && baseGetTag(value) == boolTag);\n }\n\n /**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\n var isBuffer = nativeIsBuffer || stubFalse;\n\n /**\n * Checks if `value` is classified as a `Date` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n * @example\n *\n * _.isDate(new Date);\n * // => true\n *\n * _.isDate('Mon April 23 2012');\n * // => false\n */\n var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;\n\n /**\n * Checks if `value` is likely a DOM element.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.\n * @example\n *\n * _.isElement(document.body);\n * // => true\n *\n * _.isElement('');\n * // => false\n */\n function isElement(value) {\n return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);\n }\n\n /**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\n function isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\n function isEqual(value, other) {\n return baseIsEqual(value, other);\n }\n\n /**\n * This method is like `_.isEqual` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with up to\n * six arguments: (objValue, othValue [, index|key, object, other, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, othValue) {\n * if (isGreeting(objValue) && isGreeting(othValue)) {\n * return true;\n * }\n * }\n *\n * var array = ['hello', 'goodbye'];\n * var other = ['hi', 'goodbye'];\n *\n * _.isEqualWith(array, other, customizer);\n * // => true\n */\n function isEqualWith(value, other, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n var result = customizer ? customizer(value, other) : undefined;\n return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;\n }\n\n /**\n * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\n * `SyntaxError`, `TypeError`, or `URIError` object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an error object, else `false`.\n * @example\n *\n * _.isError(new Error);\n * // => true\n *\n * _.isError(Error);\n * // => false\n */\n function isError(value) {\n if (!isObjectLike(value)) {\n return false;\n }\n var tag = baseGetTag(value);\n return tag == errorTag || tag == domExcTag ||\n (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));\n }\n\n /**\n * Checks if `value` is a finite primitive number.\n *\n * **Note:** This method is based on\n * [`Number.isFinite`](https://mdn.io/Number/isFinite).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.\n * @example\n *\n * _.isFinite(3);\n * // => true\n *\n * _.isFinite(Number.MIN_VALUE);\n * // => true\n *\n * _.isFinite(Infinity);\n * // => false\n *\n * _.isFinite('3');\n * // => false\n */\n function isFinite(value) {\n return typeof value == 'number' && nativeIsFinite(value);\n }\n\n /**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n function isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n }\n\n /**\n * Checks if `value` is an integer.\n *\n * **Note:** This method is based on\n * [`Number.isInteger`](https://mdn.io/Number/isInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an integer, else `false`.\n * @example\n *\n * _.isInteger(3);\n * // => true\n *\n * _.isInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isInteger(Infinity);\n * // => false\n *\n * _.isInteger('3');\n * // => false\n */\n function isInteger(value) {\n return typeof value == 'number' && value == toInteger(value);\n }\n\n /**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n function isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n function isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n }\n\n /**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n function isObjectLike(value) {\n return value != null && typeof value == 'object';\n }\n\n /**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\n var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\n /**\n * Performs a partial deep comparison between `object` and `source` to\n * determine if `object` contains equivalent property values.\n *\n * **Note:** This method is equivalent to `_.matches` when `source` is\n * partially applied.\n *\n * Partial comparisons will match empty array and empty object `source`\n * values against any array or object value, respectively. See `_.isEqual`\n * for a list of supported value comparisons.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.isMatch(object, { 'b': 2 });\n * // => true\n *\n * _.isMatch(object, { 'b': 1 });\n * // => false\n */\n function isMatch(object, source) {\n return object === source || baseIsMatch(object, source, getMatchData(source));\n }\n\n /**\n * This method is like `_.isMatch` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with five\n * arguments: (objValue, srcValue, index|key, object, source).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, srcValue) {\n * if (isGreeting(objValue) && isGreeting(srcValue)) {\n * return true;\n * }\n * }\n *\n * var object = { 'greeting': 'hello' };\n * var source = { 'greeting': 'hi' };\n *\n * _.isMatchWith(object, source, customizer);\n * // => true\n */\n function isMatchWith(object, source, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseIsMatch(object, source, getMatchData(source), customizer);\n }\n\n /**\n * Checks if `value` is `NaN`.\n *\n * **Note:** This method is based on\n * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as\n * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for\n * `undefined` and other non-number values.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n * @example\n *\n * _.isNaN(NaN);\n * // => true\n *\n * _.isNaN(new Number(NaN));\n * // => true\n *\n * isNaN(undefined);\n * // => true\n *\n * _.isNaN(undefined);\n * // => false\n */\n function isNaN(value) {\n // An `NaN` primitive is the only value that is not equal to itself.\n // Perform the `toStringTag` check first to avoid errors with some\n // ActiveX objects in IE.\n return isNumber(value) && value != +value;\n }\n\n /**\n * Checks if `value` is a pristine native function.\n *\n * **Note:** This method can't reliably detect native functions in the presence\n * of the core-js package because core-js circumvents this kind of detection.\n * Despite multiple requests, the core-js maintainer has made it clear: any\n * attempt to fix the detection will be obstructed. As a result, we're left\n * with little choice but to throw an error. Unfortunately, this also affects\n * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),\n * which rely on core-js.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n function isNative(value) {\n if (isMaskable(value)) {\n throw new Error(CORE_ERROR_TEXT);\n }\n return baseIsNative(value);\n }\n\n /**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\n function isNull(value) {\n return value === null;\n }\n\n /**\n * Checks if `value` is `null` or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is nullish, else `false`.\n * @example\n *\n * _.isNil(null);\n * // => true\n *\n * _.isNil(void 0);\n * // => true\n *\n * _.isNil(NaN);\n * // => false\n */\n function isNil(value) {\n return value == null;\n }\n\n /**\n * Checks if `value` is classified as a `Number` primitive or object.\n *\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\n * classified as numbers, use the `_.isFinite` method.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\n * @example\n *\n * _.isNumber(3);\n * // => true\n *\n * _.isNumber(Number.MIN_VALUE);\n * // => true\n *\n * _.isNumber(Infinity);\n * // => true\n *\n * _.isNumber('3');\n * // => false\n */\n function isNumber(value) {\n return typeof value == 'number' ||\n (isObjectLike(value) && baseGetTag(value) == numberTag);\n }\n\n /**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\n function isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n }\n\n /**\n * Checks if `value` is classified as a `RegExp` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n * @example\n *\n * _.isRegExp(/abc/);\n * // => true\n *\n * _.isRegExp('/abc/');\n * // => false\n */\n var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;\n\n /**\n * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754\n * double precision number which isn't the result of a rounded unsafe integer.\n *\n * **Note:** This method is based on\n * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.\n * @example\n *\n * _.isSafeInteger(3);\n * // => true\n *\n * _.isSafeInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isSafeInteger(Infinity);\n * // => false\n *\n * _.isSafeInteger('3');\n * // => false\n */\n function isSafeInteger(value) {\n return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\n var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\n /**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\n function isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n }\n\n /**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\n function isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n }\n\n /**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\n var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n /**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\n function isUndefined(value) {\n return value === undefined;\n }\n\n /**\n * Checks if `value` is classified as a `WeakMap` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.\n * @example\n *\n * _.isWeakMap(new WeakMap);\n * // => true\n *\n * _.isWeakMap(new Map);\n * // => false\n */\n function isWeakMap(value) {\n return isObjectLike(value) && getTag(value) == weakMapTag;\n }\n\n /**\n * Checks if `value` is classified as a `WeakSet` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.\n * @example\n *\n * _.isWeakSet(new WeakSet);\n * // => true\n *\n * _.isWeakSet(new Set);\n * // => false\n */\n function isWeakSet(value) {\n return isObjectLike(value) && baseGetTag(value) == weakSetTag;\n }\n\n /**\n * Checks if `value` is less than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n * @see _.gt\n * @example\n *\n * _.lt(1, 3);\n * // => true\n *\n * _.lt(3, 3);\n * // => false\n *\n * _.lt(3, 1);\n * // => false\n */\n var lt = createRelationalOperation(baseLt);\n\n /**\n * Checks if `value` is less than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than or equal to\n * `other`, else `false`.\n * @see _.gte\n * @example\n *\n * _.lte(1, 3);\n * // => true\n *\n * _.lte(3, 3);\n * // => true\n *\n * _.lte(3, 1);\n * // => false\n */\n var lte = createRelationalOperation(function(value, other) {\n return value <= other;\n });\n\n /**\n * Converts `value` to an array.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Array} Returns the converted array.\n * @example\n *\n * _.toArray({ 'a': 1, 'b': 2 });\n * // => [1, 2]\n *\n * _.toArray('abc');\n * // => ['a', 'b', 'c']\n *\n * _.toArray(1);\n * // => []\n *\n * _.toArray(null);\n * // => []\n */\n function toArray(value) {\n if (!value) {\n return [];\n }\n if (isArrayLike(value)) {\n return isString(value) ? stringToArray(value) : copyArray(value);\n }\n if (symIterator && value[symIterator]) {\n return iteratorToArray(value[symIterator]());\n }\n var tag = getTag(value),\n func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);\n\n return func(value);\n }\n\n /**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\n function toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n }\n\n /**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\n function toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n }\n\n /**\n * Converts `value` to an integer suitable for use as the length of an\n * array-like object.\n *\n * **Note:** This method is based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toLength(3.2);\n * // => 3\n *\n * _.toLength(Number.MIN_VALUE);\n * // => 0\n *\n * _.toLength(Infinity);\n * // => 4294967295\n *\n * _.toLength('3.2');\n * // => 3\n */\n function toLength(value) {\n return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;\n }\n\n /**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\n function toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n }\n\n /**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\n function toPlainObject(value) {\n return copyObject(value, keysIn(value));\n }\n\n /**\n * Converts `value` to a safe integer. A safe integer can be compared and\n * represented correctly.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toSafeInteger(3.2);\n * // => 3\n *\n * _.toSafeInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toSafeInteger(Infinity);\n * // => 9007199254740991\n *\n * _.toSafeInteger('3.2');\n * // => 3\n */\n function toSafeInteger(value) {\n return value\n ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)\n : (value === 0 ? value : 0);\n }\n\n /**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\n function toString(value) {\n return value == null ? '' : baseToString(value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Assigns own enumerable string keyed properties of source objects to the\n * destination object. Source objects are applied from left to right.\n * Subsequent sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object` and is loosely based on\n * [`Object.assign`](https://mdn.io/Object/assign).\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assignIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assign({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'c': 3 }\n */\n var assign = createAssigner(function(object, source) {\n if (isPrototype(source) || isArrayLike(source)) {\n copyObject(source, keys(source), object);\n return;\n }\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n assignValue(object, key, source[key]);\n }\n }\n });\n\n /**\n * This method is like `_.assign` except that it iterates over own and\n * inherited source properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extend\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assign\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assignIn({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }\n */\n var assignIn = createAssigner(function(object, source) {\n copyObject(source, keysIn(source), object);\n });\n\n /**\n * This method is like `_.assignIn` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extendWith\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignInWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keysIn(source), object, customizer);\n });\n\n /**\n * This method is like `_.assign` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignInWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keys(source), object, customizer);\n });\n\n /**\n * Creates an array of values corresponding to `paths` of `object`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Array} Returns the picked values.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _.at(object, ['a[0].b.c', 'a[1]']);\n * // => [3, 4]\n */\n var at = flatRest(baseAt);\n\n /**\n * Creates an object that inherits from the `prototype` object. If a\n * `properties` object is given, its own enumerable string keyed properties\n * are assigned to the created object.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Object\n * @param {Object} prototype The object to inherit from.\n * @param {Object} [properties] The properties to assign to the object.\n * @returns {Object} Returns the new object.\n * @example\n *\n * function Shape() {\n * this.x = 0;\n * this.y = 0;\n * }\n *\n * function Circle() {\n * Shape.call(this);\n * }\n *\n * Circle.prototype = _.create(Shape.prototype, {\n * 'constructor': Circle\n * });\n *\n * var circle = new Circle;\n * circle instanceof Circle;\n * // => true\n *\n * circle instanceof Shape;\n * // => true\n */\n function create(prototype, properties) {\n var result = baseCreate(prototype);\n return properties == null ? result : baseAssign(result, properties);\n }\n\n /**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n });\n\n /**\n * This method is like `_.defaults` except that it recursively assigns\n * default properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaults\n * @example\n *\n * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });\n * // => { 'a': { 'b': 2, 'c': 3 } }\n */\n var defaultsDeep = baseRest(function(args) {\n args.push(undefined, customDefaultsMerge);\n return apply(mergeWith, undefined, args);\n });\n\n /**\n * This method is like `_.find` except that it returns the key of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findKey(users, function(o) { return o.age < 40; });\n * // => 'barney' (iteration order is not guaranteed)\n *\n * // The `_.matches` iteratee shorthand.\n * _.findKey(users, { 'age': 1, 'active': true });\n * // => 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findKey(users, 'active');\n * // => 'barney'\n */\n function findKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);\n }\n\n /**\n * This method is like `_.findKey` except that it iterates over elements of\n * a collection in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findLastKey(users, function(o) { return o.age < 40; });\n * // => returns 'pebbles' assuming `_.findKey` returns 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastKey(users, { 'age': 36, 'active': true });\n * // => 'barney'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastKey(users, 'active');\n * // => 'pebbles'\n */\n function findLastKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);\n }\n\n /**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\n function forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * This method is like `_.forIn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forInRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.\n */\n function forInRight(object, iteratee) {\n return object == null\n ? object\n : baseForRight(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * Iterates over own enumerable string keyed properties of an object and\n * invokes `iteratee` for each property. The iteratee is invoked with three\n * arguments: (value, key, object). Iteratee functions may exit iteration\n * early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwnRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forOwn(object, iteratee) {\n return object && baseForOwn(object, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forOwn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwnRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.\n */\n function forOwnRight(object, iteratee) {\n return object && baseForOwnRight(object, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an array of function property names from own enumerable properties\n * of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functionsIn\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functions(new Foo);\n * // => ['a', 'b']\n */\n function functions(object) {\n return object == null ? [] : baseFunctions(object, keys(object));\n }\n\n /**\n * Creates an array of function property names from own and inherited\n * enumerable properties of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functions\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functionsIn(new Foo);\n * // => ['a', 'b', 'c']\n */\n function functionsIn(object) {\n return object == null ? [] : baseFunctions(object, keysIn(object));\n }\n\n /**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\n function get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n }\n\n /**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\n function has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n }\n\n /**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\n function hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n }\n\n /**\n * Creates an object composed of the inverted keys and values of `object`.\n * If `object` contains duplicate values, subsequent values overwrite\n * property assignments of previous values.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Object\n * @param {Object} object The object to invert.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invert(object);\n * // => { '1': 'c', '2': 'b' }\n */\n var invert = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n result[value] = key;\n }, constant(identity));\n\n /**\n * This method is like `_.invert` except that the inverted object is generated\n * from the results of running each element of `object` thru `iteratee`. The\n * corresponding inverted value of each inverted key is an array of keys\n * responsible for generating the inverted value. The iteratee is invoked\n * with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Object\n * @param {Object} object The object to invert.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invertBy(object);\n * // => { '1': ['a', 'c'], '2': ['b'] }\n *\n * _.invertBy(object, function(value) {\n * return 'group' + value;\n * });\n * // => { 'group1': ['a', 'c'], 'group2': ['b'] }\n */\n var invertBy = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n if (hasOwnProperty.call(result, value)) {\n result[value].push(key);\n } else {\n result[value] = [key];\n }\n }, getIteratee);\n\n /**\n * Invokes the method at `path` of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };\n *\n * _.invoke(object, 'a[0].b.c.slice', 1, 3);\n * // => [2, 3]\n */\n var invoke = baseRest(baseInvoke);\n\n /**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n function keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n }\n\n /**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n function keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n }\n\n /**\n * The opposite of `_.mapValues`; this method creates an object with the\n * same values as `object` and keys generated by running each own enumerable\n * string keyed property of `object` thru `iteratee`. The iteratee is invoked\n * with three arguments: (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapValues\n * @example\n *\n * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {\n * return key + value;\n * });\n * // => { 'a1': 1, 'b2': 2 }\n */\n function mapKeys(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, iteratee(value, key, object), value);\n });\n return result;\n }\n\n /**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\n function mapValues(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n }\n\n /**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\n var merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n });\n\n /**\n * This method is like `_.merge` except that it accepts `customizer` which\n * is invoked to produce the merged values of the destination and source\n * properties. If `customizer` returns `undefined`, merging is handled by the\n * method instead. The `customizer` is invoked with six arguments:\n * (objValue, srcValue, key, object, source, stack).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} customizer The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * function customizer(objValue, srcValue) {\n * if (_.isArray(objValue)) {\n * return objValue.concat(srcValue);\n * }\n * }\n *\n * var object = { 'a': [1], 'b': [2] };\n * var other = { 'a': [3], 'b': [4] };\n *\n * _.mergeWith(object, other, customizer);\n * // => { 'a': [1, 3], 'b': [2, 4] }\n */\n var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {\n baseMerge(object, source, srcIndex, customizer);\n });\n\n /**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable property paths of `object` that are not omitted.\n *\n * **Note:** This method is considerably slower than `_.pick`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\n var omit = flatRest(function(object, paths) {\n var result = {};\n if (object == null) {\n return result;\n }\n var isDeep = false;\n paths = arrayMap(paths, function(path) {\n path = castPath(path, object);\n isDeep || (isDeep = path.length > 1);\n return path;\n });\n copyObject(object, getAllKeysIn(object), result);\n if (isDeep) {\n result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n }\n var length = paths.length;\n while (length--) {\n baseUnset(result, paths[length]);\n }\n return result;\n });\n\n /**\n * The opposite of `_.pickBy`; this method creates an object composed of\n * the own and inherited enumerable string keyed properties of `object` that\n * `predicate` doesn't return truthy for. The predicate is invoked with two\n * arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omitBy(object, _.isNumber);\n * // => { 'b': '2' }\n */\n function omitBy(object, predicate) {\n return pickBy(object, negate(getIteratee(predicate)));\n }\n\n /**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\n var pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n });\n\n /**\n * Creates an object composed of the `object` properties `predicate` returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pickBy(object, _.isNumber);\n * // => { 'a': 1, 'c': 3 }\n */\n function pickBy(object, predicate) {\n if (object == null) {\n return {};\n }\n var props = arrayMap(getAllKeysIn(object), function(prop) {\n return [prop];\n });\n predicate = getIteratee(predicate);\n return basePickBy(object, props, function(value, path) {\n return predicate(value, path[0]);\n });\n }\n\n /**\n * This method is like `_.get` except that if the resolved value is a\n * function it's invoked with the `this` binding of its parent object and\n * its result is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to resolve.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };\n *\n * _.result(object, 'a[0].b.c1');\n * // => 3\n *\n * _.result(object, 'a[0].b.c2');\n * // => 4\n *\n * _.result(object, 'a[0].b.c3', 'default');\n * // => 'default'\n *\n * _.result(object, 'a[0].b.c3', _.constant('default'));\n * // => 'default'\n */\n function result(object, path, defaultValue) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length;\n\n // Ensure the loop is entered when path is empty.\n if (!length) {\n length = 1;\n object = undefined;\n }\n while (++index < length) {\n var value = object == null ? undefined : object[toKey(path[index])];\n if (value === undefined) {\n index = length;\n value = defaultValue;\n }\n object = isFunction(value) ? value.call(object) : value;\n }\n return object;\n }\n\n /**\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\n * it's created. Arrays are created for missing index properties while objects\n * are created for all other missing properties. Use `_.setWith` to customize\n * `path` creation.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.set(object, 'a[0].b.c', 4);\n * console.log(object.a[0].b.c);\n * // => 4\n *\n * _.set(object, ['x', '0', 'y', 'z'], 5);\n * console.log(object.x[0].y.z);\n * // => 5\n */\n function set(object, path, value) {\n return object == null ? object : baseSet(object, path, value);\n }\n\n /**\n * This method is like `_.set` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.setWith(object, '[0][1]', 'a', Object);\n * // => { '0': { '1': 'a' } }\n */\n function setWith(object, path, value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseSet(object, path, value, customizer);\n }\n\n /**\n * Creates an array of own enumerable string keyed-value pairs for `object`\n * which can be consumed by `_.fromPairs`. If `object` is a map or set, its\n * entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entries\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairs(new Foo);\n * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)\n */\n var toPairs = createToPairs(keys);\n\n /**\n * Creates an array of own and inherited enumerable string keyed-value pairs\n * for `object` which can be consumed by `_.fromPairs`. If `object` is a map\n * or set, its entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entriesIn\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairsIn(new Foo);\n * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)\n */\n var toPairsIn = createToPairs(keysIn);\n\n /**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own\n * enumerable string keyed properties thru `iteratee`, with each invocation\n * potentially mutating the `accumulator` object. If `accumulator` is not\n * provided, a new object with the same `[[Prototype]]` will be used. The\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * }, []);\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\n function transform(object, iteratee, accumulator) {\n var isArr = isArray(object),\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n iteratee = getIteratee(iteratee, 4);\n if (accumulator == null) {\n var Ctor = object && object.constructor;\n if (isArrLike) {\n accumulator = isArr ? new Ctor : [];\n }\n else if (isObject(object)) {\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n }\n else {\n accumulator = {};\n }\n }\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n }\n\n /**\n * Removes the property at `path` of `object`.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 7 } }] };\n * _.unset(object, 'a[0].b.c');\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n *\n * _.unset(object, ['a', '0', 'b', 'c']);\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n */\n function unset(object, path) {\n return object == null ? true : baseUnset(object, path);\n }\n\n /**\n * This method is like `_.set` except that accepts `updater` to produce the\n * value to set. Use `_.updateWith` to customize `path` creation. The `updater`\n * is invoked with one argument: (value).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.update(object, 'a[0].b.c', function(n) { return n * n; });\n * console.log(object.a[0].b.c);\n * // => 9\n *\n * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });\n * console.log(object.x[0].y.z);\n * // => 0\n */\n function update(object, path, updater) {\n return object == null ? object : baseUpdate(object, path, castFunction(updater));\n }\n\n /**\n * This method is like `_.update` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.updateWith(object, '[0][1]', _.constant('a'), Object);\n * // => { '0': { '1': 'a' } }\n */\n function updateWith(object, path, updater, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);\n }\n\n /**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\n function values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n }\n\n /**\n * Creates an array of the own and inherited enumerable string keyed property\n * values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.valuesIn(new Foo);\n * // => [1, 2, 3] (iteration order is not guaranteed)\n */\n function valuesIn(object) {\n return object == null ? [] : baseValues(object, keysIn(object));\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Clamps `number` within the inclusive `lower` and `upper` bounds.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Number\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n * @example\n *\n * _.clamp(-10, -5, 5);\n * // => -5\n *\n * _.clamp(10, -5, 5);\n * // => 5\n */\n function clamp(number, lower, upper) {\n if (upper === undefined) {\n upper = lower;\n lower = undefined;\n }\n if (upper !== undefined) {\n upper = toNumber(upper);\n upper = upper === upper ? upper : 0;\n }\n if (lower !== undefined) {\n lower = toNumber(lower);\n lower = lower === lower ? lower : 0;\n }\n return baseClamp(toNumber(number), lower, upper);\n }\n\n /**\n * Checks if `n` is between `start` and up to, but not including, `end`. If\n * `end` is not specified, it's set to `start` with `start` then set to `0`.\n * If `start` is greater than `end` the params are swapped to support\n * negative ranges.\n *\n * @static\n * @memberOf _\n * @since 3.3.0\n * @category Number\n * @param {number} number The number to check.\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n * @see _.range, _.rangeRight\n * @example\n *\n * _.inRange(3, 2, 4);\n * // => true\n *\n * _.inRange(4, 8);\n * // => true\n *\n * _.inRange(4, 2);\n * // => false\n *\n * _.inRange(2, 2);\n * // => false\n *\n * _.inRange(1.2, 2);\n * // => true\n *\n * _.inRange(5.2, 4);\n * // => false\n *\n * _.inRange(-3, -2, -6);\n * // => true\n */\n function inRange(number, start, end) {\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n number = toNumber(number);\n return baseInRange(number, start, end);\n }\n\n /**\n * Produces a random number between the inclusive `lower` and `upper` bounds.\n * If only one argument is provided a number between `0` and the given number\n * is returned. If `floating` is `true`, or either `lower` or `upper` are\n * floats, a floating-point number is returned instead of an integer.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Number\n * @param {number} [lower=0] The lower bound.\n * @param {number} [upper=1] The upper bound.\n * @param {boolean} [floating] Specify returning a floating-point number.\n * @returns {number} Returns the random number.\n * @example\n *\n * _.random(0, 5);\n * // => an integer between 0 and 5\n *\n * _.random(5);\n * // => also an integer between 0 and 5\n *\n * _.random(5, true);\n * // => a floating-point number between 0 and 5\n *\n * _.random(1.2, 5.2);\n * // => a floating-point number between 1.2 and 5.2\n */\n function random(lower, upper, floating) {\n if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {\n upper = floating = undefined;\n }\n if (floating === undefined) {\n if (typeof upper == 'boolean') {\n floating = upper;\n upper = undefined;\n }\n else if (typeof lower == 'boolean') {\n floating = lower;\n lower = undefined;\n }\n }\n if (lower === undefined && upper === undefined) {\n lower = 0;\n upper = 1;\n }\n else {\n lower = toFinite(lower);\n if (upper === undefined) {\n upper = lower;\n lower = 0;\n } else {\n upper = toFinite(upper);\n }\n }\n if (lower > upper) {\n var temp = lower;\n lower = upper;\n upper = temp;\n }\n if (floating || lower % 1 || upper % 1) {\n var rand = nativeRandom();\n return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);\n }\n return baseRandom(lower, upper);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the camel cased string.\n * @example\n *\n * _.camelCase('Foo Bar');\n * // => 'fooBar'\n *\n * _.camelCase('--foo-bar--');\n * // => 'fooBar'\n *\n * _.camelCase('__FOO_BAR__');\n * // => 'fooBar'\n */\n var camelCase = createCompounder(function(result, word, index) {\n word = word.toLowerCase();\n return result + (index ? capitalize(word) : word);\n });\n\n /**\n * Converts the first character of `string` to upper case and the remaining\n * to lower case.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to capitalize.\n * @returns {string} Returns the capitalized string.\n * @example\n *\n * _.capitalize('FRED');\n * // => 'Fred'\n */\n function capitalize(string) {\n return upperFirst(toString(string).toLowerCase());\n }\n\n /**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\n function deburr(string) {\n string = toString(string);\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n }\n\n /**\n * Checks if `string` ends with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=string.length] The position to search up to.\n * @returns {boolean} Returns `true` if `string` ends with `target`,\n * else `false`.\n * @example\n *\n * _.endsWith('abc', 'c');\n * // => true\n *\n * _.endsWith('abc', 'b');\n * // => false\n *\n * _.endsWith('abc', 'b', 2);\n * // => true\n */\n function endsWith(string, target, position) {\n string = toString(string);\n target = baseToString(target);\n\n var length = string.length;\n position = position === undefined\n ? length\n : baseClamp(toInteger(position), 0, length);\n\n var end = position;\n position -= target.length;\n return position >= 0 && string.slice(position, end) == target;\n }\n\n /**\n * Converts the characters \"&\", \"<\", \">\", '\"', and \"'\" in `string` to their\n * corresponding HTML entities.\n *\n * **Note:** No other characters are escaped. To escape additional\n * characters use a third-party library like [_he_](https://mths.be/he).\n *\n * Though the \">\" character is escaped for symmetry, characters like\n * \">\" and \"/\" don't need escaping in HTML and have no special meaning\n * unless they're part of a tag or unquoted attribute value. See\n * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)\n * (under \"semi-related fun fact\") for more details.\n *\n * When working with HTML you should always\n * [quote attribute values](http://wonko.com/post/html-escaping) to reduce\n * XSS vectors.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escape('fred, barney, & pebbles');\n * // => 'fred, barney, & pebbles'\n */\n function escape(string) {\n string = toString(string);\n return (string && reHasUnescapedHtml.test(string))\n ? string.replace(reUnescapedHtml, escapeHtmlChar)\n : string;\n }\n\n /**\n * Escapes the `RegExp` special characters \"^\", \"$\", \"\\\", \".\", \"*\", \"+\",\n * \"?\", \"(\", \")\", \"[\", \"]\", \"{\", \"}\", and \"|\" in `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escapeRegExp('[lodash](https://lodash.com/)');\n * // => '\\[lodash\\]\\(https://lodash\\.com/\\)'\n */\n function escapeRegExp(string) {\n string = toString(string);\n return (string && reHasRegExpChar.test(string))\n ? string.replace(reRegExpChar, '\\\\$&')\n : string;\n }\n\n /**\n * Converts `string` to\n * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the kebab cased string.\n * @example\n *\n * _.kebabCase('Foo Bar');\n * // => 'foo-bar'\n *\n * _.kebabCase('fooBar');\n * // => 'foo-bar'\n *\n * _.kebabCase('__FOO_BAR__');\n * // => 'foo-bar'\n */\n var kebabCase = createCompounder(function(result, word, index) {\n return result + (index ? '-' : '') + word.toLowerCase();\n });\n\n /**\n * Converts `string`, as space separated words, to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the lower cased string.\n * @example\n *\n * _.lowerCase('--Foo-Bar--');\n * // => 'foo bar'\n *\n * _.lowerCase('fooBar');\n * // => 'foo bar'\n *\n * _.lowerCase('__FOO_BAR__');\n * // => 'foo bar'\n */\n var lowerCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + word.toLowerCase();\n });\n\n /**\n * Converts the first character of `string` to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.lowerFirst('Fred');\n * // => 'fred'\n *\n * _.lowerFirst('FRED');\n * // => 'fRED'\n */\n var lowerFirst = createCaseFirst('toLowerCase');\n\n /**\n * Pads `string` on the left and right sides if it's shorter than `length`.\n * Padding characters are truncated if they can't be evenly divided by `length`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.pad('abc', 8);\n * // => ' abc '\n *\n * _.pad('abc', 8, '_-');\n * // => '_-abc_-_'\n *\n * _.pad('abc', 3);\n * // => 'abc'\n */\n function pad(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n if (!length || strLength >= length) {\n return string;\n }\n var mid = (length - strLength) / 2;\n return (\n createPadding(nativeFloor(mid), chars) +\n string +\n createPadding(nativeCeil(mid), chars)\n );\n }\n\n /**\n * Pads `string` on the right side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padEnd('abc', 6);\n * // => 'abc '\n *\n * _.padEnd('abc', 6, '_-');\n * // => 'abc_-_'\n *\n * _.padEnd('abc', 3);\n * // => 'abc'\n */\n function padEnd(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (string + createPadding(length - strLength, chars))\n : string;\n }\n\n /**\n * Pads `string` on the left side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padStart('abc', 6);\n * // => ' abc'\n *\n * _.padStart('abc', 6, '_-');\n * // => '_-_abc'\n *\n * _.padStart('abc', 3);\n * // => 'abc'\n */\n function padStart(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (createPadding(length - strLength, chars) + string)\n : string;\n }\n\n /**\n * Converts `string` to an integer of the specified radix. If `radix` is\n * `undefined` or `0`, a `radix` of `10` is used unless `value` is a\n * hexadecimal, in which case a `radix` of `16` is used.\n *\n * **Note:** This method aligns with the\n * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category String\n * @param {string} string The string to convert.\n * @param {number} [radix=10] The radix to interpret `value` by.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.parseInt('08');\n * // => 8\n *\n * _.map(['6', '08', '10'], _.parseInt);\n * // => [6, 8, 10]\n */\n function parseInt(string, radix, guard) {\n if (guard || radix == null) {\n radix = 0;\n } else if (radix) {\n radix = +radix;\n }\n return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);\n }\n\n /**\n * Repeats the given string `n` times.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to repeat.\n * @param {number} [n=1] The number of times to repeat the string.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the repeated string.\n * @example\n *\n * _.repeat('*', 3);\n * // => '***'\n *\n * _.repeat('abc', 2);\n * // => 'abcabc'\n *\n * _.repeat('abc', 0);\n * // => ''\n */\n function repeat(string, n, guard) {\n if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n return baseRepeat(toString(string), n);\n }\n\n /**\n * Replaces matches for `pattern` in `string` with `replacement`.\n *\n * **Note:** This method is based on\n * [`String#replace`](https://mdn.io/String/replace).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to modify.\n * @param {RegExp|string} pattern The pattern to replace.\n * @param {Function|string} replacement The match replacement.\n * @returns {string} Returns the modified string.\n * @example\n *\n * _.replace('Hi Fred', 'Fred', 'Barney');\n * // => 'Hi Barney'\n */\n function replace() {\n var args = arguments,\n string = toString(args[0]);\n\n return args.length < 3 ? string : string.replace(args[1], args[2]);\n }\n\n /**\n * Converts `string` to\n * [snake case](https://en.wikipedia.org/wiki/Snake_case).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the snake cased string.\n * @example\n *\n * _.snakeCase('Foo Bar');\n * // => 'foo_bar'\n *\n * _.snakeCase('fooBar');\n * // => 'foo_bar'\n *\n * _.snakeCase('--FOO-BAR--');\n * // => 'foo_bar'\n */\n var snakeCase = createCompounder(function(result, word, index) {\n return result + (index ? '_' : '') + word.toLowerCase();\n });\n\n /**\n * Splits `string` by `separator`.\n *\n * **Note:** This method is based on\n * [`String#split`](https://mdn.io/String/split).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to split.\n * @param {RegExp|string} separator The separator pattern to split by.\n * @param {number} [limit] The length to truncate results to.\n * @returns {Array} Returns the string segments.\n * @example\n *\n * _.split('a-b-c', '-', 2);\n * // => ['a', 'b']\n */\n function split(string, separator, limit) {\n if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {\n separator = limit = undefined;\n }\n limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;\n if (!limit) {\n return [];\n }\n string = toString(string);\n if (string && (\n typeof separator == 'string' ||\n (separator != null && !isRegExp(separator))\n )) {\n separator = baseToString(separator);\n if (!separator && hasUnicode(string)) {\n return castSlice(stringToArray(string), 0, limit);\n }\n }\n return string.split(separator, limit);\n }\n\n /**\n * Converts `string` to\n * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).\n *\n * @static\n * @memberOf _\n * @since 3.1.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the start cased string.\n * @example\n *\n * _.startCase('--foo-bar--');\n * // => 'Foo Bar'\n *\n * _.startCase('fooBar');\n * // => 'Foo Bar'\n *\n * _.startCase('__FOO_BAR__');\n * // => 'FOO BAR'\n */\n var startCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + upperFirst(word);\n });\n\n /**\n * Checks if `string` starts with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=0] The position to search from.\n * @returns {boolean} Returns `true` if `string` starts with `target`,\n * else `false`.\n * @example\n *\n * _.startsWith('abc', 'a');\n * // => true\n *\n * _.startsWith('abc', 'b');\n * // => false\n *\n * _.startsWith('abc', 'b', 1);\n * // => true\n */\n function startsWith(string, target, position) {\n string = toString(string);\n position = position == null\n ? 0\n : baseClamp(toInteger(position), 0, string.length);\n\n target = baseToString(target);\n return string.slice(position, position + target.length) == target;\n }\n\n /**\n * Creates a compiled template function that can interpolate data properties\n * in \"interpolate\" delimiters, HTML-escape interpolated data properties in\n * \"escape\" delimiters, and execute JavaScript in \"evaluate\" delimiters. Data\n * properties may be accessed as free variables in the template. If a setting\n * object is given, it takes precedence over `_.templateSettings` values.\n *\n * **Note:** In the development build `_.template` utilizes\n * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)\n * for easier debugging.\n *\n * For more information on precompiling templates see\n * [lodash's custom builds documentation](https://lodash.com/custom-builds).\n *\n * For more information on Chrome extension sandboxes see\n * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The template string.\n * @param {Object} [options={}] The options object.\n * @param {RegExp} [options.escape=_.templateSettings.escape]\n * The HTML \"escape\" delimiter.\n * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]\n * The \"evaluate\" delimiter.\n * @param {Object} [options.imports=_.templateSettings.imports]\n * An object to import into the template as free variables.\n * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]\n * The \"interpolate\" delimiter.\n * @param {string} [options.sourceURL='lodash.templateSources[n]']\n * The sourceURL of the compiled template.\n * @param {string} [options.variable='obj']\n * The data object variable name.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the compiled template function.\n * @example\n *\n * // Use the \"interpolate\" delimiter to create a compiled template.\n * var compiled = _.template('hello <%= user %>!');\n * compiled({ 'user': 'fred' });\n * // => 'hello fred!'\n *\n * // Use the HTML \"escape\" delimiter to escape data property values.\n * var compiled = _.template('<%- value %>');\n * compiled({ 'value': '