Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-drawer

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-drawer - npm Package Compare versions

Comparing version 1.9.7 to 1.9.8

2

dist/rc-drawer.min.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports["rc-drawer"]=e(require("react"),require("react-dom")):t["rc-drawer"]=e(t.React,t.ReactDOM)}("undefined"!=typeof self?self:this,function(t,e){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=48)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(10),o=n(30),i=n(15),a=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(2),o=n(12);t.exports=n(3)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(62),o=n(17);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(22)("wks"),o=n(14),i=n(0).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(0),o=n(1),i=n(29),a=n(5),s=n(4),c=function(t,e,n){var u,f,l,p=t&c.F,d=t&c.G,h=t&c.S,m=t&c.P,y=t&c.B,v=t&c.W,b=d?o:o[e]||(o[e]={}),E=b.prototype,g=d?r:h?r[e]:(r[e]||{}).prototype;d&&(n=e);for(u in n)(f=!p&&g&&void 0!==g[u])&&s(b,u)||(l=f?g[u]:n[u],b[u]=d&&"function"!=typeof g[u]?n[u]:y&&f?i(l,r):v&&g[u]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):m&&"function"==typeof l?i(Function.call,l):l,m&&((b.virtual||(b.virtual={}))[u]=l,t&c.R&&E&&!E[u]&&a(E,u,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=!0},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(6);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports={}},function(t,e,n){var r=n(10),o=n(61),i=n(23),a=n(21)("IE_PROTO"),s=function(){},c=function(){var t,e=n(31)("iframe"),r=i.length;for(e.style.display="none",n(66).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(38),o=n(23);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(22)("keys"),o=n(14);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(1),o=n(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(13)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(2).f,o=n(4),i=n(8)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){e.f=n(8)},function(t,e,n){var r=n(0),o=n(1),i=n(13),a=n(25),s=n(2).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){t.exports={default:n(53),__esModule:!0}},function(t,e,n){var r=n(55);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){t.exports=!n(3)&&!n(11)(function(){return 7!=Object.defineProperty(n(31)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(6),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(28),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){"use strict";e.__esModule=!0;var r=n(35),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(56),i=r(o),a=n(72),s=r(a),c="function"==typeof s.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===c(i.default)?function(t){return void 0===t?"undefined":c(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":c(t)}},function(t,e,n){"use strict";var r=n(13),o=n(9),i=n(37),a=n(5),s=n(18),c=n(60),u=n(24),f=n(67),l=n(8)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,h,m,y,v){c(n,e,h);var b,E,g,O=function(t){if(!p&&t in T)return T[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},_=e+" Iterator",C="values"==m,S=!1,T=t.prototype,w=T[l]||T["@@iterator"]||m&&T[m],M=w||O(m),N=m?C?O("entries"):M:void 0,x="Array"==e?T.entries||w:w;if(x&&(g=f(x.call(new t)))!==Object.prototype&&g.next&&(u(g,_,!0),r||"function"==typeof g[l]||a(g,l,d)),C&&w&&"values"!==w.name&&(S=!0,M=function(){return w.call(this)}),r&&!v||!p&&!S&&T[l]||a(T,l,M),s[e]=M,s[_]=d,m)if(b={values:C?M:O("values"),keys:y?M:O("keys"),entries:N},v)for(E in b)E in T||i(T,E,b[E]);else o(o.P+o.F*(p||S),e,b);return b}},function(t,e,n){t.exports=n(5)},function(t,e,n){var r=n(4),o=n(7),i=n(63)(!1),a=n(21)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;e.length>c;)r(s,n=e[c++])&&(~i(u,n)||u.push(n));return u}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(17);t.exports=function(t){return Object(r(t))}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(38),o=n(23).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(27),o=n(12),i=n(7),a=n(15),s=n(4),c=n(30),u=Object.getOwnPropertyDescriptor;e.f=n(3)?u:function(t,e){if(t=i(t),e=a(e,!0),c)try{return u(t,e)}catch(t){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(82),i=r(o),a=n(86),s=r(a),c=n(35),u=r(c);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,u.default)(e)));t.prototype=(0,s.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(i.default?(0,i.default)(t,e):t.__proto__=e)}},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){t.exports=n(89)()},function(t,e,n){n(49),t.exports=n(50)},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(51);e.default=r.a},function(t,e,n){"use strict";var r=n(52),o=n.n(r),i=n(32),a=n.n(i),s=n(33),c=n.n(s),u=n(34),f=n.n(u),l=n(44),p=n.n(l),d=n(45),h=n.n(d),m=n(46),y=n.n(m),v=n(47),b=n.n(v),E=n(91),g=n.n(E),O=n(92),_=n(93),C=n(94),S=n(95),T="createPortal"in y.a,w={},M=!("undefined"!=typeof window&&window.document&&window.document.createElement),N=function(t){function e(t){a()(this,e);var n=f()(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));x.call(n),n.levelDom=[],n.contentDom=null,n.maskDom=null,n.handlerDom=null,n.firstEnter=t.firstEnter,n.timeout=null,n.drawerId=Number((Date.now()+Math.random()).toString().replace(".",Math.round(9*Math.random()))).toString(16);var r=void 0!==t.open?t.open:!!t.defaultOpen;return w[n.drawerId]=r,n.state={open:r},n}return p()(e,t),c()(e,[{key:"componentDidMount",value:function(){if(!M){var t=!1;window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return t=!0,null}})),this.passive=!!t&&{passive:!1}}var e=this.getOpen();(this.props.handler||e||this.firstEnter)&&(this.getDefault(this.props),e&&(this.isOpenChange=!0),this.forceUpdate())}},{key:"componentWillReceiveProps",value:function(t){var e=this,n=t.open,r=t.placement,o=t.getContainer;if(void 0!==n&&n!==this.props.open){this.isOpenChange=!0;var i="function"==typeof o&&"function"==typeof this.props.getContainer?this.props.getContainer()===o():this.props.getContainer===o;this.container&&i||this.getDefault(t);var a=n&&!this.props.open;this.setState({open:n},function(){e.domFocus(a)})}r!==this.props.placement&&(this.contentDom=null),this.props.level!==t.level&&this.getParentAndLevelDom(t)}},{key:"componentDidUpdate",value:function(){!this.firstEnter&&this.container&&(this.forceUpdate(),this.firstEnter=!0)}},{key:"componentWillUnmount",value:function(){delete w[this.drawerId],delete this.isOpenChange,this.container&&(this.state.open&&this.setLevelDomTransform(!1,!0),document.body.style.overflow="",this.props.getContainer&&this.container.parentNode.removeChild(this.container)),this.firstEnter=!1,clearTimeout(this.timeout),this.renderComponent&&!T&&this.renderComponent({afterClose:this.removeContainer,onClose:function(){},visible:!1})}},{key:"render",value:function(){var t=this,e=this.props,n=e.getContainer,r=e.wrapperClassName,o=this.getOpen();w[this.drawerId]=o?this.container:o;var i=this.getChildToRender(!!this.firstEnter&&o);return n?this.container&&(o||this.firstEnter)?T?y.a.createPortal(i,this.container):h.a.createElement(O.a,{parent:this,visible:!0,autoMount:!0,autoDestroy:!1,getComponent:function(){return i},getContainer:this.getContainer},function(e){var n=e.renderComponent,r=e.removeContainer;return t.renderComponent=n,t.removeContainer=r,null}):null:h.a.createElement("div",{className:r,ref:function(e){t.props.getContainer||(t.container=e)}},i)}}]),e}(h.a.PureComponent);N.propTypes={wrapperClassName:b.a.string,className:b.a.string,children:b.a.node,style:b.a.object,width:b.a.any,height:b.a.any,defaultOpen:b.a.bool,firstEnter:b.a.bool,open:b.a.bool,prefixCls:b.a.string,placement:b.a.string,level:b.a.oneOfType([b.a.string,b.a.array]),levelMove:b.a.oneOfType([b.a.number,b.a.func,b.a.array]),ease:b.a.string,duration:b.a.string,getContainer:b.a.oneOfType([b.a.string,b.a.func,b.a.object,b.a.bool]),handler:b.a.any,onChange:b.a.func,afterVisibleChange:b.a.func,onMaskClick:b.a.func,onHandleClick:b.a.func,showMask:b.a.bool,maskStyle:b.a.object,keyboard:b.a.bool},N.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:h.a.createElement("div",{className:"drawer-handle"},h.a.createElement("i",{className:"drawer-handle-icon"})),firstEnter:!1,showMask:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0};var x=function(){var t=this;this.onMaskTouchEnd=function(e){var n=t.props.onMaskClick;n&&n(e),t.onTouchEnd(e,!0)},this.onIconTouchEnd=function(e){var n=t.props.onHandleClick;n&&n(e),t.onTouchEnd(e)},this.onTouchEnd=function(e,n){if(void 0===t.props.open){var r=n||t.state.open;t.isOpenChange=!0,t.setState({open:!r},function(){t.domFocus(!r)})}},this.onKeyDown=function(e){if(e.keyCode===C.a.ESC){var n=t.props,r=n.onMaskClick,o=n.onHandleClick;e.stopPropagation();var i=o||r;i?i(e):t.onTouchEnd(e,!0)}},this.onWrapperTransitionEnd=function(e){if(e.target===t.contentWrapper){t.dom.style.transition="",!t.state.open&&t.getCurrentDrawerSome()&&(document.body.style.overflowX="",t.maskDom&&(t.maskDom.style.left="",t.maskDom.style.width=""));(0,t.props.afterVisibleChange)(t.state.open)}},this.getDefault=function(e){t.getParentAndLevelDom(e),(e.getContainer||e.parent)&&(t.container=t.defaultGetContainer())},this.getCurrentDrawerSome=function(){return!Object.keys(w).some(function(t){return w[t]})},this.getContainer=function(){return t.container},this.getParentAndLevelDom=function(e){if(!M){var n=e.level,r=e.getContainer;if(t.levelDom=[],r){if("string"==typeof r){var o=document.querySelectorAll(r)[0];t.parent=o}"function"==typeof r&&(t.parent=r()),"object"==typeof r&&r instanceof window.HTMLElement&&(t.parent=r)}if(!r&&t.container&&(t.parent=t.container.parentNode),"all"===n){Array.prototype.slice.call(t.parent.children).forEach(function(e){"SCRIPT"!==e.nodeName&&"STYLE"!==e.nodeName&&"LINK"!==e.nodeName&&e!==t.container&&t.levelDom.push(e)})}else n&&Object(S.b)(n).forEach(function(e){document.querySelectorAll(e).forEach(function(e){t.levelDom.push(e)})})}},this.setLevelDomTransform=function(e,n,r,o){var i=t.props,a=i.placement,s=i.levelMove,c=i.duration,u=i.ease,f=i.onChange,l=i.getContainer,p=i.showMask,d=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(_.a)(1):0;if(!M&&(t.levelDom.forEach(function(i){if(t.isOpenChange||n){i.style.transition="transform "+c+" "+u,Object(S.a)(i,S.f,t.transitionEnd);var f=e?o:0;if(s){var l=Object(S.e)(s,{target:i,open:e});f=e?l[0]:l[1]||0}var h="number"==typeof f?f+"px":f,m="left"===a||"top"===a?h:"-"+h,y="left"===a||"top"===a?"-":"+";m=p&&("left"===a||"right"===a)&&d?"calc("+m+" "+y+" "+d+"px)":m,i.style.transform=f?r+"("+m+")":"",i.style.msTransform=f?r+"("+m+")":""}}),"body"===l&&p)){var h=["touchstart"],m=[document.body,t.maskDom,t.handlerDom,t.contentDom],y="width "+c+" "+u,v="transform "+c+" "+u;if(e&&"hidden"!==document.body.style.overflow){if(document.body.style.overflow="hidden",document.body.style.touchAction="none",d){switch(document.body.style.position="relative",document.body.style.width="calc(100% - "+d+"px)",t.dom.style.transition="none",a){case"right":t.dom.style.transform="translateX(-"+d+"px)",t.dom.style.msTransform="translateX(-"+d+"px)";break;case"top":case"bottom":t.dom.style.width="calc(100% - "+d+"px)",t.dom.style.transform="translateZ(0)"}clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.dom.style.transition=v+","+y,t.dom.style.width="",t.dom.style.transform="",t.dom.style.msTransform=""})}m.forEach(function(e,n){e&&Object(S.a)(e,h[n]||"touchmove",n?t.removeMoveHandler:t.removeStartHandler,t.passive)})}else if(t.getCurrentDrawerSome()){if(document.body.style.overflow="",document.body.style.touchAction="",(t.isOpenChange||n)&&d){document.body.style.position="",document.body.style.width="",S.g&&(document.body.style.overflowX="hidden"),t.dom.style.transition="none";var b=void 0;switch(a){case"right":t.dom.style.transform="translateX("+d+"px)",t.dom.style.msTransform="translateX("+d+"px)",t.dom.style.width="100%",y="width 0s "+u+" "+c,t.maskDom&&(t.maskDom.style.left="-"+d+"px",t.maskDom.style.width="calc(100% + "+d+"px)");break;case"top":case"bottom":t.dom.style.width="calc(100% + "+d+"px)",t.dom.style.height="100%",t.dom.style.transform="translateZ(0)",b="height 0s "+u+" "+c}clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.dom.style.transition=v+","+(b?b+",":"")+y,t.dom.style.transform="",t.dom.style.msTransform="",t.dom.style.width="",t.dom.style.height=""})}m.forEach(function(e,n){e&&Object(S.d)(e,h[n]||"touchmove",n?t.removeMoveHandler:t.removeStartHandler,t.passive)})}}t.isOpenChange&&t.firstEnter&&(f(e),t.isOpenChange=!1)},this.getChildToRender=function(e){var n,r=t.props,i=r.className,a=r.prefixCls,s=r.style,c=r.placement,u=r.children,f=r.handler,l=r.showMask,p=r.maskStyle,d=r.width,m=r.height,y=r.keyboard,v=g()(a,(n={},o()(n,a+"-"+c,!0),o()(n,a+"-open",e),o()(n,i,!!i),o()(n,"no-mask",!l),n)),b=t.isOpenChange,E="left"===c||"right"===c,O="translate"+(E?"X":"Y"),_="left"===c||"top"===c?"-100%":"100%",C=e?"":O+"("+_+")";if(void 0===b||b){var T=t.contentDom?t.contentDom.getBoundingClientRect()[E?"width":"height"]:0,w=(E?d:m)||T;t.setLevelDomTransform(e,!1,O,w)}var M=f&&h.a.cloneElement(f,{onClick:function(e){f.props.onClick&&f.props.onClick(),t.onIconTouchEnd(e)},ref:function(e){t.handlerDom=e}});return h.a.createElement("div",{tabIndex:-1,className:v,style:s,ref:function(e){t.dom=e},onKeyDown:e&&y?t.onKeyDown:null,onTransitionEnd:t.onWrapperTransitionEnd},l&&h.a.createElement("div",{className:a+"-mask",onClick:t.onMaskTouchEnd,style:p,ref:function(e){t.maskDom=e}}),h.a.createElement("div",{className:a+"-content-wrapper",style:{transform:C,msTransform:C,width:Object(S.c)(d)?d+"px":d,height:Object(S.c)(m)?m+"px":m},ref:function(e){t.contentWrapper=e}},h.a.createElement("div",{className:a+"-content",ref:function(e){t.contentDom=e},onTouchStart:e&&l?t.removeStartHandler:null,onTouchMove:e&&l?t.removeMoveHandler:null},u),M))},this.getOpen=function(){return void 0!==t.props.open?t.props.open:t.state.open},this.getTouchParentScroll=function(e,n,r,o){if(!n||n===document)return!1;if(n===e.parentNode)return!0;var i=Math.max(Math.abs(r),Math.abs(o))===Math.abs(o),a=Math.max(Math.abs(r),Math.abs(o))===Math.abs(r),s=n.scrollHeight-n.clientHeight,c=n.scrollWidth-n.clientWidth,u=n.scrollTop,f=n.scrollLeft;n.scrollTop+=1,n.scrollLeft+=1;var l=n.scrollTop,p=n.scrollLeft;return n.scrollTop-=1,n.scrollLeft-=1,!((!i||s&&l-u&&(!s||!(n.scrollTop>=s&&o<0||n.scrollTop<=0&&o>0)))&&(!a||c&&p-f&&(!c||!(n.scrollLeft>=c&&r<0||n.scrollLeft<=0&&r>0))))&&t.getTouchParentScroll(e,n.parentNode,r,o)},this.domFocus=function(e){t.dom&&e&&t.dom.focus()},this.removeStartHandler=function(e){e.touches.length>1||(t.startPos={x:e.touches[0].clientX,y:e.touches[0].clientY})},this.removeMoveHandler=function(e){if(!(e.changedTouches.length>1)){var n=e.currentTarget,r=e.changedTouches[0].clientX-t.startPos.x,o=e.changedTouches[0].clientY-t.startPos.y;(n===t.maskDom||n===t.handlerDom||n===t.contentDom&&t.getTouchParentScroll(n,e.target,r,o))&&e.preventDefault()}},this.transitionEnd=function(e){Object(S.d)(e.target,S.f,t.transitionEnd),e.target.style.transition=""},this.defaultGetContainer=function(){if(M)return null;var e=document.createElement("div");return t.parent.appendChild(e),t.props.wrapperClassName&&(e.className=t.props.wrapperClassName),e}};e.a=N},function(t,e,n){"use strict";e.__esModule=!0;var r=n(28),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e,n){return e in t?(0,o.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){n(54);var r=n(1).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(9);r(r.S+r.F*!n(3),"Object",{defineProperty:n(2).f})},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){t.exports={default:n(57),__esModule:!0}},function(t,e,n){n(58),n(68),t.exports=n(25).f("iterator")},function(t,e,n){"use strict";var r=n(59)(!0);n(36)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(16),o=n(17);t.exports=function(t){return function(e,n){var i,a,s=String(o(e)),c=r(n),u=s.length;return c<0||c>=u?t?"":void 0:(i=s.charCodeAt(c),i<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):i:t?s.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},function(t,e,n){"use strict";var r=n(19),o=n(12),i=n(24),a={};n(5)(a,n(8)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(2),o=n(10),i=n(20);t.exports=n(3)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),s=a.length,c=0;s>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){var r=n(39);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(7),o=n(64),i=n(65);t.exports=function(t){return function(e,n,a){var s,c=r(e),u=o(c.length),f=i(a,u);if(t&&n!=n){for(;u>f;)if((s=c[f++])!=s)return!0}else for(;u>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(16),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(16),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(40),i=n(21)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){n(69);for(var r=n(0),o=n(5),i=n(18),a=n(8)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var u=s[c],f=r[u],l=f&&f.prototype;l&&!l[a]&&o(l,a,u),i[u]=i.Array}},function(t,e,n){"use strict";var r=n(70),o=n(71),i=n(18),a=n(7);t.exports=n(36)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(73),__esModule:!0}},function(t,e,n){n(74),n(79),n(80),n(81),t.exports=n(1).Symbol},function(t,e,n){"use strict";var r=n(0),o=n(4),i=n(3),a=n(9),s=n(37),c=n(75).KEY,u=n(11),f=n(22),l=n(24),p=n(14),d=n(8),h=n(25),m=n(26),y=n(76),v=n(77),b=n(10),E=n(6),g=n(40),O=n(7),_=n(15),C=n(12),S=n(19),T=n(78),w=n(43),M=n(41),N=n(2),x=n(20),P=w.f,A=N.f,k=T.f,D=r.Symbol,L=r.JSON,j=L&&L.stringify,I=d("_hidden"),R=d("toPrimitive"),U={}.propertyIsEnumerable,F=f("symbol-registry"),H=f("symbols"),W=f("op-symbols"),K=Object.prototype,G="function"==typeof D&&!!M.f,V=r.QObject,B=!V||!V.prototype||!V.prototype.findChild,X=i&&u(function(){return 7!=S(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(K,e);r&&delete K[e],A(t,e,n),r&&t!==K&&A(K,e,r)}:A,Y=function(t){var e=H[t]=S(D.prototype);return e._k=t,e},Q=G&&"symbol"==typeof D.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof D},q=function(t,e,n){return t===K&&q(W,e,n),b(t),e=_(e,!0),b(n),o(H,e)?(n.enumerable?(o(t,I)&&t[I][e]&&(t[I][e]=!1),n=S(n,{enumerable:C(0,!1)})):(o(t,I)||A(t,I,C(1,{})),t[I][e]=!0),X(t,e,n)):A(t,e,n)},Z=function(t,e){b(t);for(var n,r=y(e=O(e)),o=0,i=r.length;i>o;)q(t,n=r[o++],e[n]);return t},z=function(t,e){return void 0===e?S(t):Z(S(t),e)},J=function(t){var e=U.call(this,t=_(t,!0));return!(this===K&&o(H,t)&&!o(W,t))&&(!(e||!o(this,t)||!o(H,t)||o(this,I)&&this[I][t])||e)},$=function(t,e){if(t=O(t),e=_(e,!0),t!==K||!o(H,e)||o(W,e)){var n=P(t,e);return!n||!o(H,e)||o(t,I)&&t[I][e]||(n.enumerable=!0),n}},tt=function(t){for(var e,n=k(O(t)),r=[],i=0;n.length>i;)o(H,e=n[i++])||e==I||e==c||r.push(e);return r},et=function(t){for(var e,n=t===K,r=k(n?W:O(t)),i=[],a=0;r.length>a;)!o(H,e=r[a++])||n&&!o(K,e)||i.push(H[e]);return i};G||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===K&&e.call(W,n),o(this,I)&&o(this[I],t)&&(this[I][t]=!1),X(this,t,C(1,n))};return i&&B&&X(K,t,{configurable:!0,set:e}),Y(t)},s(D.prototype,"toString",function(){return this._k}),w.f=$,N.f=q,n(42).f=T.f=tt,n(27).f=J,M.f=et,i&&!n(13)&&s(K,"propertyIsEnumerable",J,!0),h.f=function(t){return Y(d(t))}),a(a.G+a.W+a.F*!G,{Symbol:D});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)d(nt[rt++]);for(var ot=x(d.store),it=0;ot.length>it;)m(ot[it++]);a(a.S+a.F*!G,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=D(t)},keyFor:function(t){if(!Q(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!G,"Object",{create:z,defineProperty:q,defineProperties:Z,getOwnPropertyDescriptor:$,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=u(function(){M.f(1)});a(a.S+a.F*at,"Object",{getOwnPropertySymbols:function(t){return M.f(g(t))}}),L&&a(a.S+a.F*(!G||u(function(){var t=D();return"[null]"!=j([t])||"{}"!=j({a:t})||"{}"!=j(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(E(e)||void 0!==t)&&!Q(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Q(e))return e}),r[1]=e,j.apply(L,r)}}),D.prototype[R]||n(5)(D.prototype,R,D.prototype.valueOf),l(D,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){var r=n(14)("meta"),o=n(6),i=n(4),a=n(2).f,s=0,c=Object.isExtensible||function(){return!0},u=!n(11)(function(){return c(Object.preventExtensions({}))}),f=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[r].w},d=function(t){return u&&h.NEED&&c(t)&&!i(t,r)&&f(t),t},h=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},function(t,e,n){var r=n(20),o=n(41),i=n(27);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,s=n(t),c=i.f,u=0;s.length>u;)c.call(t,a=s[u++])&&e.push(a);return e}},function(t,e,n){var r=n(39);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(7),o=n(42).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?s(t):o(r(t))}},function(t,e){},function(t,e,n){n(26)("asyncIterator")},function(t,e,n){n(26)("observable")},function(t,e,n){t.exports={default:n(83),__esModule:!0}},function(t,e,n){n(84),t.exports=n(1).Object.setPrototypeOf},function(t,e,n){var r=n(9);r(r.S,"Object",{setPrototypeOf:n(85).set})},function(t,e,n){var r=n(6),o=n(10),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(29)(Function.call,n(43).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){t.exports={default:n(87),__esModule:!0}},function(t,e,n){n(88);var r=n(1).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(9);r(r.S,"Object",{create:n(19)})},function(t,e,n){"use strict";function r(){}function o(){}var i=n(90);o.resetWarningCache=r,t.exports=function(){function t(t,e,n,r,o,a){if(a!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){var r,o;!function(){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)&&r.length){var a=n.apply(null,r);a&&t.push(a)}else if("object"===o)for(var s in r)i.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}var i={}.hasOwnProperty;void 0!==t&&t.exports?(n.default=n,t.exports=n):(r=[],void 0!==(o=function(){return n}.apply(e,r))&&(t.exports=o))}()},function(t,e,n){"use strict";var r=n(32),o=n.n(r),i=n(33),a=n.n(i),s=n(34),c=n.n(s),u=n(44),f=n.n(u),l=n(45),p=n.n(l),d=n(46),h=n.n(d),m=n(47),y=n.n(m),v=function(t){function e(){var t,n,r,i;o()(this,e);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return n=r=c()(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(s))),r.removeContainer=function(){r.container&&(h.a.unmountComponentAtNode(r.container),r.container.parentNode.removeChild(r.container),r.container=null)},r.renderComponent=function(t,e){var n=r.props,o=n.visible,i=n.getComponent,a=n.forceRender,s=n.getContainer,c=n.parent;(o||c._component||a)&&(r.container||(r.container=s()),h.a.unstable_renderSubtreeIntoContainer(c,i(t),r.container,function(){e&&e.call(this)}))},i=n,c()(r,i)}return f()(e,t),a()(e,[{key:"componentDidMount",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentDidUpdate",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentWillUnmount",value:function(){this.props.autoDestroy&&this.removeContainer()}},{key:"render",value:function(){return this.props.children({renderComponent:this.renderComponent,removeContainer:this.removeContainer})}}]),e}(p.a.Component);v.propTypes={autoMount:y.a.bool,autoDestroy:y.a.bool,visible:y.a.bool,forceRender:y.a.bool,parent:y.a.any,getComponent:y.a.func.isRequired,getContainer:y.a.func.isRequired,children:y.a.func.isRequired},v.defaultProps={autoMount:!0,autoDestroy:!0,forceRender:!1},e.a=v},function(t,e,n){"use strict";function r(t){if(t||void 0===o){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top=0,r.left=0,r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(e),document.body.appendChild(n);var i=e.offsetWidth;n.style.overflow="scroll";var a=e.offsetWidth;i===a&&(a=n.clientWidth),document.body.removeChild(n),o=i-a}return o}e.a=r;var o=void 0},function(t,e,n){"use strict";var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229};r.isTextModifyingKeyEvent=function(t){var e=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||e>=r.F1&&e<=r.F12)return!1;switch(e){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},r.isCharacterKey=function(t){if(t>=r.ZERO&&t<=r.NINE)return!0;if(t>=r.NUM_ZERO&&t<=r.NUM_MULTIPLY)return!0;if(t>=r.A&&t<=r.Z)return!0;if(-1!==window.navigation.userAgent.indexOf("WebKit")&&0===t)return!0;switch(t){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},e.a=r},function(t,e,n){"use strict";function r(t){return Array.isArray(t)?t:[t]}function o(t,e,n,r){t.addEventListener?t.addEventListener(e,n,r):t.attachEvent&&t.attachEvent("on"+e,n)}function i(t,e,n,r){t.removeEventListener?t.removeEventListener(e,n,r):t.attachEvent&&t.detachEvent("on"+e,n)}function a(t,e){var n=void 0;return n="function"==typeof t?t(e):t,Array.isArray(n)?2===n.length?n:[n[0],n[1]]:[n]}e.b=r,n.d(e,"g",function(){return c}),n.d(e,"f",function(){return u}),e.a=o,e.d=i,e.e=a,n.d(e,"c",function(){return f});var s={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},c=Object.keys(s).filter(function(t){if("undefined"==typeof document)return!1;var e=document.getElementsByTagName("html")[0];return t in(e?e.style:{})})[0],u=s[c],f=function(t){return!isNaN(parseFloat(t))&&isFinite(t)}}]).default});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports["rc-drawer"]=e(require("react"),require("react-dom")):t["rc-drawer"]=e(t.React,t.ReactDOM)}("undefined"!=typeof self?self:this,function(t,e){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=48)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(10),o=n(30),i=n(15),a=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(2),o=n(12);t.exports=n(3)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(62),o=n(17);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(22)("wks"),o=n(14),i=n(0).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(0),o=n(1),i=n(29),a=n(5),s=n(4),c=function(t,e,n){var u,f,l,p=t&c.F,d=t&c.G,h=t&c.S,m=t&c.P,y=t&c.B,v=t&c.W,b=d?o:o[e]||(o[e]={}),E=b.prototype,g=d?r:h?r[e]:(r[e]||{}).prototype;d&&(n=e);for(u in n)(f=!p&&g&&void 0!==g[u])&&s(b,u)||(l=f?g[u]:n[u],b[u]=d&&"function"!=typeof g[u]?n[u]:y&&f?i(l,r):v&&g[u]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):m&&"function"==typeof l?i(Function.call,l):l,m&&((b.virtual||(b.virtual={}))[u]=l,t&c.R&&E&&!E[u]&&a(E,u,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=!0},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(6);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports={}},function(t,e,n){var r=n(10),o=n(61),i=n(23),a=n(21)("IE_PROTO"),s=function(){},c=function(){var t,e=n(31)("iframe"),r=i.length;for(e.style.display="none",n(66).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(38),o=n(23);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(22)("keys"),o=n(14);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(1),o=n(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(13)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(2).f,o=n(4),i=n(8)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){e.f=n(8)},function(t,e,n){var r=n(0),o=n(1),i=n(13),a=n(25),s=n(2).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){t.exports={default:n(53),__esModule:!0}},function(t,e,n){var r=n(55);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){t.exports=!n(3)&&!n(11)(function(){return 7!=Object.defineProperty(n(31)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(6),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(28),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){"use strict";e.__esModule=!0;var r=n(35),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(56),i=r(o),a=n(72),s=r(a),c="function"==typeof s.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===c(i.default)?function(t){return void 0===t?"undefined":c(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":c(t)}},function(t,e,n){"use strict";var r=n(13),o=n(9),i=n(37),a=n(5),s=n(18),c=n(60),u=n(24),f=n(67),l=n(8)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,h,m,y,v){c(n,e,h);var b,E,g,O=function(t){if(!p&&t in T)return T[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},_=e+" Iterator",C="values"==m,S=!1,T=t.prototype,w=T[l]||T["@@iterator"]||m&&T[m],M=w||O(m),N=m?C?O("entries"):M:void 0,x="Array"==e?T.entries||w:w;if(x&&(g=f(x.call(new t)))!==Object.prototype&&g.next&&(u(g,_,!0),r||"function"==typeof g[l]||a(g,l,d)),C&&w&&"values"!==w.name&&(S=!0,M=function(){return w.call(this)}),r&&!v||!p&&!S&&T[l]||a(T,l,M),s[e]=M,s[_]=d,m)if(b={values:C?M:O("values"),keys:y?M:O("keys"),entries:N},v)for(E in b)E in T||i(T,E,b[E]);else o(o.P+o.F*(p||S),e,b);return b}},function(t,e,n){t.exports=n(5)},function(t,e,n){var r=n(4),o=n(7),i=n(63)(!1),a=n(21)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;e.length>c;)r(s,n=e[c++])&&(~i(u,n)||u.push(n));return u}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(17);t.exports=function(t){return Object(r(t))}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(38),o=n(23).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(27),o=n(12),i=n(7),a=n(15),s=n(4),c=n(30),u=Object.getOwnPropertyDescriptor;e.f=n(3)?u:function(t,e){if(t=i(t),e=a(e,!0),c)try{return u(t,e)}catch(t){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(82),i=r(o),a=n(86),s=r(a),c=n(35),u=r(c);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,u.default)(e)));t.prototype=(0,s.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(i.default?(0,i.default)(t,e):t.__proto__=e)}},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){t.exports=n(89)()},function(t,e,n){n(49),t.exports=n(50)},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(51);e.default=r.a},function(t,e,n){"use strict";var r=n(52),o=n.n(r),i=n(32),a=n.n(i),s=n(33),c=n.n(s),u=n(34),f=n.n(u),l=n(44),p=n.n(l),d=n(45),h=n.n(d),m=n(46),y=n.n(m),v=n(47),b=n.n(v),E=n(91),g=n.n(E),O=n(92),_=n(93),C=n(94),S=n(95),T="createPortal"in y.a,w={},M=!("undefined"!=typeof window&&window.document&&window.document.createElement),N=function(t){function e(t){a()(this,e);var n=f()(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));x.call(n),n.levelDom=[],n.contentDom=null,n.maskDom=null,n.handlerDom=null,n.firstEnter=t.firstEnter,n.timeout=null,n.drawerId=Number((Date.now()+Math.random()).toString().replace(".",Math.round(9*Math.random()))).toString(16);var r=void 0!==t.open?t.open:!!t.defaultOpen;return w[n.drawerId]=r,n.state={open:r},n}return p()(e,t),c()(e,[{key:"componentDidMount",value:function(){if(!M){var t=!1;window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return t=!0,null}})),this.passive=!!t&&{passive:!1}}var e=this.getOpen();(this.props.handler||e||this.firstEnter)&&(this.getDefault(this.props),e&&(this.isOpenChange=!0),this.forceUpdate())}},{key:"componentWillReceiveProps",value:function(t){var e=this,n=t.open,r=t.placement,o=t.getContainer;if(void 0!==n&&n!==this.props.open){this.isOpenChange=!0;var i="function"==typeof o&&"function"==typeof this.props.getContainer?this.props.getContainer()===o():this.props.getContainer===o;this.container&&i||this.getDefault(t);var a=n&&!this.props.open;this.setState({open:n},function(){e.domFocus(a)})}r!==this.props.placement&&(this.contentDom=null),this.props.level!==t.level&&this.getParentAndLevelDom(t)}},{key:"componentDidUpdate",value:function(){!this.firstEnter&&this.container&&(this.forceUpdate(),this.firstEnter=!0)}},{key:"componentWillUnmount",value:function(){delete w[this.drawerId],delete this.isOpenChange,this.container&&(this.state.open&&this.setLevelDomTransform(!1,!0),document.body.style.overflow="",this.props.getContainer&&this.container.parentNode.removeChild(this.container)),this.firstEnter=!1,clearTimeout(this.timeout),this.renderComponent&&!T&&this.renderComponent({afterClose:this.removeContainer,onClose:function(){},visible:!1})}},{key:"render",value:function(){var t=this,e=this.props,n=e.getContainer,r=e.wrapperClassName,o=this.getOpen();w[this.drawerId]=o?this.container:o;var i=this.getChildToRender(!!this.firstEnter&&o);return n?this.container&&(o||this.firstEnter)?T?y.a.createPortal(i,this.container):h.a.createElement(O.a,{parent:this,visible:!0,autoMount:!0,autoDestroy:!1,getComponent:function(){return i},getContainer:this.getContainer},function(e){var n=e.renderComponent,r=e.removeContainer;return t.renderComponent=n,t.removeContainer=r,null}):null:h.a.createElement("div",{className:r,ref:function(e){t.props.getContainer||(t.container=e)}},i)}}]),e}(h.a.PureComponent);N.propTypes={wrapperClassName:b.a.string,className:b.a.string,children:b.a.node,style:b.a.object,width:b.a.any,height:b.a.any,defaultOpen:b.a.bool,firstEnter:b.a.bool,open:b.a.bool,prefixCls:b.a.string,placement:b.a.string,level:b.a.oneOfType([b.a.string,b.a.array]),levelMove:b.a.oneOfType([b.a.number,b.a.func,b.a.array]),ease:b.a.string,duration:b.a.string,getContainer:b.a.oneOfType([b.a.string,b.a.func,b.a.object,b.a.bool]),handler:b.a.any,onChange:b.a.func,afterVisibleChange:b.a.func,onMaskClick:b.a.func,onHandleClick:b.a.func,showMask:b.a.bool,maskStyle:b.a.object,keyboard:b.a.bool},N.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:h.a.createElement("div",{className:"drawer-handle"},h.a.createElement("i",{className:"drawer-handle-icon"})),firstEnter:!1,showMask:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0};var x=function(){var t=this;this.onMaskTouchEnd=function(e){var n=t.props.onMaskClick;n&&n(e),t.onTouchEnd(e,!0)},this.onIconTouchEnd=function(e){var n=t.props.onHandleClick;n&&n(e),t.onTouchEnd(e)},this.onTouchEnd=function(e,n){if(void 0===t.props.open){var r=n||t.state.open;t.isOpenChange=!0,t.setState({open:!r},function(){t.domFocus(!r)})}},this.onKeyDown=function(e){if(e.keyCode===C.a.ESC){var n=t.props,r=n.onMaskClick,o=n.onHandleClick;e.stopPropagation();var i=o||r;i?i(e):t.onTouchEnd(e,!0)}},this.onWrapperTransitionEnd=function(e){if(e.target===t.contentWrapper){t.dom.style.transition="",!t.state.open&&t.getCurrentDrawerSome()&&(document.body.style.overflowX="",t.maskDom&&(t.maskDom.style.left="",t.maskDom.style.width=""));(0,t.props.afterVisibleChange)(t.state.open)}},this.getDefault=function(e){t.getParentAndLevelDom(e),(e.getContainer||e.parent)&&(t.container=t.defaultGetContainer())},this.getCurrentDrawerSome=function(){return!Object.keys(w).some(function(t){return w[t]})},this.getContainer=function(){return t.container},this.getParentAndLevelDom=function(e){if(!M){var n=e.level,r=e.getContainer;if(t.levelDom=[],r){if("string"==typeof r){var o=document.querySelectorAll(r)[0];t.parent=o}"function"==typeof r&&(t.parent=r()),"object"==typeof r&&r instanceof window.HTMLElement&&(t.parent=r)}if(!r&&t.container&&(t.parent=t.container.parentNode),"all"===n){Array.prototype.slice.call(t.parent.children).forEach(function(e){"SCRIPT"!==e.nodeName&&"STYLE"!==e.nodeName&&"LINK"!==e.nodeName&&e!==t.container&&t.levelDom.push(e)})}else n&&Object(S.b)(n).forEach(function(e){document.querySelectorAll(e).forEach(function(e){t.levelDom.push(e)})})}},this.setLevelDomTransform=function(e,n,r,o){var i=t.props,a=i.placement,s=i.levelMove,c=i.duration,u=i.ease,f=i.onChange,l=i.getContainer,p=i.showMask;if(!M){var d=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(_.a)(1):0;if(t.levelDom.forEach(function(i){if(t.isOpenChange||n){i.style.transition="transform "+c+" "+u,Object(S.a)(i,S.f,t.transitionEnd);var f=e?o:0;if(s){var l=Object(S.e)(s,{target:i,open:e});f=e?l[0]:l[1]||0}var h="number"==typeof f?f+"px":f,m="left"===a||"top"===a?h:"-"+h,y="left"===a||"top"===a?"-":"+";m=p&&("left"===a||"right"===a)&&d?"calc("+m+" "+y+" "+d+"px)":m,i.style.transform=f?r+"("+m+")":"",i.style.msTransform=f?r+"("+m+")":""}}),"body"===l&&p){var h=["touchstart"],m=[document.body,t.maskDom,t.handlerDom,t.contentDom],y="width "+c+" "+u,v="transform "+c+" "+u;if(e&&"hidden"!==document.body.style.overflow){if(document.body.style.overflow="hidden",document.body.style.touchAction="none",d){switch(document.body.style.position="relative",document.body.style.width="calc(100% - "+d+"px)",t.dom.style.transition="none",a){case"right":t.dom.style.transform="translateX(-"+d+"px)",t.dom.style.msTransform="translateX(-"+d+"px)";break;case"top":case"bottom":t.dom.style.width="calc(100% - "+d+"px)",t.dom.style.transform="translateZ(0)"}clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.dom.style.transition=v+","+y,t.dom.style.width="",t.dom.style.transform="",t.dom.style.msTransform=""})}m.forEach(function(e,n){e&&Object(S.a)(e,h[n]||"touchmove",n?t.removeMoveHandler:t.removeStartHandler,t.passive)})}else if(t.getCurrentDrawerSome()){if(document.body.style.overflow="",document.body.style.touchAction="",(t.isOpenChange||n)&&d){document.body.style.position="",document.body.style.width="",S.g&&(document.body.style.overflowX="hidden"),t.dom.style.transition="none";var b=void 0;switch(a){case"right":t.dom.style.transform="translateX("+d+"px)",t.dom.style.msTransform="translateX("+d+"px)",t.dom.style.width="100%",y="width 0s "+u+" "+c,t.maskDom&&(t.maskDom.style.left="-"+d+"px",t.maskDom.style.width="calc(100% + "+d+"px)");break;case"top":case"bottom":t.dom.style.width="calc(100% + "+d+"px)",t.dom.style.height="100%",t.dom.style.transform="translateZ(0)",b="height 0s "+u+" "+c}clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.dom.style.transition=v+","+(b?b+",":"")+y,t.dom.style.transform="",t.dom.style.msTransform="",t.dom.style.width="",t.dom.style.height=""})}m.forEach(function(e,n){e&&Object(S.d)(e,h[n]||"touchmove",n?t.removeMoveHandler:t.removeStartHandler,t.passive)})}}}t.isOpenChange&&t.firstEnter&&(f(e),t.isOpenChange=!1)},this.getChildToRender=function(e){var n,r=t.props,i=r.className,a=r.prefixCls,s=r.style,c=r.placement,u=r.children,f=r.handler,l=r.showMask,p=r.maskStyle,d=r.width,m=r.height,y=r.keyboard,v=g()(a,(n={},o()(n,a+"-"+c,!0),o()(n,a+"-open",e),o()(n,i,!!i),o()(n,"no-mask",!l),n)),b=t.isOpenChange,E="left"===c||"right"===c,O="translate"+(E?"X":"Y"),_="left"===c||"top"===c?"-100%":"100%",C=e?"":O+"("+_+")";if(void 0===b||b){var T=t.contentDom?t.contentDom.getBoundingClientRect()[E?"width":"height"]:0,w=(E?d:m)||T;t.setLevelDomTransform(e,!1,O,w)}var M=f&&h.a.cloneElement(f,{onClick:function(e){f.props.onClick&&f.props.onClick(),t.onIconTouchEnd(e)},ref:function(e){t.handlerDom=e}});return h.a.createElement("div",{tabIndex:-1,className:v,style:s,ref:function(e){t.dom=e},onKeyDown:e&&y?t.onKeyDown:null,onTransitionEnd:t.onWrapperTransitionEnd},l&&h.a.createElement("div",{className:a+"-mask",onClick:t.onMaskTouchEnd,style:p,ref:function(e){t.maskDom=e}}),h.a.createElement("div",{className:a+"-content-wrapper",style:{transform:C,msTransform:C,width:Object(S.c)(d)?d+"px":d,height:Object(S.c)(m)?m+"px":m},ref:function(e){t.contentWrapper=e}},h.a.createElement("div",{className:a+"-content",ref:function(e){t.contentDom=e},onTouchStart:e&&l?t.removeStartHandler:null,onTouchMove:e&&l?t.removeMoveHandler:null},u),M))},this.getOpen=function(){return void 0!==t.props.open?t.props.open:t.state.open},this.getTouchParentScroll=function(e,n,r,o){if(!n||n===document)return!1;if(n===e.parentNode)return!0;var i=Math.max(Math.abs(r),Math.abs(o))===Math.abs(o),a=Math.max(Math.abs(r),Math.abs(o))===Math.abs(r),s=n.scrollHeight-n.clientHeight,c=n.scrollWidth-n.clientWidth,u=n.scrollTop,f=n.scrollLeft;n.scrollTop+=1,n.scrollLeft+=1;var l=n.scrollTop,p=n.scrollLeft;return n.scrollTop-=1,n.scrollLeft-=1,!((!i||s&&l-u&&(!s||!(n.scrollTop>=s&&o<0||n.scrollTop<=0&&o>0)))&&(!a||c&&p-f&&(!c||!(n.scrollLeft>=c&&r<0||n.scrollLeft<=0&&r>0))))&&t.getTouchParentScroll(e,n.parentNode,r,o)},this.domFocus=function(e){t.dom&&e&&t.dom.focus()},this.removeStartHandler=function(e){e.touches.length>1||(t.startPos={x:e.touches[0].clientX,y:e.touches[0].clientY})},this.removeMoveHandler=function(e){if(!(e.changedTouches.length>1)){var n=e.currentTarget,r=e.changedTouches[0].clientX-t.startPos.x,o=e.changedTouches[0].clientY-t.startPos.y;(n===t.maskDom||n===t.handlerDom||n===t.contentDom&&t.getTouchParentScroll(n,e.target,r,o))&&e.preventDefault()}},this.transitionEnd=function(e){Object(S.d)(e.target,S.f,t.transitionEnd),e.target.style.transition=""},this.defaultGetContainer=function(){if(M)return null;var e=document.createElement("div");return t.parent.appendChild(e),t.props.wrapperClassName&&(e.className=t.props.wrapperClassName),e}};e.a=N},function(t,e,n){"use strict";e.__esModule=!0;var r=n(28),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e,n){return e in t?(0,o.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){n(54);var r=n(1).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(9);r(r.S+r.F*!n(3),"Object",{defineProperty:n(2).f})},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){t.exports={default:n(57),__esModule:!0}},function(t,e,n){n(58),n(68),t.exports=n(25).f("iterator")},function(t,e,n){"use strict";var r=n(59)(!0);n(36)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(16),o=n(17);t.exports=function(t){return function(e,n){var i,a,s=String(o(e)),c=r(n),u=s.length;return c<0||c>=u?t?"":void 0:(i=s.charCodeAt(c),i<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):i:t?s.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},function(t,e,n){"use strict";var r=n(19),o=n(12),i=n(24),a={};n(5)(a,n(8)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(2),o=n(10),i=n(20);t.exports=n(3)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),s=a.length,c=0;s>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){var r=n(39);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(7),o=n(64),i=n(65);t.exports=function(t){return function(e,n,a){var s,c=r(e),u=o(c.length),f=i(a,u);if(t&&n!=n){for(;u>f;)if((s=c[f++])!=s)return!0}else for(;u>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(16),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(16),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(40),i=n(21)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){n(69);for(var r=n(0),o=n(5),i=n(18),a=n(8)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var u=s[c],f=r[u],l=f&&f.prototype;l&&!l[a]&&o(l,a,u),i[u]=i.Array}},function(t,e,n){"use strict";var r=n(70),o=n(71),i=n(18),a=n(7);t.exports=n(36)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(73),__esModule:!0}},function(t,e,n){n(74),n(79),n(80),n(81),t.exports=n(1).Symbol},function(t,e,n){"use strict";var r=n(0),o=n(4),i=n(3),a=n(9),s=n(37),c=n(75).KEY,u=n(11),f=n(22),l=n(24),p=n(14),d=n(8),h=n(25),m=n(26),y=n(76),v=n(77),b=n(10),E=n(6),g=n(40),O=n(7),_=n(15),C=n(12),S=n(19),T=n(78),w=n(43),M=n(41),N=n(2),x=n(20),P=w.f,A=N.f,k=T.f,D=r.Symbol,L=r.JSON,j=L&&L.stringify,I=d("_hidden"),R=d("toPrimitive"),U={}.propertyIsEnumerable,F=f("symbol-registry"),H=f("symbols"),W=f("op-symbols"),K=Object.prototype,G="function"==typeof D&&!!M.f,V=r.QObject,B=!V||!V.prototype||!V.prototype.findChild,X=i&&u(function(){return 7!=S(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(K,e);r&&delete K[e],A(t,e,n),r&&t!==K&&A(K,e,r)}:A,Y=function(t){var e=H[t]=S(D.prototype);return e._k=t,e},Q=G&&"symbol"==typeof D.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof D},q=function(t,e,n){return t===K&&q(W,e,n),b(t),e=_(e,!0),b(n),o(H,e)?(n.enumerable?(o(t,I)&&t[I][e]&&(t[I][e]=!1),n=S(n,{enumerable:C(0,!1)})):(o(t,I)||A(t,I,C(1,{})),t[I][e]=!0),X(t,e,n)):A(t,e,n)},Z=function(t,e){b(t);for(var n,r=y(e=O(e)),o=0,i=r.length;i>o;)q(t,n=r[o++],e[n]);return t},z=function(t,e){return void 0===e?S(t):Z(S(t),e)},J=function(t){var e=U.call(this,t=_(t,!0));return!(this===K&&o(H,t)&&!o(W,t))&&(!(e||!o(this,t)||!o(H,t)||o(this,I)&&this[I][t])||e)},$=function(t,e){if(t=O(t),e=_(e,!0),t!==K||!o(H,e)||o(W,e)){var n=P(t,e);return!n||!o(H,e)||o(t,I)&&t[I][e]||(n.enumerable=!0),n}},tt=function(t){for(var e,n=k(O(t)),r=[],i=0;n.length>i;)o(H,e=n[i++])||e==I||e==c||r.push(e);return r},et=function(t){for(var e,n=t===K,r=k(n?W:O(t)),i=[],a=0;r.length>a;)!o(H,e=r[a++])||n&&!o(K,e)||i.push(H[e]);return i};G||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===K&&e.call(W,n),o(this,I)&&o(this[I],t)&&(this[I][t]=!1),X(this,t,C(1,n))};return i&&B&&X(K,t,{configurable:!0,set:e}),Y(t)},s(D.prototype,"toString",function(){return this._k}),w.f=$,N.f=q,n(42).f=T.f=tt,n(27).f=J,M.f=et,i&&!n(13)&&s(K,"propertyIsEnumerable",J,!0),h.f=function(t){return Y(d(t))}),a(a.G+a.W+a.F*!G,{Symbol:D});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)d(nt[rt++]);for(var ot=x(d.store),it=0;ot.length>it;)m(ot[it++]);a(a.S+a.F*!G,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=D(t)},keyFor:function(t){if(!Q(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!G,"Object",{create:z,defineProperty:q,defineProperties:Z,getOwnPropertyDescriptor:$,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=u(function(){M.f(1)});a(a.S+a.F*at,"Object",{getOwnPropertySymbols:function(t){return M.f(g(t))}}),L&&a(a.S+a.F*(!G||u(function(){var t=D();return"[null]"!=j([t])||"{}"!=j({a:t})||"{}"!=j(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(E(e)||void 0!==t)&&!Q(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Q(e))return e}),r[1]=e,j.apply(L,r)}}),D.prototype[R]||n(5)(D.prototype,R,D.prototype.valueOf),l(D,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){var r=n(14)("meta"),o=n(6),i=n(4),a=n(2).f,s=0,c=Object.isExtensible||function(){return!0},u=!n(11)(function(){return c(Object.preventExtensions({}))}),f=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[r].w},d=function(t){return u&&h.NEED&&c(t)&&!i(t,r)&&f(t),t},h=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},function(t,e,n){var r=n(20),o=n(41),i=n(27);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,s=n(t),c=i.f,u=0;s.length>u;)c.call(t,a=s[u++])&&e.push(a);return e}},function(t,e,n){var r=n(39);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(7),o=n(42).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?s(t):o(r(t))}},function(t,e){},function(t,e,n){n(26)("asyncIterator")},function(t,e,n){n(26)("observable")},function(t,e,n){t.exports={default:n(83),__esModule:!0}},function(t,e,n){n(84),t.exports=n(1).Object.setPrototypeOf},function(t,e,n){var r=n(9);r(r.S,"Object",{setPrototypeOf:n(85).set})},function(t,e,n){var r=n(6),o=n(10),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(29)(Function.call,n(43).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){t.exports={default:n(87),__esModule:!0}},function(t,e,n){n(88);var r=n(1).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(9);r(r.S,"Object",{create:n(19)})},function(t,e,n){"use strict";function r(){}function o(){}var i=n(90);o.resetWarningCache=r,t.exports=function(){function t(t,e,n,r,o,a){if(a!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){var r,o;!function(){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)&&r.length){var a=n.apply(null,r);a&&t.push(a)}else if("object"===o)for(var s in r)i.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}var i={}.hasOwnProperty;void 0!==t&&t.exports?(n.default=n,t.exports=n):(r=[],void 0!==(o=function(){return n}.apply(e,r))&&(t.exports=o))}()},function(t,e,n){"use strict";var r=n(32),o=n.n(r),i=n(33),a=n.n(i),s=n(34),c=n.n(s),u=n(44),f=n.n(u),l=n(45),p=n.n(l),d=n(46),h=n.n(d),m=n(47),y=n.n(m),v=function(t){function e(){var t,n,r,i;o()(this,e);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return n=r=c()(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(s))),r.removeContainer=function(){r.container&&(h.a.unmountComponentAtNode(r.container),r.container.parentNode.removeChild(r.container),r.container=null)},r.renderComponent=function(t,e){var n=r.props,o=n.visible,i=n.getComponent,a=n.forceRender,s=n.getContainer,c=n.parent;(o||c._component||a)&&(r.container||(r.container=s()),h.a.unstable_renderSubtreeIntoContainer(c,i(t),r.container,function(){e&&e.call(this)}))},i=n,c()(r,i)}return f()(e,t),a()(e,[{key:"componentDidMount",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentDidUpdate",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentWillUnmount",value:function(){this.props.autoDestroy&&this.removeContainer()}},{key:"render",value:function(){return this.props.children({renderComponent:this.renderComponent,removeContainer:this.removeContainer})}}]),e}(p.a.Component);v.propTypes={autoMount:y.a.bool,autoDestroy:y.a.bool,visible:y.a.bool,forceRender:y.a.bool,parent:y.a.any,getComponent:y.a.func.isRequired,getContainer:y.a.func.isRequired,children:y.a.func.isRequired},v.defaultProps={autoMount:!0,autoDestroy:!0,forceRender:!1},e.a=v},function(t,e,n){"use strict";function r(t){if(t||void 0===o){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top=0,r.left=0,r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(e),document.body.appendChild(n);var i=e.offsetWidth;n.style.overflow="scroll";var a=e.offsetWidth;i===a&&(a=n.clientWidth),document.body.removeChild(n),o=i-a}return o}e.a=r;var o=void 0},function(t,e,n){"use strict";var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229};r.isTextModifyingKeyEvent=function(t){var e=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||e>=r.F1&&e<=r.F12)return!1;switch(e){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},r.isCharacterKey=function(t){if(t>=r.ZERO&&t<=r.NINE)return!0;if(t>=r.NUM_ZERO&&t<=r.NUM_MULTIPLY)return!0;if(t>=r.A&&t<=r.Z)return!0;if(-1!==window.navigation.userAgent.indexOf("WebKit")&&0===t)return!0;switch(t){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},e.a=r},function(t,e,n){"use strict";function r(t){return Array.isArray(t)?t:[t]}function o(t,e,n,r){t.addEventListener?t.addEventListener(e,n,r):t.attachEvent&&t.attachEvent("on"+e,n)}function i(t,e,n,r){t.removeEventListener?t.removeEventListener(e,n,r):t.attachEvent&&t.detachEvent("on"+e,n)}function a(t,e){var n=void 0;return n="function"==typeof t?t(e):t,Array.isArray(n)?2===n.length?n:[n[0],n[1]]:[n]}e.b=r,n.d(e,"g",function(){return c}),n.d(e,"f",function(){return u}),e.a=o,e.d=i,e.e=a,n.d(e,"c",function(){return f});var s={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},c=Object.keys(s).filter(function(t){if("undefined"==typeof document)return!1;var e=document.getElementsByTagName("html")[0];return t in(e?e.style:{})})[0],u=s[c],f=function(t){return!isNaN(parseFloat(t))&&isFinite(t)}}]).default});

@@ -378,4 +378,4 @@ import _defineProperty from 'babel-runtime/helpers/defineProperty';

var right = document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth ? getScrollBarSize(1) : 0;
if (!windowIsUndefined) {
var right = document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth ? getScrollBarSize(1) : 0;
_this4.levelDom.forEach(function (dom) {

@@ -382,0 +382,0 @@ if (_this4.isOpenChange || openTransition) {

@@ -27,3 +27,3 @@ // Type definitions for rc-drawer 1.9

ease?: string,
getContainer?: IStringOrHtmlElement | (() => IStringOrHtmlElement),
getContainer?: IStringOrHtmlElement | (() => IStringOrHtmlElement),
showMask?: boolean,

@@ -33,6 +33,6 @@ maskStyle?: React.CSSProperties,

afterVisibleChange?: ((open: boolean) => void),
onMaskClick?: ((e: MouseEvent) => void) | ((e: KeyboardEvent) => void),
onHandleClick?: ((e: MouseEvent) => void) | ((e: KeyboardEvent) => void),
onMaskClick?: ((e: MouseEvent | KeyboardEvent) => void),
onHandleClick?: ((e: MouseEvent | KeyboardEvent) => void),
}
export default class ReDrawer<T> extends React.Component<IProps<T>> { }

@@ -420,4 +420,4 @@ 'use strict';

var right = document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth ? (0, _getScrollBarSize2['default'])(1) : 0;
if (!windowIsUndefined) {
var right = document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth ? (0, _getScrollBarSize2['default'])(1) : 0;
_this4.levelDom.forEach(function (dom) {

@@ -424,0 +424,0 @@ if (_this4.isOpenChange || openTransition) {

{
"name": "rc-drawer",
"version": "1.9.7",
"version": "1.9.8",
"description": "drawer component for react",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc