From b9c235d52de9232da6b4cc3d000b4d63dcd95b34 Mon Sep 17 00:00:00 2001 From: Matt Fairbrass Date: Mon, 19 Aug 2019 14:02:39 +1000 Subject: [PATCH] RC v1.0.1 (#7) --- demo/assets/css/index.css | 2 -- demo/assets/css/index.css.map | 1 - demo/index.e11243f37f4f97a4c157.css | 7 +++++++ demo/index.e11243f37f4f97a4c157.css.map | 1 + demo/index.js | 2 +- demo/index.js.gz | Bin 4258 -> 5164 bytes demo/index.js.map | 2 +- demo/vendor.js | 14 +++++++------- demo/vendor.js.gz | Bin 70716 -> 70361 bytes demo/vendor.js.map | 2 +- index.html | 2 +- lib/react-middle-truncate.js | 6 +++--- lib/react-middle-truncate.js.map | 2 +- 13 files changed, 23 insertions(+), 18 deletions(-) delete mode 100644 demo/assets/css/index.css delete mode 100644 demo/assets/css/index.css.map create mode 100644 demo/index.e11243f37f4f97a4c157.css create mode 100644 demo/index.e11243f37f4f97a4c157.css.map diff --git a/demo/assets/css/index.css b/demo/assets/css/index.css deleted file mode 100644 index 54412b4..0000000 --- a/demo/assets/css/index.css +++ /dev/null @@ -1,2 +0,0 @@ -html{line-height:1.15;-webkit-text-size-adjust:100%}h1{font-size:2em;margin:.67em 0}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}html{font-size:62.5%}#root,body,html{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100vh}body{background-color:#393d43;margin:0;padding:0;font-family:sans-serif;font-size:1.6rem;-webkit-touch-callout:none;-webkit-font-smoothing:antialiased}body *{-webkit-tap-highlight-color:rgba(255,255,255,0)}input[type=range]{-webkit-appearance:none;width:100%;background:transparent}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none}input[type=range]:focus{outline:none}input[type=range]::-ms-track{width:100%;cursor:pointer;background:transparent;border-color:transparent;color:transparent}._8ovzY{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex:1;flex:1}._1lIK_,._2F601,._8ovzY{display:-webkit-box;display:-ms-flexbox;display:flex}._1lIK_,._2F601{-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:2rem}._1lIK_{background:rgba(0,0,0,.4);-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;padding:2rem}._16nLe{-ms-flex:1;flex:1}._2F601,._16nLe{-webkit-box-flex:1}._2F601{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-ms-flex:1;flex:1}._1kfb5,._3x3CJ{display:block;text-align:center}._3x3CJ{color:#fff;font-size:4rem;font-weight:700;max-width:100vw;margin-top:14px;position:relative}._3x3CJ:before{content:"";display:block;-webkit-box-sizing:border-box;box-sizing:border-box;height:20px;position:absolute;top:-24px;left:0;right:0;border-top:4px solid #fbed6b;border-left:4px solid #fbed6b;border-right:4px solid #fbed6b}._1kfb5{padding:2rem}._1kfb5:last-child{margin-top:6rem}._3Y1l9{font-size:2rem;color:#fbed6b;padding:1rem;background:#393d43;position:relative;top:33px;z-index:2}._2uh8L{color:#fff;font-size:1.6rem;padding:4rem 4rem 0;text-align:justify}._3ae9K{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;margin-bottom:1em;text-align:left}._3ae9K+._3ae9K{margin-left:2rem}._2x0ZM,._3yn8S{-webkit-transition:all .2s;transition:all .2s;-ms-touch-action:manipulation;touch-action:manipulation;color:#fff}._3yn8S{background-color:transparent;font-size:2rem;padding-bottom:4px;color:#fff;border:none;border-bottom:4px solid #fff}._3yn8S:placeholder-shown+._2x0ZM{cursor:text;max-width:66.66%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:translateY(2.125rem) scale(1.5);transform:translateY(2.125rem) scale(1.5)}._3yn8S::-webkit-input-placeholder{opacity:0;-webkit-transition:inherit;transition:inherit;font-size:1.4rem}._3yn8S:-ms-input-placeholder,._3yn8S::-ms-input-placeholder{opacity:0;-webkit-transition:inherit;transition:inherit;font-size:1.4rem}._3yn8S::placeholder{opacity:0;-webkit-transition:inherit;transition:inherit;font-size:1.4rem}._3yn8S:focus{outline:none;border-bottom-color:#fbed6b;-webkit-transition:all .1s ease-in;transition:all .1s ease-in}._3yn8S:focus::-webkit-input-placeholder{color:hsla(0,0%,100%,.7);opacity:1}._3yn8S:focus:-ms-input-placeholder,._3yn8S:focus::-ms-input-placeholder{color:hsla(0,0%,100%,.7);opacity:1}._3yn8S:focus::placeholder{color:hsla(0,0%,100%,.7);opacity:1}._3yn8S:focus+._2x0ZM,._3yn8S:not(:placeholder-shown)+._2x0ZM{-webkit-transform:translate(0) scale(1);transform:translate(0) scale(1);cursor:pointer;color:#fbed6b}._24kiK::-webkit-slider-thumb{-webkit-appearance:none;border:1px solid #000;height:36px;width:16px;border-radius:3px;background:#fff;cursor:pointer;margin-top:-14px;-webkit-box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d}._24kiK::-moz-range-thumb{box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;border:1px solid #000;height:36px;width:16px;border-radius:3px;background:#fff;cursor:pointer}._24kiK::-ms-thumb{box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;border:1px solid #000;height:36px;width:16px;border-radius:3px;background:#fff;cursor:pointer}._24kiK::-webkit-slider-runnable-track{width:100%;height:8.4px;cursor:pointer;-webkit-box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;background:#fbed6b;border-radius:1.3px;border:.2px solid #010101}._24kiK::-moz-range-track{width:100%;height:8.4px;cursor:pointer;box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;background:#fbed6b;border-radius:1.3px;border:.2px solid #010101}._24kiK::-ms-track{width:100%;height:8.4px;cursor:pointer;background:transparent;border-color:transparent;border-width:16px 0;color:transparent}._24kiK::-ms-fill-lower{background:#2a6495}._24kiK:-ms-fill-upper,._24kiK::-ms-fill-lower{border:.2px solid #010101;border-radius:2.6px;box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d}._24kiK:-ms-fill-upper{background:#fbed6b}._24kiK:focus::-webkit-slider-runnable-track{background:#fbed6b}._24kiK:focus::-ms-fill-lower{background:#fbed6b}._24kiK:focus::-ms-fill-upper{background:#367ebd} -/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/demo/assets/css/index.css.map b/demo/assets/css/index.css.map deleted file mode 100644 index 821d7f7..0000000 --- a/demo/assets/css/index.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://ReactMiddleTruncation/./src/demo/assets/scss/index.scss","webpack://ReactMiddleTruncation/./src/demo/containers/app/app.scss","webpack://ReactMiddleTruncation/./src/demo/components/input/input.scss","webpack://ReactMiddleTruncation/./src/demo/components/range/range.scss"],"names":[],"mappings":"AAiIA,KACE,iBAEA,6BAA+B,CAQjC,GACE,cACA,cAAiB,CAGnB,GACE,+BAAwB,uBAExB,SAEA,gBAAkB,CAIpB,IACE,gCAEA,aAAe,CAIjB,EACE,4BAA8B,CAGhC,YACE,mBAEA,0BAEA,yCAAkC,iCAIpC,SAEE,kBAAoB,CAGtB,cAGE,gCAEA,aAAe,CAIjB,MACE,aAAe,CAGjB,QAEE,cACA,cACA,kBACA,uBAAyB,CAG3B,IACE,aAAgB,CAGlB,IACE,SAAY,CAGd,IACE,iBAAmB,CAGrB,sCAKE,oBAEA,eAEA,iBAEA,QAAU,CAIZ,aAGE,gBAAkB,CAGpB,cAGE,mBAAqB,CAGvB,gDAIE,yBAA2B,CAG7B,wHAIE,kBACA,SAAW,CAGb,4GAIE,6BAA+B,CAGjC,SACE,0BAA+B,CAGjC,OACE,8BAAuB,sBAEvB,cAEA,cAEA,eAEA,UAEA,kBAAoB,CAItB,SACE,uBAAyB,CAG3B,SACE,aAAe,CAGjB,6BAEE,8BAAuB,sBAEvB,SAAW,CAIb,kFAEE,WAAa,CAGf,cACE,6BAEA,mBAAqB,CAIvB,yCACE,uBAAyB,CAG3B,6BACE,0BAEA,YAAc,CAIhB,QACE,aAAe,CAGjB,QACE,iBAAmB,CAOrB,kBACE,YAAc,C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,yEAFC,yBACA,SAAW,CACZ,2BAFC,yBACA,SAAW,CAGb,8DAEE,wCAAoC,gCACpC,eACA,aAAe,CC1DjB,8BACE,wBACA,sBACA,YACA,WACA,kBACA,gBACA,eACA,iBACA,oDAAqD,4CAGvD,0BACE,4CACA,sBACA,YACA,WACA,kBACA,gBACA,cAAgB,CAGlB,mBACE,4CACA,sBACA,YACA,WACA,kBACA,gBACA,cAAgB,CAGlB,uCACE,WACA,aACA,eACA,oDAAqD,4CACrD,mBACA,oBACA,yBAA4B,CAG9B,0BACE,WACA,aACA,eACA,4CACA,mBACA,oBACA,yBAA4B,CAG9B,mBACE,WACA,aACA,eACA,uBACA,yBACA,oBACA,iBAAmB,CAGrB,wBACE,kBAAoB,CAMtB,+CALE,0BACA,oBACA,2CAAqD,CAQtD,uBAJC,kBAAoB,CAMtB,6CACE,kBAAoB,CAGtB,8BACE,kBAAoB,CAGtB,8BACE,kBAAoB","file":"assets/css/index.css","sourcesContent":[":global {\n /*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */\n /* Document\n ========================================================================== */\n /**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n /* Sections\n ========================================================================== */\n /**\n * Remove the margin in all browsers.\n */\n /**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n /* Grouping content\n ========================================================================== */\n /**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n /**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n /* Text-level semantics\n ========================================================================== */\n /**\n * Remove the gray background on active links in IE 10.\n */\n /**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n /**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n /**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n /**\n * Add the correct font size in all browsers.\n */\n /**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n /* Embedded content\n ========================================================================== */\n /**\n * Remove the border on images inside links in IE 10.\n */\n /* Forms\n ========================================================================== */\n /**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n /**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n /**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n /**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n /**\n * Remove the inner border and padding in Firefox.\n */\n /**\n * Restore the focus styles unset by the previous rule.\n */\n /**\n * Correct the padding in Firefox.\n */\n /**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n /**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n /**\n * Remove the default vertical scrollbar in IE 10+.\n */\n /**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n /**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n /**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n /**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n /**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n /* Interactive\n ========================================================================== */\n /*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n /*\n * Add the correct display in all browsers.\n */\n /* Misc\n ========================================================================== */\n /**\n * Add the correct display in IE 10+.\n */\n /**\n * Add the correct display in IE 10.\n */\n}\n\n:global html {\n line-height: 1.15;\n /* 1 */\n -webkit-text-size-adjust: 100%;\n /* 2 */\n}\n\n:global body {\n margin: 0;\n}\n\n:global h1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n:global hr {\n box-sizing: content-box;\n /* 1 */\n height: 0;\n /* 1 */\n overflow: visible;\n /* 2 */\n}\n\n:global pre {\n font-family: monospace, monospace;\n /* 1 */\n font-size: 1em;\n /* 2 */\n}\n\n:global a {\n background-color: transparent;\n}\n\n:global abbr[title] {\n border-bottom: none;\n /* 1 */\n text-decoration: underline;\n /* 2 */\n text-decoration: underline dotted;\n /* 2 */\n}\n\n:global b,\n:global strong {\n font-weight: bolder;\n}\n\n:global code,\n:global kbd,\n:global samp {\n font-family: monospace, monospace;\n /* 1 */\n font-size: 1em;\n /* 2 */\n}\n\n:global small {\n font-size: 80%;\n}\n\n:global sub,\n:global sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\n:global sub {\n bottom: -0.25em;\n}\n\n:global sup {\n top: -0.5em;\n}\n\n:global img {\n border-style: none;\n}\n\n:global button,\n:global input,\n:global optgroup,\n:global select,\n:global textarea {\n font-family: inherit;\n /* 1 */\n font-size: 100%;\n /* 1 */\n line-height: 1.15;\n /* 1 */\n margin: 0;\n /* 2 */\n}\n\n:global button,\n:global input {\n /* 1 */\n overflow: visible;\n}\n\n:global button,\n:global select {\n /* 1 */\n text-transform: none;\n}\n\n:global button,\n:global [type=\"button\"],\n:global [type=\"reset\"],\n:global [type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n:global button::-moz-focus-inner,\n:global [type=\"button\"]::-moz-focus-inner,\n:global [type=\"reset\"]::-moz-focus-inner,\n:global [type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n:global button:-moz-focusring,\n:global [type=\"button\"]:-moz-focusring,\n:global [type=\"reset\"]:-moz-focusring,\n:global [type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n:global fieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n:global legend {\n box-sizing: border-box;\n /* 1 */\n color: inherit;\n /* 2 */\n display: table;\n /* 1 */\n max-width: 100%;\n /* 1 */\n padding: 0;\n /* 3 */\n white-space: normal;\n /* 1 */\n}\n\n:global progress {\n vertical-align: baseline;\n}\n\n:global textarea {\n overflow: auto;\n}\n\n:global [type=\"checkbox\"],\n:global [type=\"radio\"] {\n box-sizing: border-box;\n /* 1 */\n padding: 0;\n /* 2 */\n}\n\n:global [type=\"number\"]::-webkit-inner-spin-button,\n:global [type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n:global [type=\"search\"] {\n -webkit-appearance: textfield;\n /* 1 */\n outline-offset: -2px;\n /* 2 */\n}\n\n:global [type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n:global ::-webkit-file-upload-button {\n -webkit-appearance: button;\n /* 1 */\n font: inherit;\n /* 2 */\n}\n\n:global details {\n display: block;\n}\n\n:global summary {\n display: list-item;\n}\n\n:global template {\n display: none;\n}\n\n:global [hidden] {\n display: none;\n}\n\n:global html {\n font-size: 62.5%;\n}\n\n:global html,\n:global body,\n:global #root {\n display: flex;\n flex: 1;\n flex-direction: column;\n height: 100vh;\n}\n\n:global body {\n background-color: #393D43;\n margin: 0;\n padding: 0;\n font-family: sans-serif;\n font-size: 1.6rem;\n -webkit-touch-callout: none;\n -webkit-font-smoothing: antialiased;\n}\n\n:global body * {\n -webkit-tap-highlight-color: rgba(255, 255, 255, 0);\n}\n\n:global input[type=range] {\n -webkit-appearance: none;\n width: 100%;\n background: transparent;\n}\n\n:global input[type=range]::-webkit-slider-thumb {\n -webkit-appearance: none;\n}\n\n:global input[type=range]:focus {\n outline: none;\n}\n\n:global input[type=range]::-ms-track {\n width: 100%;\n cursor: pointer;\n background: transparent;\n border-color: transparent;\n color: transparent;\n}\n",".root {\n display: flex;\n flex-direction: column;\n flex: 1;\n}\n\n.header,\n.section {\n display: flex;\n align-items: center;\n padding: 2rem;\n}\n\n.header {\n background: rgba(0, 0, 0, 0.4);\n flex-direction: row;\n justify-content: flex-start;\n padding: 2rem;\n}\n\n.header-input {\n flex: 1;\n}\n\n.section {\n flex-direction: column;\n justify-content: center;\n flex: 1;\n}\n\n.demo,\n.controls {\n display: block;\n text-align: center;\n}\n\n.demo {\n color: #fff;\n font-size: 4rem;\n font-weight: bold;\n max-width: 100vw;\n margin-top: 14px;\n position: relative;\n}\n\n.demo::before {\n content: '';\n display: block;\n box-sizing: border-box;\n height: 20px;\n position: absolute;\n top: -24px;\n left: 0;\n right: 0;\n border-top: 4px solid #FBED6B;\n border-left: 4px solid #FBED6B;\n border-right: 4px solid #FBED6B;\n}\n\n.controls {\n padding: 2rem;\n}\n\n.controls:last-child {\n margin-top: 6rem;\n}\n\n.widthText {\n font-size: 2rem;\n color: #FBED6B;\n padding: 1rem;\n background: #393D43;\n position: relative;\n top: 33px;\n z-index: 2;\n}\n\n.instructions {\n color: #fff;\n font-size: 1.6rem;\n padding: 4rem 4rem 0 4rem;\n text-align: justify;\n}\n",".component {\n display: flex;\n flex-direction: column-reverse;\n margin-bottom: 1em;\n text-align: left;\n}\n\n.component + .component {\n margin-left: 2rem;\n}\n\n.input,\n.label {\n transition: all 0.2s;\n touch-action: manipulation;\n color: #fff;\n}\n\n.input {\n background-color: transparent;\n font-size: 2rem;\n padding-bottom: 4px;\n color: #fff;\n border: none;\n border-bottom: 4px solid #fff;\n}\n\n.input:placeholder-shown + .label {\n cursor: text;\n max-width: 66.66%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n transform-origin: left bottom;\n transform: translate(0, 2.125rem) scale(1.5);\n}\n\n.input::placeholder {\n opacity: 0;\n transition: inherit;\n font-size: 1.4rem;\n}\n\n.input:focus {\n outline: none;\n border-bottom-color: #FBED6B;\n transition: all ease-in 100ms;\n}\n\n.input:focus::placeholder {\n color: rgba(255, 255, 255, 0.7);\n opacity: 1;\n}\n\n.input:not(:placeholder-shown) + .label,\n.input:focus + .label {\n transform: translate(0, 0) scale(1);\n cursor: pointer;\n color: #FBED6B;\n}\n",".component::-webkit-slider-thumb {\n -webkit-appearance: none;\n border: 1px solid #000000;\n height: 36px;\n width: 16px;\n border-radius: 3px;\n background: #ffffff;\n cursor: pointer;\n margin-top: -14px;\n box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;\n}\n\n.component::-moz-range-thumb {\n box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;\n border: 1px solid #000000;\n height: 36px;\n width: 16px;\n border-radius: 3px;\n background: #ffffff;\n cursor: pointer;\n}\n\n.component::-ms-thumb {\n box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;\n border: 1px solid #000000;\n height: 36px;\n width: 16px;\n border-radius: 3px;\n background: #ffffff;\n cursor: pointer;\n}\n\n.component::-webkit-slider-runnable-track {\n width: 100%;\n height: 8.4px;\n cursor: pointer;\n box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;\n background: #FBED6B;\n border-radius: 1.3px;\n border: 0.2px solid #010101;\n}\n\n.component::-moz-range-track {\n width: 100%;\n height: 8.4px;\n cursor: pointer;\n box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;\n background: #FBED6B;\n border-radius: 1.3px;\n border: 0.2px solid #010101;\n}\n\n.component::-ms-track {\n width: 100%;\n height: 8.4px;\n cursor: pointer;\n background: transparent;\n border-color: transparent;\n border-width: 16px 0;\n color: transparent;\n}\n\n.component::-ms-fill-lower {\n background: #2a6495;\n border: 0.2px solid #010101;\n border-radius: 2.6px;\n box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;\n}\n\n.component:-ms-fill-upper {\n background: #FBED6B;\n border: 0.2px solid #010101;\n border-radius: 2.6px;\n box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;\n}\n\n.component:focus::-webkit-slider-runnable-track {\n background: #FBED6B;\n}\n\n.component:focus::-ms-fill-lower {\n background: #FBED6B;\n}\n\n.component:focus::-ms-fill-upper {\n background: #367ebd;\n}\n"],"sourceRoot":""} \ No newline at end of file diff --git a/demo/index.e11243f37f4f97a4c157.css b/demo/index.e11243f37f4f97a4c157.css new file mode 100644 index 0000000..a908762 --- /dev/null +++ b/demo/index.e11243f37f4f97a4c157.css @@ -0,0 +1,7 @@ +{ + /*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */}html{line-height:1.15;-webkit-text-size-adjust:100%}h1{font-size:2em;margin:.67em 0}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html{font-size:62.5%}#root,body,html{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100vh}body{background-color:#393d43;margin:0;padding:0;font-family:sans-serif;font-size:1.6rem;-webkit-touch-callout:none;-webkit-font-smoothing:antialiased}body *{-webkit-tap-highlight-color:rgba(255,255,255,0)}input[type=range]{-webkit-appearance:none;width:100%;background:transparent}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none}input[type=range]:focus{outline:none}input[type=range]::-ms-track{width:100%;cursor:pointer;background:transparent;border-color:transparent;color:transparent} +._8ovzY{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex:1;flex:1}._1lIK_,._2F601{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:2rem}._1lIK_{background:rgba(0,0,0,.4);-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;padding:2rem}._16nLe{-webkit-box-flex:1;-ms-flex:1;flex:1}._2F601{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-flex:1;-ms-flex:1;flex:1}._1kfb5,._3x3CJ{display:block;text-align:center}._3x3CJ{color:#fff;font-size:4rem;font-weight:700;max-width:100vw;margin-top:14px;position:relative}._3x3CJ:before{content:"";display:block;-webkit-box-sizing:border-box;box-sizing:border-box;height:20px;position:absolute;top:-24px;left:0;right:0;border-top:4px solid #fbed6b;border-left:4px solid #fbed6b;border-right:4px solid #fbed6b}._1kfb5{padding:2rem}._1kfb5:last-child{margin-top:6rem}._3Y1l9{font-size:2rem;color:#fbed6b;padding:1rem;background:#393d43;position:relative;top:33px;z-index:2}._2uh8L{color:#fff;font-size:1.6rem;padding:4rem 4rem 0;text-align:justify} +._3ae9K{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;margin-bottom:1em;text-align:left}._3ae9K+._3ae9K{margin-left:2rem}._3yn8S,._2x0ZM{-webkit-transition:all .2s;transition:all .2s;-ms-touch-action:manipulation;touch-action:manipulation;color:#fff}._3yn8S{background-color:transparent;font-size:2rem;padding-bottom:4px;color:#fff;border:none;border-bottom:4px solid #fff}._3yn8S:placeholder-shown+._2x0ZM{cursor:text;max-width:66.66%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:translateY(2.125rem) scale(1.5);transform:translateY(2.125rem) scale(1.5)}._3yn8S::-webkit-input-placeholder{opacity:0;-webkit-transition:inherit;transition:inherit;font-size:1.4rem}._3yn8S:-ms-input-placeholder{opacity:0;-webkit-transition:inherit;transition:inherit;font-size:1.4rem}._3yn8S::-ms-input-placeholder{opacity:0;-webkit-transition:inherit;transition:inherit;font-size:1.4rem}._3yn8S::placeholder{opacity:0;-webkit-transition:inherit;transition:inherit;font-size:1.4rem}._3yn8S:focus{outline:none;border-bottom-color:#fbed6b;-webkit-transition:all .1s ease-in;transition:all .1s ease-in}._3yn8S:focus::-webkit-input-placeholder{color:hsla(0,0%,100%,.7);opacity:1}._3yn8S:focus:-ms-input-placeholder{color:hsla(0,0%,100%,.7);opacity:1}._3yn8S:focus::-ms-input-placeholder{color:hsla(0,0%,100%,.7);opacity:1}._3yn8S:focus::placeholder{color:hsla(0,0%,100%,.7);opacity:1}._3yn8S:focus+._2x0ZM,._3yn8S:not(:placeholder-shown)+._2x0ZM{-webkit-transform:translate(0) scale(1);transform:translate(0) scale(1);cursor:pointer;color:#fbed6b} +._24kiK::-webkit-slider-thumb{-webkit-appearance:none;border:1px solid #000;height:36px;width:16px;border-radius:3px;background:#fff;cursor:pointer;margin-top:-14px;-webkit-box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d}._24kiK::-moz-range-thumb{box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;border:1px solid #000;height:36px;width:16px;border-radius:3px;background:#fff;cursor:pointer}._24kiK::-ms-thumb{box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;border:1px solid #000;height:36px;width:16px;border-radius:3px;background:#fff;cursor:pointer}._24kiK::-webkit-slider-runnable-track{width:100%;height:8.4px;cursor:pointer;-webkit-box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;background:#fbed6b;border-radius:1.3px;border:.2px solid #010101}._24kiK::-moz-range-track{width:100%;height:8.4px;cursor:pointer;box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;background:#fbed6b;border-radius:1.3px;border:.2px solid #010101}._24kiK::-ms-track{width:100%;height:8.4px;cursor:pointer;background:transparent;border-color:transparent;border-width:16px 0;color:transparent}._24kiK::-ms-fill-lower{background:#2a6495}._24kiK:-ms-fill-upper,._24kiK::-ms-fill-lower{border:.2px solid #010101;border-radius:2.6px;box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d}._24kiK:-ms-fill-upper{background:#fbed6b}._24kiK:focus::-webkit-slider-runnable-track{background:#fbed6b}._24kiK:focus::-ms-fill-lower{background:#fbed6b}._24kiK:focus::-ms-fill-upper{background:#367ebd} + +/*# sourceMappingURL=index.e11243f37f4f97a4c157.css.map*/ \ No newline at end of file diff --git a/demo/index.e11243f37f4f97a4c157.css.map b/demo/index.e11243f37f4f97a4c157.css.map new file mode 100644 index 0000000..ce9a62d --- /dev/null +++ b/demo/index.e11243f37f4f97a4c157.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://ReactMiddleTruncation/./src/demo/assets/scss/index.scss","webpack://ReactMiddleTruncation/./node_modules/normalize.css/normalize.css","webpack://ReactMiddleTruncation/index.scss","webpack://ReactMiddleTruncation/./src/demo/containers/app/app.scss","webpack://ReactMiddleTruncation/app.scss","webpack://ReactMiddleTruncation/./src/demo/containers/app/_config.scss","webpack://ReactMiddleTruncation/./src/demo/components/input/input.scss","webpack://ReactMiddleTruncation/input.scss","webpack://ReactMiddleTruncation/./src/demo/components/input/_config.scss","webpack://ReactMiddleTruncation/./src/demo/components/range/range.scss","webpack://ReactMiddleTruncation/range.scss","webpack://ReactMiddleTruncation/./src/demo/components/range/_config.scss"],"names":[],"mappings":"AAAA;ECAA,4EC+HA,CF/HA,KCWE,gBAAiB,CACjB,6BC0HF,CFtIA,GCgCE,aAAc,CACd,cC8GF,CF/IA,GC6CE,8BAAuB,CAAvB,sBAAuB,CACvB,QAAS,CACT,gBCyGF,CFxJA,ICwDE,+BAAiC,CACjC,aCsGF,CF/JA,ECoEE,4BC+FF,CFnKA,YC6EE,kBAAmB,CACnB,yBAA0B,CAC1B,wCAAiC,CAAjC,gCC6FF,CF5KA,SCwFE,kBCyFF,CFjLA,cCmGE,+BAAiC,CACjC,aCsFF,CF1LA,MC4GE,aCkFF,CF9LA,QCsHE,aAAc,CACd,aAAc,CACd,iBAAkB,CAClB,uBC6EF,CFtMA,IC6HE,aC6EF,CF1MA,ICiIE,SC6EF,CF9MA,IC4IE,iBCsEF,CFlNA,sCC4JE,mBAAoB,CACpB,cAAe,CACf,gBAAiB,CACjB,QCkEF,CFjOA,aCyKE,gBC8DF,CFvOA,cCmLE,mBC0DF,CF7OA,gDC8LE,yBCsDF,CFpPA,wHCyME,iBAAkB,CAClB,SCkDF,CF5PA,4GCqNE,6BC8CF,CFnQA,SC6NE,0BC0CF,CFvQA,OCwOE,6BAAsB,CAAtB,qBAAsB,CACtB,aAAc,CACd,aAAc,CACd,cAAe,CACf,SAAU,CACV,kBCyCF,CFtRA,SCqPE,uBCqCF,CF1RA,SC6PE,aCiCF,CF9RA,6BCuQE,6BAAsB,CAAtB,qBAAsB,CACtB,SC8BF,CFtSA,kFCiRE,WC0BF,CF3SA,cC0RE,4BAA6B,CAC7B,mBCuBF,CFlTA,yCCm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CD3BA,yCAkCM,wBErDsB,CFsDtB,SCHN,CDhCA,oCAkCM,wBErDsB,CFsDtB,SCHN,CDhCA,qCAkCM,wBErDsB,CFsDtB,SCHN,CDhCA,2BAkCM,wBErDsB,CFsDtB,SCHN,CDhCA,8DA4CI,uCAAmC,CAAnC,+BAAmC,CACnC,cAAe,CACf,aCPJ,C;AEzDA,8BAGI,uBAAwB,CACxB,qBAAyB,CACzB,WAAY,CACZ,UAAW,CACX,iBAAkB,CAClB,eAAmB,CACnB,cAAe,CACf,gBAAiB,CACjB,mDAAoD,CAApD,2CCHJ,CDRA,0BAeI,2CAAoD,CACpD,qBAAyB,CACzB,WAAY,CACZ,UAAW,CACX,iBAAkB,CAClB,eAAmB,CACnB,cCHJ,CDlBA,mBAyBI,2CAAoD,CACpD,qBAAyB,CACzB,WAAY,CACZ,UAAW,CACX,iBAAkB,CAClB,eAAmB,CACnB,cCHJ,CD5BA,uCAqCI,UAAW,CACX,YAAa,CACb,cAAe,CACf,mDAAoD,CAApD,2CAAoD,CACpD,kBE3CyB,CF4CzB,mBAAoB,CACpB,yBCLJ,CDtCA,0BA+CI,UAAW,CACX,YAAa,CACb,cAAe,CACf,2CAAoD,CACpD,kBErDyB,CFsDzB,mBAAoB,CACpB,yBCLJ,CDhDA,mBAyDI,UAAW,CACX,YAAa,CACb,cAAe,CACf,sBAAuB,CACvB,wBAAyB,CACzB,mBAAoB,CACpB,iBCLJ,CD1DA,wBAmEI,kBCFJ,CDjEA,+CAoEI,yBAA2B,CAC3B,mBAAoB,CACpB,2CCEJ,CDxEA,uBA0EI,kBCFJ,CDxEA,6CAkFM,kBCNN,CD5EA,8BAsFM,kBCNN,CDhFA,8BA0FM,kBCNN,C","file":"index.e11243f37f4f97a4c157.css","sourcesContent":[":global {\n @import \"~normalize.css\";\n\n // Set the base font size to 62.5% so that rem units for font-size scale like so:\n // 1rem = 10px, 1.1rem = 11px, 1.2rem = 12px, ... 2rem = 20px etc..\n html {\n font-size: 62.5%;\n }\n\n html,\n body,\n #root {\n display: flex;\n flex: 1;\n flex-direction: column;\n height: 100vh;\n }\n\n body {\n background-color: #393D43;\n margin: 0;\n padding: 0;\n font-family: sans-serif;\n font-size: 1.6rem;\n -webkit-touch-callout: none;\n -webkit-font-smoothing: antialiased;\n\n * {\n -webkit-tap-highlight-color: rgba(#fff, 0);\n }\n }\n\n // Reset the input range styles\n input[type=range] {\n -webkit-appearance: none; // Hides the slider so that custom slider can be made\n width: 100%; // Specific width is required for Firefox.\n background: transparent; // Otherwise white in Chrome\n }\n\n input[type=range]::-webkit-slider-thumb {\n -webkit-appearance: none;\n }\n\n input[type=range]:focus {\n outline: none; // Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though.\n }\n\n input[type=range]::-ms-track {\n width: 100%;\n cursor: pointer;\n\n // Hides the slider so custom styles can be added\n background: transparent;\n border-color: transparent;\n color: transparent;\n }\n}\n","/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput { /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect { /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n",":global {\n /*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */\n /* Document\n ========================================================================== */\n /**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n /* Sections\n ========================================================================== */\n /**\n * Remove the margin in all browsers.\n */\n /**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n /* Grouping content\n ========================================================================== */\n /**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n /**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n /* Text-level semantics\n ========================================================================== */\n /**\n * Remove the gray background on active links in IE 10.\n */\n /**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n /**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n /**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n /**\n * Add the correct font size in all browsers.\n */\n /**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n /* Embedded content\n ========================================================================== */\n /**\n * Remove the border on images inside links in IE 10.\n */\n /* Forms\n ========================================================================== */\n /**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n /**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n /**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n /**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n /**\n * Remove the inner border and padding in Firefox.\n */\n /**\n * Restore the focus styles unset by the previous rule.\n */\n /**\n * Correct the padding in Firefox.\n */\n /**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n /**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n /**\n * Remove the default vertical scrollbar in IE 10+.\n */\n /**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n /**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n /**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n /**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n /**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n /* Interactive\n ========================================================================== */\n /*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n /*\n * Add the correct display in all browsers.\n */\n /* Misc\n ========================================================================== */\n /**\n * Add the correct display in IE 10+.\n */\n /**\n * Add the correct display in IE 10.\n */\n}\n\n:global html {\n line-height: 1.15;\n /* 1 */\n -webkit-text-size-adjust: 100%;\n /* 2 */\n}\n\n:global body {\n margin: 0;\n}\n\n:global h1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n:global hr {\n box-sizing: content-box;\n /* 1 */\n height: 0;\n /* 1 */\n overflow: visible;\n /* 2 */\n}\n\n:global pre {\n font-family: monospace, monospace;\n /* 1 */\n font-size: 1em;\n /* 2 */\n}\n\n:global a {\n background-color: transparent;\n}\n\n:global abbr[title] {\n border-bottom: none;\n /* 1 */\n text-decoration: underline;\n /* 2 */\n text-decoration: underline dotted;\n /* 2 */\n}\n\n:global b,\n:global strong {\n font-weight: bolder;\n}\n\n:global code,\n:global kbd,\n:global samp {\n font-family: monospace, monospace;\n /* 1 */\n font-size: 1em;\n /* 2 */\n}\n\n:global small {\n font-size: 80%;\n}\n\n:global sub,\n:global sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\n:global sub {\n bottom: -0.25em;\n}\n\n:global sup {\n top: -0.5em;\n}\n\n:global img {\n border-style: none;\n}\n\n:global button,\n:global input,\n:global optgroup,\n:global select,\n:global textarea {\n font-family: inherit;\n /* 1 */\n font-size: 100%;\n /* 1 */\n line-height: 1.15;\n /* 1 */\n margin: 0;\n /* 2 */\n}\n\n:global button,\n:global input {\n /* 1 */\n overflow: visible;\n}\n\n:global button,\n:global select {\n /* 1 */\n text-transform: none;\n}\n\n:global button,\n:global [type=\"button\"],\n:global [type=\"reset\"],\n:global [type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n:global button::-moz-focus-inner,\n:global [type=\"button\"]::-moz-focus-inner,\n:global [type=\"reset\"]::-moz-focus-inner,\n:global [type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n:global button:-moz-focusring,\n:global [type=\"button\"]:-moz-focusring,\n:global [type=\"reset\"]:-moz-focusring,\n:global [type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n:global fieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n:global legend {\n box-sizing: border-box;\n /* 1 */\n color: inherit;\n /* 2 */\n display: table;\n /* 1 */\n max-width: 100%;\n /* 1 */\n padding: 0;\n /* 3 */\n white-space: normal;\n /* 1 */\n}\n\n:global progress {\n vertical-align: baseline;\n}\n\n:global textarea {\n overflow: auto;\n}\n\n:global [type=\"checkbox\"],\n:global [type=\"radio\"] {\n box-sizing: border-box;\n /* 1 */\n padding: 0;\n /* 2 */\n}\n\n:global [type=\"number\"]::-webkit-inner-spin-button,\n:global [type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n:global [type=\"search\"] {\n -webkit-appearance: textfield;\n /* 1 */\n outline-offset: -2px;\n /* 2 */\n}\n\n:global [type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n:global ::-webkit-file-upload-button {\n -webkit-appearance: button;\n /* 1 */\n font: inherit;\n /* 2 */\n}\n\n:global details {\n display: block;\n}\n\n:global summary {\n display: list-item;\n}\n\n:global template {\n display: none;\n}\n\n:global [hidden] {\n display: none;\n}\n\n:global html {\n font-size: 62.5%;\n}\n\n:global html,\n:global body,\n:global #root {\n display: flex;\n flex: 1;\n flex-direction: column;\n height: 100vh;\n}\n\n:global body {\n background-color: #393D43;\n margin: 0;\n padding: 0;\n font-family: sans-serif;\n font-size: 1.6rem;\n -webkit-touch-callout: none;\n -webkit-font-smoothing: antialiased;\n}\n\n:global body * {\n -webkit-tap-highlight-color: rgba(255, 255, 255, 0);\n}\n\n:global input[type=range] {\n -webkit-appearance: none;\n width: 100%;\n background: transparent;\n}\n\n:global input[type=range]::-webkit-slider-thumb {\n -webkit-appearance: none;\n}\n\n:global input[type=range]:focus {\n outline: none;\n}\n\n:global input[type=range]::-ms-track {\n width: 100%;\n cursor: pointer;\n background: transparent;\n border-color: transparent;\n color: transparent;\n}\n","@import \"./_config.scss\";\n\n.root {\n display: flex;\n flex-direction: column;\n flex: 1;\n}\n\n.header,\n.section {\n display: flex;\n align-items: center;\n padding: 2rem;\n}\n\n.header {\n background: rgba(#000, 0.4);\n flex-direction: row;\n justify-content: flex-start;\n padding: 2rem;\n}\n\n.header-input {\n flex: 1;\n}\n\n.section {\n flex-direction: column;\n justify-content: center;\n flex: 1;\n}\n\n.demo,\n.controls {\n display: block;\n text-align: center;\n}\n\n.demo {\n color: $color-secondary;\n font-size: 4rem;\n font-weight: bold;\n max-width: 100vw;\n margin-top: 14px;\n position: relative;\n\n &::before {\n content: '';\n display: block;\n box-sizing: border-box;\n height: 20px;\n position: absolute;\n top: -24px;\n left: 0;\n right: 0;\n border-top: $border-size solid $color-primary;\n border-left: $border-size solid $color-primary;\n border-right: $border-size solid $color-primary;\n }\n}\n\n.controls {\n padding: 2rem;\n\n &:last-child {\n margin-top: 6rem;\n }\n}\n\n.widthText {\n font-size: 2rem;\n color: $color-primary;\n padding: 1rem;\n background: #393D43;\n position: relative;\n top: 33px;\n z-index: 2;\n}\n\n.instructions {\n color: $color-secondary;\n font-size: 1.6rem;\n padding: 4rem 4rem 0 4rem;\n text-align: justify;\n}\n",".root {\n display: flex;\n flex-direction: column;\n flex: 1;\n}\n\n.header,\n.section {\n display: flex;\n align-items: center;\n padding: 2rem;\n}\n\n.header {\n background: rgba(0, 0, 0, 0.4);\n flex-direction: row;\n justify-content: flex-start;\n padding: 2rem;\n}\n\n.header-input {\n flex: 1;\n}\n\n.section {\n flex-direction: column;\n justify-content: center;\n flex: 1;\n}\n\n.demo,\n.controls {\n display: block;\n text-align: center;\n}\n\n.demo {\n color: #fff;\n font-size: 4rem;\n font-weight: bold;\n max-width: 100vw;\n margin-top: 14px;\n position: relative;\n}\n\n.demo::before {\n content: '';\n display: block;\n box-sizing: border-box;\n height: 20px;\n position: absolute;\n top: -24px;\n left: 0;\n right: 0;\n border-top: 4px solid #FBED6B;\n border-left: 4px solid #FBED6B;\n border-right: 4px solid #FBED6B;\n}\n\n.controls {\n padding: 2rem;\n}\n\n.controls:last-child {\n margin-top: 6rem;\n}\n\n.widthText {\n font-size: 2rem;\n color: #FBED6B;\n padding: 1rem;\n background: #393D43;\n position: relative;\n top: 33px;\n z-index: 2;\n}\n\n.instructions {\n color: #fff;\n font-size: 1.6rem;\n padding: 4rem 4rem 0 4rem;\n text-align: justify;\n}\n","$color-primary: #FBED6B;\n$color-secondary: #fff;\n$border-size: 4px;\n","@import \"./_config.scss\";\n\n.component {\n display: flex;\n flex-direction: column-reverse;\n margin-bottom: 1em;\n text-align: left;\n\n + .component {\n margin-left: 2rem;\n }\n}\n\n.input,\n.label {\n transition: all 0.2s;\n touch-action: manipulation;\n color: $input-color-secondary;\n}\n\n.input {\n background-color: transparent;\n font-size: 2rem;\n padding-bottom: $input-gutter;\n color: $input-color-secondary;\n border: none;\n border-bottom: $input-gutter solid $input-color-secondary;\n\n // Translate down and scale the label up to cover the placeholder,\n // when following an input (with placeholder-shown support).\n // Also make sure the label is only on one row, at max 2/3rds of the\n // field—to make sure it scales properly and doesn't wrap.\n &:placeholder-shown + .label {\n cursor: text;\n max-width: 66.66%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n transform-origin: left bottom;\n transform: translate(0, 2.125rem) scale(1.5);\n }\n\n &::placeholder {\n opacity: 0;\n transition: inherit;\n font-size: 1.4rem;\n }\n\n &:focus {\n outline: none;\n border-bottom-color: $input-color-primary;\n transition: all ease-in 100ms;\n\n &::placeholder {\n color: rgba($input-color-secondary, 0.7);\n opacity: 1;\n }\n }\n\n // When the element is focused, remove the label transform.\n // Also, do this when the placeholder is _not_ shown, i.e. when\n // there's something in the input at all.\n &:not(:placeholder-shown) + .label,\n &:focus + .label {\n transform: translate(0, 0) scale(1);\n cursor: pointer;\n color: $input-color-primary;\n }\n}\n",".component {\n display: flex;\n flex-direction: column-reverse;\n margin-bottom: 1em;\n text-align: left;\n}\n\n.component + .component {\n margin-left: 2rem;\n}\n\n.input,\n.label {\n transition: all 0.2s;\n touch-action: manipulation;\n color: #fff;\n}\n\n.input {\n background-color: transparent;\n font-size: 2rem;\n padding-bottom: 4px;\n color: #fff;\n border: none;\n border-bottom: 4px solid #fff;\n}\n\n.input:placeholder-shown + .label {\n cursor: text;\n max-width: 66.66%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n transform-origin: left bottom;\n transform: translate(0, 2.125rem) scale(1.5);\n}\n\n.input::placeholder {\n opacity: 0;\n transition: inherit;\n font-size: 1.4rem;\n}\n\n.input:focus {\n outline: none;\n border-bottom-color: #FBED6B;\n transition: all ease-in 100ms;\n}\n\n.input:focus::placeholder {\n color: rgba(255, 255, 255, 0.7);\n opacity: 1;\n}\n\n.input:not(:placeholder-shown) + .label,\n.input:focus + .label {\n transform: translate(0, 0) scale(1);\n cursor: pointer;\n color: #FBED6B;\n}\n","$input-color-primary: #FBED6B;\n$input-color-secondary: #fff;\n$input-gutter: 4px;\n","@import \"./_config.scss\";\n\n.component {\n //-- Thumb\n &::-webkit-slider-thumb {\n -webkit-appearance: none;\n border: 1px solid #000000;\n height: 36px;\n width: 16px;\n border-radius: 3px;\n background: #ffffff;\n cursor: pointer;\n margin-top: -14px; // You need to specify a margin in Chrome, but in Firefox and IE it is automatic\n box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;\n }\n\n &::-moz-range-thumb {\n box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;\n border: 1px solid #000000;\n height: 36px;\n width: 16px;\n border-radius: 3px;\n background: #ffffff;\n cursor: pointer;\n }\n\n &::-ms-thumb {\n box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;\n border: 1px solid #000000;\n height: 36px;\n width: 16px;\n border-radius: 3px;\n background: #ffffff;\n cursor: pointer;\n }\n\n //-- Track\n\n &::-webkit-slider-runnable-track {\n width: 100%;\n height: 8.4px;\n cursor: pointer;\n box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;\n background: $range-color-primary;\n border-radius: 1.3px;\n border: 0.2px solid #010101;\n }\n\n &::-moz-range-track {\n width: 100%;\n height: 8.4px;\n cursor: pointer;\n box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;\n background: $range-color-primary;\n border-radius: 1.3px;\n border: 0.2px solid #010101;\n }\n\n &::-ms-track {\n width: 100%;\n height: 8.4px;\n cursor: pointer;\n background: transparent;\n border-color: transparent;\n border-width: 16px 0;\n color: transparent;\n }\n\n &::-ms-fill-lower {\n background: #2a6495;\n border: 0.2px solid #010101;\n border-radius: 2.6px;\n box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;\n }\n\n &:-ms-fill-upper {\n background: $range-color-primary;\n border: 0.2px solid #010101;\n border-radius: 2.6px;\n box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;\n }\n\n &:focus {\n &::-webkit-slider-runnable-track {\n background: $range-color-primary;\n }\n\n &::-ms-fill-lower {\n background: $range-color-primary;\n }\n\n &::-ms-fill-upper {\n background: #367ebd;\n }\n }\n}\n",".component::-webkit-slider-thumb {\n -webkit-appearance: none;\n border: 1px solid #000000;\n height: 36px;\n width: 16px;\n border-radius: 3px;\n background: #ffffff;\n cursor: pointer;\n margin-top: -14px;\n box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;\n}\n\n.component::-moz-range-thumb {\n box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;\n border: 1px solid #000000;\n height: 36px;\n width: 16px;\n border-radius: 3px;\n background: #ffffff;\n cursor: pointer;\n}\n\n.component::-ms-thumb {\n box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;\n border: 1px solid #000000;\n height: 36px;\n width: 16px;\n border-radius: 3px;\n background: #ffffff;\n cursor: pointer;\n}\n\n.component::-webkit-slider-runnable-track {\n width: 100%;\n height: 8.4px;\n cursor: pointer;\n box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;\n background: #FBED6B;\n border-radius: 1.3px;\n border: 0.2px solid #010101;\n}\n\n.component::-moz-range-track {\n width: 100%;\n height: 8.4px;\n cursor: pointer;\n box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;\n background: #FBED6B;\n border-radius: 1.3px;\n border: 0.2px solid #010101;\n}\n\n.component::-ms-track {\n width: 100%;\n height: 8.4px;\n cursor: pointer;\n background: transparent;\n border-color: transparent;\n border-width: 16px 0;\n color: transparent;\n}\n\n.component::-ms-fill-lower {\n background: #2a6495;\n border: 0.2px solid #010101;\n border-radius: 2.6px;\n box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;\n}\n\n.component:-ms-fill-upper {\n background: #FBED6B;\n border: 0.2px solid #010101;\n border-radius: 2.6px;\n box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;\n}\n\n.component:focus::-webkit-slider-runnable-track {\n background: #FBED6B;\n}\n\n.component:focus::-ms-fill-lower {\n background: #FBED6B;\n}\n\n.component:focus::-ms-fill-upper {\n background: #367ebd;\n}\n","$range-color-primary: #FBED6B;\n$range-color-secondary: #fff;\n"],"sourceRoot":""} \ No newline at end of file diff --git a/demo/index.js b/demo/index.js index 95ea550..eaf8b63 100644 --- a/demo/index.js +++ b/demo/index.js @@ -1,2 +1,2 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ReactMiddleTruncation=t():e.ReactMiddleTruncation=t()}(window,function(){return function(e){function t(t){for(var r,i,s=t[0],l=t[1],u=t[2],p=0,f=[];p=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","label","name","placeholder"]),s=this.state.value,l=f()(v.a.component,t);return a.a.createElement("div",{className:l},a.a.createElement("input",y({},i,r&&{id:r,name:r},{type:"text",placeholder:o,onChange:this.handleOnChange,value:s,className:v.a.input})),a.a.createElement("label",y({},r&&{htmlFor:r},{className:v.a.label}),n))}}]),t}();x.propTypes={className:c.a.string,label:c.a.string.isRequired,name:c.a.string,onChange:c.a.func,placeholder:c.a.string,value:c.a.any},x.defaultProps={className:"",label:"",name:null,onChange:function(){},placeholder:"",value:""};var w=x,O=n(16),E=n.n(O),C=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","min","max","step"]),s=this.state.value,l=f()(E.a.component,t);return a.a.createElement("input",C({},i,name&&{id:name,name:name},{type:"range",className:l,min:n,max:r,onChange:this.handleOnChange,step:o,value:s}))}}]),t}();_.propTypes={className:c.a.string,min:c.a.number,max:c.a.number,name:c.a.string,onChange:c.a.func,step:c.a.number,value:c.a.any},_.defaultProps={className:"",min:0,max:100,name:null,onChange:function(){},step:1,value:""};var N=_,S=n(5),P=n(17),M=n.n(P),R=n(6),D=n.n(R),k=Object.assign||function(e){for(var t=1;tMath.round(t.component.width.value)?this.truncateText(t):e;this.setState(function(){return{truncatedText:n}})}},{key:"render",value:function(){var e=this.props,t=e.text,n=e.ellipsis,r=e.style,o=(e.onResizeDebounceMs,e.smartCopy,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["text","ellipsis","style","onResizeDebounceMs","smartCopy"])),i=this.state.truncatedText,s=k({},r,{display:"block",overflow:"hidden",whiteSpace:"nowrap"}),l={display:"none"};return a.a.createElement("div",k({ref:"component",style:s,onCopy:this.onCopy},o),a.a.createElement("span",{ref:"text",style:l},t),a.a.createElement("span",{ref:"ellipsis",style:l},n),i)}}]),t}();F.propTypes={className:c.a.string,ellipsis:c.a.string,end:c.a.oneOfType([c.a.number,c.a.instanceOf(RegExp),c.a.string]),onResizeDebounceMs:c.a.number,smartCopy:c.a.oneOfType([c.a.oneOf(["partial","all"]),c.a.bool]),start:c.a.oneOfType([c.a.number,c.a.instanceOf(RegExp),c.a.string]),style:c.a.object,text:c.a.string},F.defaultProps={className:"",ellipsis:"...",end:0,onResizeDebounceMs:100,smartCopy:"all",start:0,style:{},text:""};var W=F,I=function(){function e(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function w(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function D(e,t){for(var n=0;ne.width.value?t.width:e.width,height:q.a.parse("".concat(e.height.value+t.height.value).concat(t.height.unit)),text:t.text.length>e.text.length?t.text:e.text}}):p(t)};function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(){return(U=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Z(e,t){for(var n=0;nMath.round(t.component.width.value)?n.truncateText(t):e;n.setState(function(){return{truncatedText:r}})},0)),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&V(e,t)}(t,r["PureComponent"]),function(e,t,n){t&&Z(e.prototype,t),n&&Z(e,n)}(t,[{key:"componentDidMount",value:function(){this.parseTextForTruncation(this.props.text),window.addEventListener("resize",this.onResize)}},{key:"componentWillReceiveProps",value:function(e){e.text!==this.props.text&&this.parseTextForTruncation(e.text),e.start!==this.props.start&&this.setState({start:$(e.start,e.text)}),e.end!==this.props.end&&this.setState({end:ee(e.end,e.text)})}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onResize)}},{key:"calculateMeasurements",value:function(){return{component:this.getComponentMeasurement(),ellipsis:this.getTextMeasurement(this.refs.ellipsis),text:this.getTextMeasurement(this.refs.text)}}},{key:"render",value:function(){var e=this.props,t=e.text,n=e.ellipsis,r=e.style,a=(e.onResizeDebounceMs,e.smartCopy,B(e,["text","ellipsis","style","onResizeDebounceMs","smartCopy"])),i=this.state.truncatedText,c=function(e){for(var t=1;t4Uoro{!y+hEU&)M-!S{dYSO*@VVY`RLVjXwCQM`RL@Vucd{tCRA*6|Jey(5K{&BHOf&^iQkMByk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03l})@JuKuTksJD!S;MGUVv6_vX94y?geXy}f($tKHrii{E{dA{YN}0mmsT=7fQ@o zr3o*T;0`YxehG`ffJ`Xe05fqicroO_i=RvGV2QE_Ha(jz8B@8BZ676?Tdo;33!Ar$ z?F@QDa?2D(QX6xy?TsiUt4Ph4dhg|t5t%o;8TI|{%Gg8PvMwp(Td%4Q1#el`sQ;Vu zTkG&Prmd>K)%tJ#xI6xKr)s?uwO9Ydy>aKxSammGv_~@=Fuh5WF`{J+@(EI%n*5<*7i_IBIQ3WeW{+Bb_e2Fp zrB1zP0>tj$_HM?s{%24x5ERLzk`(dP;2|V0Os8}1EWMak#YR4#toMg!zy&bgV z%WpzH;%-B{ejg&e3C>?ZIAlIZcK&V1ZZ;N{_NF4QKjI_rA7rK%dHWo_2esCvh#UG@ z!Nn4=%(CH7z1`R~JQZKW)9`M|oR$u{Royn|S6fbN2iad+eBG$#7a17lny}%(78oK2 z?Q2J)ub7MUV|Op*5EUO-4I-pQSh)dKqQy1E=7!`3;r&xGc-yrj4FHCXzJm?)7aRB6 zPd1F!)B4kluOzPfOP66KWiHd-gVaGz)q#>mp&OlkkU46@3Y`5sI@jeQ5iy0tSqkq% zcOhxog73!Myy#w9x7IPSgT;b`T2+KyQ*L7>wXO6Io2;=@T1P4;BrVAB{m;_*j{6k|Gy)^1Gi9J-h8-qGHcJv;8(Z<)6c6>~$EYbG@4x zvJijzIuLQ_Qr31^({q-_SF~^86nRAwd$0ZOj?G^;7vLtj`QElZMDQ%jo?G3rH7B@s z#7PN=b=VdS86Vdwghe-`&;h?`{Oi@L*fW$uQr^$7-bY{d+q3%-|MQRZBQKaN6|dyu z<0f>U-MbwB&w*RffuleDkKNrrIYnCLbAA8;K+u0XdK2oSzTl@KSVh@C05Vm;RMI^F E06=zOpa1{> diff --git a/demo/index.js.map b/demo/index.js.map index 8f5351c..4182169 100644 --- a/demo/index.js.map +++ b/demo/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://ReactMiddleTruncation/webpack/universalModuleDefinition","webpack://ReactMiddleTruncation/webpack/bootstrap","webpack://ReactMiddleTruncation/./src/demo/components/range/range.scss?2dd0","webpack://ReactMiddleTruncation/./src/demo/containers/app/app.scss?401d","webpack://ReactMiddleTruncation/./src/demo/components/input/input.jsx","webpack://ReactMiddleTruncation/./src/demo/components/input/index.js","webpack://ReactMiddleTruncation/./src/demo/components/range/range.jsx","webpack://ReactMiddleTruncation/./src/demo/components/range/index.js","webpack://ReactMiddleTruncation/./src/react-middle-truncate/middle-truncate.jsx","webpack://ReactMiddleTruncation/./src/react-middle-truncate/index.js","webpack://ReactMiddleTruncation/./src/demo/containers/app/app.jsx","webpack://ReactMiddleTruncation/./src/demo/containers/app/index.js","webpack://ReactMiddleTruncation/./src/demo/index.js","webpack://ReactMiddleTruncation/./src/demo/components/input/input.scss?6b0b"],"names":["root","factory","exports","module","define","amd","window","webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","0","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","oldJsonpFunction","slice","component","header","section","header-input","demo","controls","widthText","instructions","input_Input","state","_this","props","handleOnChange","event","setState","target","onChange","react","_props","this","className","label","placeholder","otherProps","_objectWithoutProperties","_className","classnames_default","input_default","a","react_default","createElement","_extends","id","type","input","htmlFor","propTypes","prop_types_default","string","isRequired","func","any","defaultProps","components_input","range_Range","min","max","step","range_objectWithoutProperties","range_default","range_extends","number","components_range","middle_truncate_MiddleTruncate","MiddleTruncate","middle_truncate_classCallCheck","middle_truncate_possibleConstructorReturn","__proto__","getPrototypeOf","truncatedText","text","start","getStartOffset","end","getEndOffset","getTextMeasurement","ref","node","react_dom","textContent","_window$getComputedSt","getComputedStyle","fontFamily","fontSize","fontWeight","fontStyle","_measureText","measure_text_lib_default","lineHeight","width","height","getComponentMeasurement","refs","offsetWidth","offsetHeight","units_css_default","parse","onCopy","calculateMeasurements","truncateText","parseTextForTruncation","lodash","onResize","onResizeDebounceMs","addEventListener","nextProps","removeEventListener","smartCopy","selectedText","getSelection","toString","preventDefault","clipboardData","originalEvent","setData","isNaN","parseInt","Math","round","RegExp","exec","index","ellipsis","measurements","_state","delta","ceil","totalLettersToRemove","middleIndex","_props2","style","middle_truncate_objectWithoutProperties","componentStyle","middle_truncate_extends","display","overflow","whiteSpace","hiddenStyle","oneOfType","instanceOf","oneOf","bool","react_middle_truncate","app_App","onDemoTextChange","onDemoStartChange","dispatchEvent","Event","onDemoEndChange","onDemoWidthChange","onDemoEllipsisChange","app_default","demoStyle","required","containers_app","document","body","appendChild","Component","react_hot_loader","errorReporter","lib_default","getElementById","demo_hmrRender"],"mappings":"CAAA,SAAAA,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,IACA,mBAAAG,eAAAC,IACAD,UAAAH,GACA,iBAAAC,QACAA,QAAA,sBAAAD,IAEAD,EAAA,sBAAAC,IARA,CASCK,OAAA,WACD,mBCTA,SAAAC,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,KACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAKA,IAFAe,KAAAhB,GAEAO,EAAAC,QACAD,EAAAU,OAAAV,GAOA,OAHAW,EAAAR,KAAAS,MAAAD,EAAAb,OAGAe,IAEA,SAAAA,IAEA,IADA,IAAAC,EACAf,E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AAAE,cAAA,OAAKV,UAAWM,IAAWmH,EAAAjH,EAAOrB,eAChCsB,EAAAD,EAAAE,cAAA,sKAGAD,EAAAD,EAAAE,cAAA,8MAvINuG,EACGjG,WACLhB,UAAWiB,EAAAT,EAAUU,QAFnB+F,EAKG3F,cACLtB,UAAW,IA0If,ICvJA4H,EDuJA,EE1IMnN,EAAOoN,SAASnH,cAAc,OACpCjG,EAAKmG,GAAK,OACViH,SAASC,KAAKC,YAAYtN,IAGR,SAAAuN,GAChBpM,OAAAoH,EAAA,OAAApH,CACE6E,EAAAD,EAAAE,cAACuH,EAAA,cAAaC,cAAeC,EAAA3H,GAC3BC,EAAAD,EAAAE,cAACsH,EAAD,OAEFH,SAASO,eAAe,SAK5BC,CAAUT,oBC7BVhN,EAAAD,SAAkBiE,UAAA,SAAAkC,MAAA,SAAAb,MAAA","file":"index.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ReactMiddleTruncation\"] = factory();\n\telse\n\t\troot[\"ReactMiddleTruncation\"] = factory();\n})(window, function() {\nreturn "," \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t0: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"demo\";\n\n \tvar jsonpArray = window[\"webpackJsonpReactMiddleTruncation\"] = window[\"webpackJsonpReactMiddleTruncation\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([47,1]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","// removed by extract-text-webpack-plugin\nmodule.exports = {\"component\":\"_24kiK\"};","// removed by extract-text-webpack-plugin\nmodule.exports = {\"root\":\"_8ovzY\",\"header\":\"_1lIK_\",\"section\":\"_2F601\",\"header-input\":\"_16nLe\",\"demo\":\"_3x3CJ\",\"controls\":\"_1kfb5\",\"widthText\":\"_3Y1l9\",\"instructions\":\"_2uh8L\"};","import React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport styles from './input.scss';\n\nclass Input extends PureComponent {\n static propTypes = {\n className: PropTypes.string,\n label: PropTypes.string.isRequired,\n name: PropTypes.string,\n onChange: PropTypes.func,\n placeholder: PropTypes.string,\n value: PropTypes.any\n };\n\n static defaultProps = {\n className: '',\n label: '',\n name: null,\n onChange: () => {},\n placeholder: '',\n value: ''\n };\n\n state = {\n value: this.props.value\n };\n\n handleOnChange = (event) => {\n this.setState({\n value: event.target.value\n });\n\n this.props.onChange(event);\n };\n\n render() {\n const { className, label, name, placeholder, ...otherProps } = this.props;\n const { value } = this.state;\n\n const _className = classnames(\n styles.component,\n className\n );\n\n return (\n
\n \n\n {label}\n
\n );\n }\n}\n\nexport default Input;\nexport { Input };\n","import Input from './input';\n\nexport default Input;\nexport { Input };\n","import React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport styles from './range.scss';\n\nclass Range extends PureComponent {\n static propTypes = {\n className: PropTypes.string,\n min: PropTypes.number,\n max: PropTypes.number,\n name: PropTypes.string,\n onChange: PropTypes.func,\n step: PropTypes.number,\n value: PropTypes.any\n };\n\n static defaultProps = {\n className: '',\n min: 0,\n max: 100,\n name: null,\n onChange: () => {},\n step: 1,\n value: ''\n };\n\n state = {\n value: this.props.value\n };\n\n handleOnChange = (event) => {\n this.setState({\n value: event.target.value\n });\n\n this.props.onChange(event);\n };\n\n render() {\n const { className, min, max, step, ...otherProps } = this.props;\n const { value } = this.state;\n\n const _className = classnames(\n styles.component,\n className\n );\n\n return (\n \n );\n }\n}\n\nexport default Range;\nexport { Range };\n","import Range from './range';\n\nexport default Range;\nexport { Range };\n","import React, { PureComponent } from 'react';\nimport { debounce, toFinite } from 'lodash';\nimport { findDOMNode } from 'react-dom';\nimport PropTypes from 'prop-types';\nimport measureText from 'measure-text';\nimport units from 'units-css';\n\n// A React component for truncating text in the middle of the string.\n//\n// This component automatically calculates the required width and height of the text\n// taking into consideration any inherited font and line-height styles, and compares it to\n// the available space to determine whether to truncate or not.\n\n// By default the component will truncate the middle of the text if\n// the text would otherwise overflow using a position 0 at the start of the string,\n// and position 0 at the end of the string.\n//\n// You can pass start and end props a number to offset this position, or alternatively\n// a Regular Expression to calculate these positions dynamically against the text itself.\nclass MiddleTruncate extends PureComponent {\n static propTypes = {\n className: PropTypes.string,\n ellipsis: PropTypes.string,\n end: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.instanceOf(RegExp),\n PropTypes.string\n ]),\n onResizeDebounceMs: PropTypes.number,\n smartCopy: PropTypes.oneOfType([\n PropTypes.oneOf(['partial', 'all']),\n PropTypes.bool\n ]),\n start: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.instanceOf(RegExp),\n PropTypes.string\n ]),\n style: PropTypes.object,\n text: PropTypes.string\n };\n\n static defaultProps = {\n className: '',\n ellipsis: '...',\n end: 0,\n onResizeDebounceMs: 100,\n smartCopy: 'all',\n start: 0,\n style: {},\n text: ''\n };\n\n constructor(props) {\n super(props);\n\n this.getStartOffset = this.getStartOffset.bind(this);\n this.getEndOffset = this.getEndOffset.bind(this);\n this.onCopy = this.onCopy.bind(this);\n this.calculateMeasurements = this.calculateMeasurements.bind(this);\n this.truncateText = this.truncateText.bind(this);\n\n // Debounce the parsing of the text so that the component has had time to render its DOM for measurement calculations\n this.parseTextForTruncation = debounce( this.parseTextForTruncation.bind(this), 0);\n this.onResize = debounce( this.onResize.bind(this), this.props.onResizeDebounceMs );\n }\n\n state = {\n truncatedText: this.props.text,\n start: this.getStartOffset(this.props.start, this.props.text),\n end: this.getEndOffset(this.props.end, this.props.text)\n }\n\n componentDidMount() {\n this.parseTextForTruncation(this.props.text);\n window.addEventListener('resize', this.onResize);\n }\n\n componentWillReceiveProps(nextProps) {\n if (nextProps.text !== this.props.text) {\n this.parseTextForTruncation(nextProps.text);\n }\n\n if (nextProps.start !== this.props.start) {\n this.setState({ start: this.getStartOffset(nextProps.start, nextProps.text) });\n }\n\n if (nextProps.end !== this.props.end) {\n this.setState({ end: this.getEndOffset(nextProps.end, nextProps.text) });\n }\n }\n\n componentWillUnmount() {\n window.removeEventListener('resize', this.onResize);\n }\n\n onCopy(event) {\n const { smartCopy } = this.props;\n\n // If smart copy is not enabled, simply return and use the default behaviour of the copy event\n if (!smartCopy) {\n return;\n }\n\n const selectedText = window.getSelection().toString();\n\n // If smartCopy is set to partial or if smartCopy is set to all and the entire string was selected\n // copy the original full text to the user's clipboard\n if ( smartCopy === 'partial' || (smartCopy === 'all' && selectedText === this.state.truncatedText) ) {\n event.preventDefault();\n const clipboardData = event.clipboardData || window.clipboardData || event.originalEvent.clipboardData;\n\n clipboardData.setData('text/plain', this.props.text);\n }\n }\n\n onResize() {\n this.parseTextForTruncation(this.props.text);\n }\n\n getStartOffset(start, text) {\n if (start === '' || start === null) {\n return 0;\n }\n\n if (!isNaN(parseInt(start, 10))) {\n return Math.round( toFinite(start) );\n }\n\n const result = new RegExp(start).exec(text);\n return result ? result.index + result[0].length : 0;\n }\n\n getEndOffset(end, text) {\n if (end === '' || end === null) {\n return 0;\n }\n\n if (!isNaN(parseInt(end, 10))) {\n return Math.round( toFinite(end) );\n }\n\n const result = new RegExp(end).exec(text);\n return result ? result[0].length : 0;\n }\n\n getTextMeasurement = (ref) => {\n const node = findDOMNode(ref);\n const text = node.textContent;\n\n const {\n fontFamily,\n fontSize,\n fontWeight,\n fontStyle\n } = window.getComputedStyle(node);\n\n const { width, height } = measureText({\n text,\n fontFamily,\n fontSize,\n fontWeight,\n fontStyle,\n lineHeight: 1\n });\n\n return { width, height };\n }\n\n getComponentMeasurement = () => {\n const node = findDOMNode(this.refs.component);\n const { offsetWidth, offsetHeight } = node;\n\n return {\n width: units.parse(offsetWidth, 'px'),\n height: units.parse(offsetHeight, 'px')\n };\n }\n\n calculateMeasurements() {\n return {\n component: this.getComponentMeasurement(),\n ellipsis: this.getTextMeasurement(this.refs.ellipsis),\n text: this.getTextMeasurement(this.refs.text)\n };\n }\n\n truncateText(measurements) {\n const { text, ellipsis } = this.props;\n const { start, end } = this.state;\n\n if (measurements.component.width.value <= measurements.ellipsis.width.value) {\n return ellipsis;\n }\n\n const delta = Math.ceil(measurements.text.width.value - measurements.component.width.value);\n const totalLettersToRemove = Math.ceil( ((delta / measurements.ellipsis.width.value ) ) );\n const middleIndex = Math.round(text.length / 2);\n\n const preserveLeftSide = text.slice(0, start);\n const leftSide = text.slice(start, middleIndex - totalLettersToRemove);\n const rightSide = text.slice(middleIndex + totalLettersToRemove, text.length - end);\n const preserveRightSide = text.slice(text.length - end, text.length);\n\n return `${preserveLeftSide}${leftSide}${ellipsis}${rightSide}${preserveRightSide}`;\n }\n\n parseTextForTruncation(text) {\n const measurements = this.calculateMeasurements();\n\n const truncatedText = (Math.round(measurements.text.width.value) > Math.round(measurements.component.width.value) )\n ? this.truncateText(measurements)\n : text;\n\n this.setState(() => ({ truncatedText }));\n }\n\n render() {\n // eslint-disable-next-line no-unused-vars\n const { text, ellipsis, style, onResizeDebounceMs, smartCopy, ...otherProps } = this.props;\n const { truncatedText } = this.state;\n\n const componentStyle = {\n ...style,\n display: 'block',\n overflow: 'hidden',\n whiteSpace: 'nowrap'\n };\n\n const hiddenStyle = {\n display: 'none'\n };\n\n return (\n \n {text}\n {ellipsis}\n\n { truncatedText }\n \n );\n }\n}\n\nexport default MiddleTruncate;\nexport { MiddleTruncate };\n","import MiddleTruncate from './middle-truncate';\n\nexport default MiddleTruncate;\nexport { MiddleTruncate };\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport styles from './app.scss';\n\nimport Input from 'components/input';\nimport Range from 'components/range';\nimport MiddleTruncate from 'lib';\n\nclass App extends Component {\n static propTypes = {\n className: PropTypes.string\n };\n\n static defaultProps = {\n className: ''\n };\n\n state = {\n start: /Lorem\\sipsum/,\n end: 5,\n width: 55,\n text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer risus ante, molestie eu ex suscipit, mollis pellentesque metus.',\n ellipsis: '...'\n }\n\n onDemoTextChange = (event) => {\n this.setState({\n text: event.target.value\n });\n }\n\n onDemoStartChange = (event) => {\n this.setState({\n start: event.target.value\n }, () => {\n window.dispatchEvent( new Event('resize') );\n });\n }\n\n onDemoEndChange = (event) => {\n this.setState({\n end: event.target.value\n }, () => {\n window.dispatchEvent( new Event('resize') );\n });\n }\n\n onDemoWidthChange = (event) => {\n this.setState({\n width: event.target.value\n }, () => {\n window.dispatchEvent( new Event('resize') );\n });\n }\n\n onDemoEllipsisChange = (event) => {\n this.setState({\n ellipsis: event.target.value\n }, () => {\n window.dispatchEvent( new Event('resize') );\n });\n }\n\n render() {\n const { className } = this.props;\n const { start, end, width, text, ellipsis } = this.state;\n\n const _className = classnames(\n styles.root,\n className\n );\n\n const demoStyle = {\n width: `${width}%`\n };\n\n return (\n
\n
\n \n\n \n\n \n\n \n
\n\n
\n
\n
width: {width}%
\n
\n\n {text && \n \n
}\n\n
\n \n
\n\n
\n

Enter text to trucate in the input. Drag the slider above to increase/decrease the width\n of the parent container to see the middle truncation be applied.

\n\n

If you wish to preserve portions of the start and/or end of the text, you can enter either a\n numeric value, or a regular expression to find the character position to preserve up to.

\n
\n \n \n );\n }\n}\n\nexport default App;\nexport { App };\n","import App from './app';\n\nexport default App;\nexport { App };\n","import React from 'react';\nimport { render } from 'react-dom';\nimport { AppContainer } from 'react-hot-loader';\nimport Redbox from 'redbox-react';\nimport 'raf/polyfill'; // requestAnimationFrame Polyfill\n\n// Import the global scss file. These are the only global styles declared for the application.\n// All other styles should be defined as component CSS-Module styles (ie: each component has its own associated .scss file)\nimport 'scss/index.scss';\n\n// Import our main application container after global styles\nimport App from 'containers/app';\n\n// Since we are using HtmlWebpackPlugin WITHOUT a template,\n// we should create our own root node in the body element before rendering into it.\nconst root = document.createElement('div');\nroot.id = 'root';\ndocument.body.appendChild(root);\n\n// Create a HMR enabled render function\nconst hmrRender = Component => {\n render(\n \n \n ,\n document.getElementById('root')\n );\n};\n\n// Render our application to the DOM\nhmrRender(App);\n\nif (module.hot) {\n module.hot.accept('containers/app', () => {\n hmrRender(App);\n });\n}\n","// removed by extract-text-webpack-plugin\nmodule.exports = {\"component\":\"_3ae9K\",\"input\":\"_3yn8S\",\"label\":\"_2x0ZM\"};"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://ReactMiddleTruncation/webpack/universalModuleDefinition","webpack://ReactMiddleTruncation/webpack/bootstrap","webpack://ReactMiddleTruncation/./src/demo/components/range/range.scss?f25c","webpack://ReactMiddleTruncation/./src/demo/containers/app/app.scss?c341","webpack://ReactMiddleTruncation/./src/demo/components/input/input.jsx","webpack://ReactMiddleTruncation/./src/demo/components/input/index.js","webpack://ReactMiddleTruncation/./src/demo/components/range/range.jsx","webpack://ReactMiddleTruncation/./src/demo/components/range/index.js","webpack://ReactMiddleTruncation/./src/utils/measure-text/measure-text.js","webpack://ReactMiddleTruncation/./src/utils/measure-text/index.js","webpack://ReactMiddleTruncation/./src/react-middle-truncate/middle-truncate.jsx","webpack://ReactMiddleTruncation/./src/react-middle-truncate/index.js","webpack://ReactMiddleTruncation/./src/demo/containers/app/app.jsx","webpack://ReactMiddleTruncation/./src/demo/containers/app/index.js","webpack://ReactMiddleTruncation/./src/demo/index.js","webpack://ReactMiddleTruncation/./src/demo/components/input/input.scss?ccaa"],"names":["root","factory","exports","module","define","amd","window","webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","0","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","oldJsonpFunction","slice","component","header","section","header-input","controls","demo","widthText","instructions","input_Input","_this","props","event","setState","target","onChange","react","_this$props","this","className","label","placeholder","otherProps","_objectWithoutProperties","state","_className","classnames_default","input_default","a","react_default","createElement","_extends","id","type","handleOnChange","input","htmlFor","prop_types_default","string","isRequired","func","any","components_input","range_Range","min","max","step","range_objectWithoutProperties","range_default","range_extends","number","components_range","DEFAULT_CANVAS","document","utils_measure_text","_ref","text","fontFamily","fontSize","lineHeight","_ref$fontWeight","fontWeight","_ref$fontStyle","fontStyle","_ref$canvas","canvas","ctx","getContext","font","concat","measure","line","width","units_css_default","parse","measureText","height","size","unit","unitBlacklist","indexOf","Error","join","convert","measure_text_measureHeight","Array","isArray","map","reduce","prev","curr","middle_truncate_getStartOffset","start","isNaN","parseInt","Math","round","lodash","RegExp","exec","index","middle_truncate_getEndOffset","end","middle_truncate_MiddleTruncate","truncatedText","smartCopy","selectedText","getSelection","toString","preventDefault","clipboardData","originalEvent","setData","parseTextForTruncation","onResizeDebounceMs","ref","node","react_dom","textContent","_window$getComputedSt","getComputedStyle","_measureText","refs","offsetWidth","offsetHeight","measurements","ellipsis","_this$state","delta","ceil","totalLettersToRemove","middleIndex","preserveLeftSide","leftSide","rightSide","preserveRightSide","calculateMeasurements","truncateText","addEventListener","onResize","nextProps","removeEventListener","getComponentMeasurement","getTextMeasurement","_this$props2","style","middle_truncate_objectWithoutProperties","componentStyle","_objectSpread","display","overflow","whiteSpace","hiddenStyle","middle_truncate_extends","onCopy","oneOfType","instanceOf","oneOf","bool","react_middle_truncate","app_App","dispatchEvent","Event","app_default","demoStyle","onDemoTextChange","onDemoStartChange","onDemoEndChange","required","onDemoEllipsisChange","onDemoWidthChange","containers_app","body","appendChild","Component","react_hot_loader","errorReporter","lib_default","getElementById","demo_hmrRender"],"mappings":"CAAA,SAAAA,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,IACA,mBAAAG,eAAAC,IACAD,UAAAH,GACA,iBAAAC,QACAA,QAAA,sBAAAD,IAEAD,EAAA,sBAAAC,IARA,CASCK,OAAA,WACD,mBCTA,SAAAC,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,KACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAKA,IAFAe,KAAAhB,GAEAO,EAAAC,QACAD,EAAAU,OAAAV,GAOA,OAHAW,EAAAR,KAAAS,MAAAD,EAAAb,OAGAe,IAEA,SAAAA,IAEA,IADA,IAAAC,EACAf,EAAA,EAAiBA,EAAAY,EAAAV,OAA4BF,IAAA,CAG7C,IAFA,IAAAgB,EAAAJ,EAAAZ,GACAiB,GAAA,EACAC,EAAA,EAAkBA,EAAAF,EAAAd,OAA2BgB,IAAA,CAC7C,IAAAC,EAAAH,EAAAE,GACA,IAAAf,EAAAgB,KAAAF,GAAA,GAEAA,IACAL,EAAAQ,OAAApB,IAAA,GACAe,EAAAM,IAAAC,EAAAN,EAAA,KAGA,OAAAD,EAIA,IAAAQ,KAKApB,GACAqB,EAAA,GAGAZ,KAGA,SA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cesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ReactMiddleTruncation\"] = factory();\n\telse\n\t\troot[\"ReactMiddleTruncation\"] = factory();\n})(window, function() {\nreturn "," \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t0: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"demo\";\n\n \tvar jsonpArray = window[\"webpackJsonpReactMiddleTruncation\"] = window[\"webpackJsonpReactMiddleTruncation\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([46,1]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"component\":\"_24kiK\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"root\":\"_8ovzY\",\"header\":\"_1lIK_\",\"section\":\"_2F601\",\"header-input\":\"_16nLe\",\"controls\":\"_1kfb5\",\"demo\":\"_3x3CJ\",\"widthText\":\"_3Y1l9\",\"instructions\":\"_2uh8L\"};","import React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport styles from './input.scss';\n\nclass Input extends PureComponent {\n static propTypes = {\n className: PropTypes.string,\n label: PropTypes.string.isRequired,\n name: PropTypes.string,\n onChange: PropTypes.func,\n placeholder: PropTypes.string,\n value: PropTypes.any\n };\n\n static defaultProps = {\n className: '',\n label: '',\n name: null,\n onChange: () => {},\n placeholder: '',\n value: ''\n };\n\n state = {\n value: this.props.value\n };\n\n handleOnChange = (event) => {\n this.setState({\n value: event.target.value\n });\n\n this.props.onChange(event);\n };\n\n render() {\n const { className, label, name, placeholder, ...otherProps } = this.props;\n const { value } = this.state;\n\n const _className = classnames(\n styles.component,\n className\n );\n\n return (\n
\n \n\n {label}\n
\n );\n }\n}\n\nexport default Input;\nexport { Input };\n","import Input from './input';\n\nexport default Input;\nexport { Input };\n","import React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport styles from './range.scss';\n\nclass Range extends PureComponent {\n static propTypes = {\n className: PropTypes.string,\n min: PropTypes.number,\n max: PropTypes.number,\n name: PropTypes.string,\n onChange: PropTypes.func,\n step: PropTypes.number,\n value: PropTypes.any\n };\n\n static defaultProps = {\n className: '',\n min: 0,\n max: 100,\n name: null,\n onChange: () => {},\n step: 1,\n value: ''\n };\n\n state = {\n value: this.props.value\n };\n\n handleOnChange = (event) => {\n this.setState({\n value: event.target.value\n });\n\n this.props.onChange(event);\n };\n\n render() {\n const { className, min, max, step, ...otherProps } = this.props;\n const { value } = this.state;\n\n const _className = classnames(\n styles.component,\n className\n );\n\n return (\n \n );\n }\n}\n\nexport default Range;\nexport { Range };\n","import Range from './range';\n\nexport default Range;\nexport { Range };\n","/**\n* The MIT License (MIT)\n*\n* Copyright (c) 2016 Formidable\n*\n* Permission is hereby granted, free of charge, to any person obtaining a copy\n* of this software and associated documentation files (the \"Software\"), to deal\n* in the Software without restriction, including without limitation the rights\n* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n* copies of the Software, and to permit persons to whom the Software is\n* furnished to do so, subject to the following conditions:\n*\n* The above copyright notice and this permission notice shall be included in all\n* copies or substantial portions of the Software.\n* THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n* SOFTWARE.\n*/\n\n/**\n * Absorb source code for `measure-text` to resolve security vulnerability until\n * a new version of `measure-text` is released.\n *\n * @see https://github.com/matt-d-rat/react-middle-truncate/issues/4\n **/\n\n// eslint-env browser\nimport units from 'units-css';\n\nconst DEFAULT_CANVAS = document.createElement('canvas');\nconst DEFAULT_FONT_WEIGHT = 400;\nconst DEFAULT_FONT_STYLE = 'normal';\n\nconst measureHeight = (size, lineHeight) => {\n // If the line-height is unitless,\n // multiply it by the font size.\n if (!lineHeight.unit) {\n return units.parse(\n `${size.value * lineHeight.value}${size.unit}`\n );\n }\n\n // units-css requires the user to provide\n // DOM nodes for these units. We don't want\n // to pollute our API with that for the time being.\n const unitBlacklist = ['%', 'ch', 'cm', 'em', 'ex'];\n if (unitBlacklist.indexOf(lineHeight.unit) !== -1) { // eslint-disable-line no-magic-numbers\n throw new Error(\n `We do not currently support the unit ${lineHeight.unit}\n from the provided line-height ${lineHeight.value}.\n Unsupported units include ${unitBlacklist.join(', ')}.`\n );\n }\n\n // Otherwise, the height is equivalent\n // to the provided line height.\n // Non-px units need conversion.\n if (lineHeight.unit === 'px') {\n return lineHeight;\n }\n return units.parse(\n units.convert(lineHeight, 'px')\n );\n};\n\nconst measureText = ({\n text,\n fontFamily,\n fontSize,\n lineHeight,\n fontWeight = DEFAULT_FONT_WEIGHT,\n fontStyle = DEFAULT_FONT_STYLE,\n canvas = DEFAULT_CANVAS\n}) => {\n const ctx = canvas.getContext('2d');\n ctx.font = `${fontWeight} ${fontStyle} ${fontSize} ${fontFamily}`;\n\n const measure = (line) => {\n return {\n text: line,\n width: units.parse(`${ctx.measureText(line).width}px`),\n height: measureHeight(\n units.parse(fontSize),\n units.parse(lineHeight)\n )\n };\n };\n\n // If multiline, measure the bounds\n // of all of the lines combined\n if (Array.isArray(text)) {\n return text\n .map(measure)\n .reduce((prev, curr) => {\n const width = curr.width.value > prev.width.value\n ? curr.width : prev.width;\n const height = units.parse(\n `${prev.height.value + curr.height.value}${curr.height.unit}`\n );\n const longest = curr.text.length > prev.text.length\n ? curr.text : prev.text;\n return { width, height, text: longest };\n });\n }\n\n return measure(text);\n};\n\nexport default measureText;\nexport { measureText };\n","import measureText from './measure-text';\n\nexport default measureText;\nexport { measureText };\n","import React, { PureComponent } from 'react';\nimport { debounce, toFinite } from 'lodash';\nimport { findDOMNode } from 'react-dom';\nimport PropTypes from 'prop-types';\nimport measureText from 'utils/measure-text';\nimport units from 'units-css';\n\nconst getStartOffset = (start, text) => {\n if (start === '' || start === null) {\n return 0;\n }\n\n if (!isNaN(parseInt(start, 10))) {\n return Math.round(toFinite(start));\n }\n\n const result = new RegExp(start).exec(text);\n return result ? result.index + result[0].length : 0;\n};\n\nconst getEndOffset = (end, text) => {\n if (end === '' || end === null) {\n return 0;\n }\n\n if (!isNaN(parseInt(end, 10))) {\n return Math.round(toFinite(end));\n }\n\n const result = new RegExp(end).exec(text);\n return result ? result[0].length : 0;\n};\n\n// A React component for truncating text in the middle of the string.\n//\n// This component automatically calculates the required width and height of the text\n// taking into consideration any inherited font and line-height styles, and compares it to\n// the available space to determine whether to truncate or not.\n\n// By default the component will truncate the middle of the text if\n// the text would otherwise overflow using a position 0 at the start of the string,\n// and position 0 at the end of the string.\n//\n// You can pass start and end props a number to offset this position, or alternatively\n// a Regular Expression to calculate these positions dynamically against the text itself.\nclass MiddleTruncate extends PureComponent {\n static propTypes = {\n className: PropTypes.string,\n ellipsis: PropTypes.string,\n end: PropTypes.oneOfType([PropTypes.number, PropTypes.instanceOf(RegExp), PropTypes.string]),\n onResizeDebounceMs: PropTypes.number,\n smartCopy: PropTypes.oneOfType([PropTypes.oneOf(['partial', 'all']), PropTypes.bool]),\n start: PropTypes.oneOfType([PropTypes.number, PropTypes.instanceOf(RegExp), PropTypes.string]),\n style: PropTypes.object,\n text: PropTypes.string\n }\n\n static defaultProps = {\n className: '',\n ellipsis: '...',\n end: 0,\n onResizeDebounceMs: 100,\n smartCopy: 'all',\n start: 0,\n style: {},\n text: ''\n }\n\n state = {\n truncatedText: this.props.text,\n start: getStartOffset(this.props.start, this.props.text),\n end: getEndOffset(this.props.end, this.props.text)\n }\n\n componentDidMount() {\n this.parseTextForTruncation(this.props.text);\n window.addEventListener('resize', this.onResize);\n }\n\n componentWillReceiveProps(nextProps) {\n if (nextProps.text !== this.props.text) {\n this.parseTextForTruncation(nextProps.text);\n }\n\n if (nextProps.start !== this.props.start) {\n this.setState({ start: getStartOffset(nextProps.start, nextProps.text) });\n }\n\n if (nextProps.end !== this.props.end) {\n this.setState({ end: getEndOffset(nextProps.end, nextProps.text) });\n }\n }\n\n componentWillUnmount() {\n window.removeEventListener('resize', this.onResize);\n }\n\n onCopy = event => {\n const { smartCopy } = this.props;\n\n // If smart copy is not enabled, simply return and use the default behaviour of the copy event\n if (!smartCopy) {\n return;\n }\n\n const selectedText = window.getSelection().toString();\n\n // If smartCopy is set to partial or if smartCopy is set to all and the entire string was selected\n // copy the original full text to the user's clipboard\n if (smartCopy === 'partial' || (smartCopy === 'all' && selectedText === this.state.truncatedText)) {\n event.preventDefault();\n const clipboardData = event.clipboardData || window.clipboardData || event.originalEvent.clipboardData;\n\n clipboardData.setData('text/plain', this.props.text);\n }\n }\n\n onResize = debounce(() => {\n this.parseTextForTruncation(this.props.text);\n }, this.props.onResizeDebounceMs)\n\n getTextMeasurement = ref => {\n const node = findDOMNode(ref);\n const text = node.textContent;\n\n const {\n fontFamily,\n fontSize,\n fontWeight,\n fontStyle\n } = window.getComputedStyle(node);\n\n const { width, height } = measureText({\n text,\n fontFamily,\n fontSize,\n fontWeight,\n fontStyle,\n lineHeight: 1\n });\n\n return { width, height };\n }\n\n getComponentMeasurement = () => {\n const node = findDOMNode(this.refs.component);\n const { offsetWidth, offsetHeight } = node;\n\n return {\n width: units.parse(offsetWidth, 'px'),\n height: units.parse(offsetHeight, 'px')\n };\n }\n\n calculateMeasurements() {\n return {\n component: this.getComponentMeasurement(),\n ellipsis: this.getTextMeasurement(this.refs.ellipsis),\n text: this.getTextMeasurement(this.refs.text)\n };\n }\n\n truncateText = measurements => {\n const { text, ellipsis } = this.props;\n const { start, end } = this.state;\n\n if (measurements.component.width.value <= measurements.ellipsis.width.value) {\n return ellipsis;\n }\n\n const delta = Math.ceil(measurements.text.width.value - measurements.component.width.value);\n const totalLettersToRemove = Math.ceil( delta / measurements.ellipsis.width.value);\n const middleIndex = Math.round(text.length / 2);\n\n const preserveLeftSide = text.slice(0, start);\n const leftSide = text.slice(start, middleIndex - totalLettersToRemove);\n const rightSide = text.slice(middleIndex + totalLettersToRemove, text.length - end);\n const preserveRightSide = text.slice(text.length - end, text.length);\n\n return `${preserveLeftSide}${leftSide}${ellipsis}${rightSide}${preserveRightSide}`;\n }\n\n // Debounce the parsing of the text so that the component has had time to render its DOM for measurement calculations\n parseTextForTruncation = debounce(text => {\n const measurements = this.calculateMeasurements();\n\n const truncatedText =\n Math.round(measurements.text.width.value) > Math.round(measurements.component.width.value)\n ? this.truncateText(measurements)\n : text;\n\n this.setState(() => ({ truncatedText }));\n }, 0)\n\n render() {\n // eslint-disable-next-line no-unused-vars\n const { text, ellipsis, style, onResizeDebounceMs, smartCopy, ...otherProps } = this.props;\n const { truncatedText } = this.state;\n\n const componentStyle = {\n ...style,\n display: 'block',\n overflow: 'hidden',\n whiteSpace: 'nowrap'\n };\n\n const hiddenStyle = {\n display: 'none'\n };\n\n return (\n \n {text}\n {ellipsis}\n\n { truncatedText }\n \n );\n }\n}\n\nexport default MiddleTruncate;\nexport { MiddleTruncate };\n","import MiddleTruncate from './middle-truncate';\n\nexport default MiddleTruncate;\nexport { MiddleTruncate };\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport styles from './app.scss';\n\nimport Input from 'components/input';\nimport Range from 'components/range';\nimport MiddleTruncate from 'lib';\n\nclass App extends Component {\n static propTypes = {\n className: PropTypes.string\n };\n\n static defaultProps = {\n className: ''\n };\n\n state = {\n start: /Lorem\\sipsum/,\n end: 5,\n width: 55,\n text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer risus ante, molestie eu ex suscipit, mollis pellentesque metus.',\n ellipsis: '...'\n }\n\n onDemoTextChange = (event) => {\n this.setState({\n text: event.target.value\n });\n }\n\n onDemoStartChange = (event) => {\n this.setState({\n start: event.target.value\n }, () => {\n window.dispatchEvent( new Event('resize') );\n });\n }\n\n onDemoEndChange = (event) => {\n this.setState({\n end: event.target.value\n }, () => {\n window.dispatchEvent( new Event('resize') );\n });\n }\n\n onDemoWidthChange = (event) => {\n this.setState({\n width: event.target.value\n }, () => {\n window.dispatchEvent( new Event('resize') );\n });\n }\n\n onDemoEllipsisChange = (event) => {\n this.setState({\n ellipsis: event.target.value\n }, () => {\n window.dispatchEvent( new Event('resize') );\n });\n }\n\n render() {\n const { className } = this.props;\n const { start, end, width, text, ellipsis } = this.state;\n\n const _className = classnames(\n styles.root,\n className\n );\n\n const demoStyle = {\n width: `${width}%`\n };\n\n return (\n
\n
\n \n\n \n\n \n\n \n
\n\n
\n
\n
width: {width}%
\n
\n\n {text && \n \n
}\n\n
\n \n
\n\n
\n

Enter text to trucate in the input. Drag the slider above to increase/decrease the width\n of the parent container to see the middle truncation be applied.

\n\n

If you wish to preserve portions of the start and/or end of the text, you can enter either a\n numeric value, or a regular expression to find the character position to preserve up to.

\n
\n \n \n );\n }\n}\n\nexport default App;\nexport { App };\n","import App from './app';\n\nexport default App;\nexport { App };\n","import React from 'react';\nimport { render } from 'react-dom';\nimport { AppContainer } from 'react-hot-loader';\nimport Redbox from 'redbox-react';\nimport 'raf/polyfill'; // requestAnimationFrame Polyfill\n\n// Import the global scss file. These are the only global styles declared for the application.\n// All other styles should be defined as component CSS-Module styles (ie: each component has its own associated .scss file)\nimport 'scss/index.scss';\n\n// Import our main application container after global styles\nimport App from 'containers/app';\n\n// Since we are using HtmlWebpackPlugin WITHOUT a template,\n// we should create our own root node in the body element before rendering into it.\nconst root = document.createElement('div');\nroot.id = 'root';\ndocument.body.appendChild(root);\n\n// Create a HMR enabled render function\nconst hmrRender = Component => {\n render(\n \n \n ,\n document.getElementById('root')\n );\n};\n\n// Render our application to the DOM\nhmrRender(App);\n\nif (module.hot) {\n module.hot.accept('containers/app', () => {\n hmrRender(App);\n });\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"component\":\"_3ae9K\",\"input\":\"_3yn8S\",\"label\":\"_2x0ZM\"};"],"sourceRoot":""} \ No newline at end of file diff --git a/demo/vendor.js b/demo/vendor.js index 9fcc779..7a395bf 100644 --- a/demo/vendor.js +++ b/demo/vendor.js @@ -1,4 +1,4 @@ -(window.webpackJsonpReactMiddleTruncation=window.webpackJsonpReactMiddleTruncation||[]).push([[1],[function(e,t,n){"use strict";e.exports=n(18)},function(e,t,n){e.exports=n(27)()},function(e,t,n){var r; +(window.webpackJsonpReactMiddleTruncation=window.webpackJsonpReactMiddleTruncation||[]).push([[1],[function(e,t,n){"use strict";e.exports=n(17)},function(e,t,n){e.exports=n(26)()},function(e,t,n){var r; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see @@ -9,20 +9,20 @@ Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ -!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t - * Copyright JS Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var i,u=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="__lodash_hash_undefined__",f=500,s="__lodash_placeholder__",p=1,d=2,h=4,v=1,g=2,m=1,y=2,_=4,b=8,w=16,x=32,k=64,E=128,C=256,T=512,S=30,O="...",P=800,N=16,R=1,A=2,L=1/0,M=9007199254740991,j=1.7976931348623157e308,I=NaN,F=4294967295,D=F-1,U=F>>>1,z=[["ary",E],["bind",m],["bindKey",y],["curry",b],["curryRight",w],["flip",T],["partial",x],["partialRight",k],["rearg",C]],B="[object Arguments]",W="[object Array]",$="[object AsyncFunction]",V="[object Boolean]",H="[object Date]",q="[object DOMException]",G="[object Error]",K="[object Function]",Z="[object GeneratorFunction]",Q="[object Map]",X="[object Number]",Y="[object Null]",J="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",oe="[object Symbol]",ie="[object Undefined]",ue="[object WeakMap]",ae="[object WeakSet]",le="[object ArrayBuffer]",ce="[object DataView]",fe="[object Float32Array]",se="[object Float64Array]",pe="[object Int8Array]",de="[object Int16Array]",he="[object Int32Array]",ve="[object Uint8Array]",ge="[object Uint8ClampedArray]",me="[object Uint16Array]",ye="[object Uint32Array]",_e=/\b__p \+= '';/g,be=/\b(__p \+=) '' \+/g,we=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xe=/&(?:amp|lt|gt|quot|#39);/g,ke=/[&<>"']/g,Ee=RegExp(xe.source),Ce=RegExp(ke.source),Te=/<%-([\s\S]+?)%>/g,Se=/<%([\s\S]+?)%>/g,Oe=/<%=([\s\S]+?)%>/g,Pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ne=/^\w*$/,Re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ae=/[\\^$.*+?()[\]{}|]/g,Le=RegExp(Ae.source),Me=/^\s+|\s+$/g,je=/^\s+/,Ie=/\s+$/,Fe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,De=/\{\n\/\* \[wrapped with (.+)\] \*/,Ue=/,? & /,ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Be=/\\(\\)?/g,We=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$e=/\w*$/,Ve=/^[-+]0x[0-9a-f]+$/i,He=/^0b[01]+$/i,qe=/^\[object .+?Constructor\]$/,Ge=/^0o[0-7]+$/i,Ke=/^(?:0|[1-9]\d*)$/,Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qe=/($^)/,Xe=/['\n\r\u2028\u2029\\]/g,Ye="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Je="\\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",et="[\\ud800-\\udfff]",tt="["+Je+"]",nt="["+Ye+"]",rt="\\d+",ot="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",ut="[^\\ud800-\\udfff"+Je+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",at="\\ud83c[\\udffb-\\udfff]",lt="[^\\ud800-\\udfff]",ct="(?:\\ud83c[\\udde6-\\uddff]){2}",ft="[\\ud800-\\udbff][\\udc00-\\udfff]",st="[A-Z\\xc0-\\xd6\\xd8-\\xde]",pt="(?:"+it+"|"+ut+")",dt="(?:"+st+"|"+ut+")",ht="(?:"+nt+"|"+at+")"+"?",vt="[\\ufe0e\\ufe0f]?"+ht+("(?:\\u200d(?:"+[lt,ct,ft].join("|")+")[\\ufe0e\\ufe0f]?"+ht+")*"),gt="(?:"+[ot,ct,ft].join("|")+")"+vt,mt="(?:"+[lt+nt+"?",nt,ct,ft,et].join("|")+")",yt=RegExp("['’]","g"),_t=RegExp(nt,"g"),bt=RegExp(at+"(?="+at+")|"+mt+vt,"g"),wt=RegExp([st+"?"+it+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,st,"$"].join("|")+")",dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,st+pt,"$"].join("|")+")",st+"?"+pt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",st+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt,gt].join("|"),"g"),xt=RegExp("[\\u200d\\ud800-\\udfff"+Ye+"\\ufe0e\\ufe0f]"),kt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Et=["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"],Ct=-1,Tt={};Tt[fe]=Tt[se]=Tt[pe]=Tt[de]=Tt[he]=Tt[ve]=Tt[ge]=Tt[me]=Tt[ye]=!0,Tt[B]=Tt[W]=Tt[le]=Tt[V]=Tt[ce]=Tt[H]=Tt[G]=Tt[K]=Tt[Q]=Tt[X]=Tt[J]=Tt[te]=Tt[ne]=Tt[re]=Tt[ue]=!1;var St={};St[B]=St[W]=St[le]=St[ce]=St[V]=St[H]=St[fe]=St[se]=St[pe]=St[de]=St[he]=St[Q]=St[X]=St[J]=St[te]=St[ne]=St[re]=St[oe]=St[ve]=St[ge]=St[me]=St[ye]=!0,St[G]=St[K]=St[ue]=!1;var Ot={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Pt=parseFloat,Nt=parseInt,Rt="object"==typeof e&&e&&e.Object===Object&&e,At="object"==typeof self&&self&&self.Object===Object&&self,Lt=Rt||At||Function("return this")(),Mt="object"==typeof t&&t&&!t.nodeType&&t,jt=Mt&&"object"==typeof r&&r&&!r.nodeType&&r,It=jt&&jt.exports===Mt,Ft=It&&Rt.process,Dt=function(){try{var e=jt&&jt.require&&jt.require("util").types;return e||Ft&&Ft.binding&&Ft.binding("util")}catch(e){}}(),Ut=Dt&&Dt.isArrayBuffer,zt=Dt&&Dt.isDate,Bt=Dt&&Dt.isMap,Wt=Dt&&Dt.isRegExp,$t=Dt&&Dt.isSet,Vt=Dt&&Dt.isTypedArray;function Ht(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 qt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Yt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function wn(e,t){for(var n=e.length;n--&&ln(t,e[n],0)>-1;);return n}var xn=dn({"À":"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"}),kn=dn({"&":"&","<":"<",">":">",'"':""","'":"'"});function En(e){return"\\"+Ot[e]}function Cn(e){return xt.test(e)}function Tn(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 On(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var jn=function e(t){var n=(t=null==t?Lt:jn.defaults(Lt.Object(),t,jn.pick(Lt,Et))).Array,r=t.Date,o=t.Error,Ye=t.Function,Je=t.Math,et=t.Object,tt=t.RegExp,nt=t.String,rt=t.TypeError,ot=n.prototype,it=Ye.prototype,ut=et.prototype,at=t["__core-js_shared__"],lt=it.toString,ct=ut.hasOwnProperty,ft=0,st=function(){var e=/[^.]+$/.exec(at&&at.keys&&at.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),pt=ut.toString,dt=lt.call(et),ht=Lt._,vt=tt("^"+lt.call(ct).replace(Ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=It?t.Buffer:i,mt=t.Symbol,bt=t.Uint8Array,xt=gt?gt.allocUnsafe:i,Ot=Sn(et.getPrototypeOf,et),Rt=et.create,At=ut.propertyIsEnumerable,Mt=ot.splice,jt=mt?mt.isConcatSpreadable:i,Ft=mt?mt.iterator:i,Dt=mt?mt.toStringTag:i,on=function(){try{var e=Ui(et,"defineProperty");return e({},"",{}),e}catch(e){}}(),dn=t.clearTimeout!==Lt.clearTimeout&&t.clearTimeout,In=r&&r.now!==Lt.Date.now&&r.now,Fn=t.setTimeout!==Lt.setTimeout&&t.setTimeout,Dn=Je.ceil,Un=Je.floor,zn=et.getOwnPropertySymbols,Bn=gt?gt.isBuffer:i,Wn=t.isFinite,$n=ot.join,Vn=Sn(et.keys,et),Hn=Je.max,qn=Je.min,Gn=r.now,Kn=t.parseInt,Zn=Je.random,Qn=ot.reverse,Xn=Ui(t,"DataView"),Yn=Ui(t,"Map"),Jn=Ui(t,"Promise"),er=Ui(t,"Set"),tr=Ui(t,"WeakMap"),nr=Ui(et,"create"),rr=tr&&new tr,or={},ir=fu(Xn),ur=fu(Yn),ar=fu(Jn),lr=fu(er),cr=fu(tr),fr=mt?mt.prototype:i,sr=fr?fr.valueOf:i,pr=fr?fr.toString:i;function dr(e){if(Sa(e)&&!ga(e)&&!(e instanceof mr)){if(e instanceof gr)return e;if(ct.call(e,"__wrapped__"))return su(e)}return new gr(e)}var hr=function(){function e(){}return function(t){if(!Ta(t))return{};if(Rt)return Rt(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function vr(){}function gr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function mr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=F,this.__views__=[]}function yr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function jr(e,t,n,r,o,u){var a,l=t&p,c=t&d,f=t&h;if(n&&(a=o?n(e,r,o,u):n(e)),a!==i)return a;if(!Ta(e))return e;var s=ga(e);if(s){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return ri(e,a)}else{var v=Wi(e),g=v==K||v==Z;if(ba(e))return Xo(e,l);if(v==J||v==B||g&&!o){if(a=c||g?{}:Vi(e),!l)return c?function(e,t){return oi(e,Bi(e),t)}(e,function(e,t){return e&&oi(t,ol(t),e)}(a,e)):function(e,t){return oi(e,zi(e),t)}(e,Rr(a,e))}else{if(!St[v])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case le:return Yo(e);case V:case H:return new r(+e);case ce:return function(e,t){var n=t?Yo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case fe:case se:case pe:case de:case he:case ve:case ge:case me:case ye:return Jo(e,n);case Q:return new r;case X:case re:return new r(e);case te:return function(e){var t=new e.constructor(e.source,$e.exec(e));return t.lastIndex=e.lastIndex,t}(e);case ne:return new r;case oe:return function(e){return sr?et(sr.call(e)):{}}(e)}}(e,v,l)}}u||(u=new xr);var m=u.get(e);if(m)return m;if(u.set(e,a),Aa(e))return e.forEach(function(r){a.add(jr(r,t,n,r,e,u))}),a;if(Oa(e))return e.forEach(function(r,o){a.set(o,jr(r,t,n,o,e,u))}),a;var y=s?i:(f?c?Ai:Ri:c?ol:rl)(e);return Gt(y||e,function(r,o){y&&(r=e[o=r]),Or(a,o,jr(r,t,n,o,e,u))}),a}function Ir(e,t,n){var r=n.length;if(null==e)return!r;for(e=et(e);r--;){var o=n[r],u=t[o],a=e[o];if(a===i&&!(o in e)||!u(a))return!1}return!0}function Fr(e,t,n){if("function"!=typeof e)throw new rt(l);return ru(function(){e.apply(i,n)},t)}function Dr(e,t,n,r){var o=-1,i=Xt,a=!0,l=e.length,c=[],f=t.length;if(!l)return c;n&&(t=Jt(t,mn(n))),r?(i=Yt,a=!1):t.length>=u&&(i=_n,a=!1,t=new wr(t));e:for(;++o-1},_r.prototype.set=function(e,t){var n=this.__data__,r=Pr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},br.prototype.clear=function(){this.size=0,this.__data__={hash:new yr,map:new(Yn||_r),string:new yr}},br.prototype.delete=function(e){var t=Fi(this,e).delete(e);return this.size-=t?1:0,t},br.prototype.get=function(e){return Fi(this,e).get(e)},br.prototype.has=function(e){return Fi(this,e).has(e)},br.prototype.set=function(e,t){var n=Fi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},wr.prototype.add=wr.prototype.push=function(e){return this.__data__.set(e,c),this},wr.prototype.has=function(e){return this.__data__.has(e)},xr.prototype.clear=function(){this.__data__=new _r,this.size=0},xr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},xr.prototype.get=function(e){return this.__data__.get(e)},xr.prototype.has=function(e){return this.__data__.has(e)},xr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof _r){var r=n.__data__;if(!Yn||r.length0&&n(a)?t>1?Vr(a,t-1,n,r,o):en(o,a):r||(o[o.length]=a)}return o}var Hr=li(),qr=li(!0);function Gr(e,t){return e&&Hr(e,t,rl)}function Kr(e,t){return e&&qr(e,t,rl)}function Zr(e,t){return Qt(t,function(t){return ka(e[t])})}function Qr(e,t){for(var n=0,r=(t=Go(t,e)).length;null!=e&&nt}function eo(e,t){return null!=e&&ct.call(e,t)}function to(e,t){return null!=e&&t in et(e)}function no(e,t,r){for(var o=r?Yt:Xt,u=e[0].length,a=e.length,l=a,c=n(a),f=1/0,s=[];l--;){var p=e[l];l&&t&&(p=Jt(p,mn(t))),f=qn(p.length,f),c[l]=!r&&(t||u>=120&&p.length>=120)?new wr(l&&p):i}p=e[0];var d=-1,h=c[0];e:for(;++d=a)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)})}function _o(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)a!==e&&Mt.call(a,l,1),Mt.call(e,l,1);return e}function wo(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;qi(o)?Mt.call(e,o,1):Uo(e,o)}}return e}function xo(e,t){return e+Un(Zn()*(t-e+1))}function ko(e,t){var n="";if(!e||t<1||t>M)return n;do{t%2&&(n+=e),(t=Un(t/2))&&(e+=e)}while(t);return n}function Eo(e,t){return ou(eu(e,t,Pl),e+"")}function Co(e){return Er(pl(e))}function To(e,t){var n=pl(e);return au(n,Mr(t,0,n.length))}function So(e,t,n,r){if(!Ta(e))return e;for(var o=-1,u=(t=Go(t,e)).length,a=u-1,l=e;null!=l&&++oi?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var u=n(i);++o>>1,u=e[i];null!==u&&!Ma(u)&&(n?u<=t:u=u){var f=t?null:ki(e);if(f)return Nn(f);a=!1,o=_n,c=new wr}else c=t?[]:l;e:for(;++r=r?e:Ro(e,t,n)}var Qo=dn||function(e){return Lt.clearTimeout(e)};function Xo(e,t){if(t)return e.slice();var n=e.length,r=xt?xt(n):new e.constructor(n);return e.copy(r),r}function Yo(e){var t=new e.constructor(e.byteLength);return new bt(t).set(new bt(e)),t}function Jo(e,t){var n=t?Yo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ei(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,u=Ma(e),a=t!==i,l=null===t,c=t==t,f=Ma(t);if(!l&&!f&&!u&&e>t||u&&a&&c&&!l&&!f||r&&a&&c||!n&&c||!o)return 1;if(!r&&!u&&!f&&e1?n[o-1]:i,a=o>2?n[2]:i;for(u=e.length>3&&"function"==typeof u?(o--,u):i,a&&Gi(n[0],n[1],a)&&(u=o<3?i:u,o=1),t=et(t);++r-1?o[u?t[a]:a]:i}}function di(e){return Ni(function(t){var n=t.length,r=n,o=gr.prototype.thru;for(e&&t.reverse();r--;){var u=t[r];if("function"!=typeof u)throw new rt(l);if(o&&!a&&"wrapper"==Mi(u))var a=new gr([],!0)}for(r=a?r:n;++r1&&b.reverse(),p&&fl))return!1;var f=u.get(e);if(f&&u.get(t))return f==t;var s=-1,p=!0,d=n&g?new wr:i;for(u.set(e,t),u.set(t,e);++s-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Fe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Gt(z,function(n){var r="_."+n[0];t&n[1]&&!Xt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(De);return t?t[1].split(Ue):[]}(r),n)))}function uu(e){var t=0,n=0;return function(){var r=Gn(),o=N-(r-n);if(n=r,o>0){if(++t>=P)return arguments[0]}else t=0;return e.apply(i,arguments)}}function au(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return Ru(e,n="function"==typeof n?(e.pop(),n):i)});function Du(e){var t=dr(e);return t.__chain__=!0,t}function Uu(e,t){return t(e)}var zu=Ni(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Lr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof mr&&qi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Uu,args:[o],thisArg:i}),new gr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});var Bu=ii(function(e,t,n){ct.call(e,n)?++e[n]:Ar(e,n,1)});var Wu=pi(vu),$u=pi(gu);function Vu(e,t){return(ga(e)?Gt:Ur)(e,Ii(t,3))}function Hu(e,t){return(ga(e)?Kt:zr)(e,Ii(t,3))}var qu=ii(function(e,t,n){ct.call(e,n)?e[n].push(t):Ar(e,n,[t])});var Gu=Eo(function(e,t,r){var o=-1,i="function"==typeof t,u=ya(e)?n(e.length):[];return Ur(e,function(e){u[++o]=i?Ht(t,e,r):ro(e,t,r)}),u}),Ku=ii(function(e,t,n){Ar(e,n,t)});function Zu(e,t){return(ga(e)?Jt:po)(e,Ii(t,3))}var Qu=ii(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Xu=Eo(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Gi(e,t[0],t[1])?t=[]:n>2&&Gi(t[0],t[1],t[2])&&(t=[t[0]]),yo(e,Vr(t,1),[])}),Yu=In||function(){return Lt.Date.now()};function Ju(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ci(e,E,i,i,i,i,t)}function ea(e,t){var n;if("function"!=typeof t)throw new rt(l);return e=za(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var ta=Eo(function(e,t,n){var r=m;if(n.length){var o=On(n,ji(ta));r|=x}return Ci(e,r,t,n,o)}),na=Eo(function(e,t,n){var r=m|y;if(n.length){var o=On(n,ji(na));r|=x}return Ci(t,r,e,n,o)});function ra(e,t,n){var r,o,u,a,c,f,s=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new rt(l);function v(t){var n=r,u=o;return r=o=i,s=t,a=e.apply(u,n)}function g(e){var n=e-f;return f===i||n>=t||n<0||d&&e-s>=u}function m(){var e=Yu();if(g(e))return y(e);c=ru(m,function(e){var n=t-(e-f);return d?qn(n,u-(e-s)):n}(e))}function y(e){return c=i,h&&r?v(e):(r=o=i,a)}function _(){var e=Yu(),n=g(e);if(r=arguments,o=this,f=e,n){if(c===i)return function(e){return s=e,c=ru(m,t),p?v(e):a}(f);if(d)return c=ru(m,t),v(f)}return c===i&&(c=ru(m,t)),a}return t=Wa(t)||0,Ta(n)&&(p=!!n.leading,u=(d="maxWait"in n)?Hn(Wa(n.maxWait)||0,t):u,h="trailing"in n?!!n.trailing:h),_.cancel=function(){c!==i&&Qo(c),s=0,r=f=o=c=i},_.flush=function(){return c===i?a:y(Yu())},_}var oa=Eo(function(e,t){return Fr(e,1,t)}),ia=Eo(function(e,t,n){return Fr(e,Wa(t)||0,n)});function ua(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new rt(l);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=e.apply(this,r);return n.cache=i.set(o,u)||i,u};return n.cache=new(ua.Cache||br),n}function aa(e){if("function"!=typeof e)throw new rt(l);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)}}ua.Cache=br;var la=Ko(function(e,t){var n=(t=1==t.length&&ga(t[0])?Jt(t[0],mn(Ii())):Jt(Vr(t,1),mn(Ii()))).length;return Eo(function(r){for(var o=-1,i=qn(r.length,n);++o=t}),va=oo(function(){return arguments}())?oo:function(e){return Sa(e)&&ct.call(e,"callee")&&!At.call(e,"callee")},ga=n.isArray,ma=Ut?mn(Ut):function(e){return Sa(e)&&Yr(e)==le};function ya(e){return null!=e&&Ca(e.length)&&!ka(e)}function _a(e){return Sa(e)&&ya(e)}var ba=Bn||Wl,wa=zt?mn(zt):function(e){return Sa(e)&&Yr(e)==H};function xa(e){if(!Sa(e))return!1;var t=Yr(e);return t==G||t==q||"string"==typeof e.message&&"string"==typeof e.name&&!Na(e)}function ka(e){if(!Ta(e))return!1;var t=Yr(e);return t==K||t==Z||t==$||t==ee}function Ea(e){return"number"==typeof e&&e==za(e)}function Ca(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=M}function Ta(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Sa(e){return null!=e&&"object"==typeof e}var Oa=Bt?mn(Bt):function(e){return Sa(e)&&Wi(e)==Q};function Pa(e){return"number"==typeof e||Sa(e)&&Yr(e)==X}function Na(e){if(!Sa(e)||Yr(e)!=J)return!1;var t=Ot(e);if(null===t)return!0;var n=ct.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&<.call(n)==dt}var Ra=Wt?mn(Wt):function(e){return Sa(e)&&Yr(e)==te};var Aa=$t?mn($t):function(e){return Sa(e)&&Wi(e)==ne};function La(e){return"string"==typeof e||!ga(e)&&Sa(e)&&Yr(e)==re}function Ma(e){return"symbol"==typeof e||Sa(e)&&Yr(e)==oe}var ja=Vt?mn(Vt):function(e){return Sa(e)&&Ca(e.length)&&!!Tt[Yr(e)]};var Ia=bi(so),Fa=bi(function(e,t){return e<=t});function Da(e){if(!e)return[];if(ya(e))return La(e)?Ln(e):ri(e);if(Ft&&e[Ft])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ft]());var t=Wi(e);return(t==Q?Tn:t==ne?Nn:pl)(e)}function Ua(e){return e?(e=Wa(e))===L||e===-L?(e<0?-1:1)*j:e==e?e:0:0===e?e:0}function za(e){var t=Ua(e),n=t%1;return t==t?n?t-n:t:0}function Ba(e){return e?Mr(za(e),0,F):0}function Wa(e){if("number"==typeof e)return e;if(Ma(e))return I;if(Ta(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ta(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Me,"");var n=He.test(e);return n||Ge.test(e)?Nt(e.slice(2),n?2:8):Ve.test(e)?I:+e}function $a(e){return oi(e,ol(e))}function Va(e){return null==e?"":Fo(e)}var Ha=ui(function(e,t){if(Xi(t)||ya(t))oi(t,rl(t),e);else for(var n in t)ct.call(t,n)&&Or(e,n,t[n])}),qa=ui(function(e,t){oi(t,ol(t),e)}),Ga=ui(function(e,t,n,r){oi(t,ol(t),e,r)}),Ka=ui(function(e,t,n,r){oi(t,rl(t),e,r)}),Za=Ni(Lr);var Qa=Eo(function(e,t){e=et(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&Gi(t[0],t[1],o)&&(r=1);++n1),t}),oi(e,Ai(e),n),r&&(n=jr(n,p|d|h,Oi));for(var o=t.length;o--;)Uo(n,t[o]);return n});var ll=Ni(function(e,t){return null==e?{}:function(e,t){return _o(e,t,function(t,n){return Ja(e,n)})}(e,t)});function cl(e,t){if(null==e)return{};var n=Jt(Ai(e),function(e){return[e]});return t=Ii(t),_o(e,n,function(e,n){return t(e,n[0])})}var fl=Ei(rl),sl=Ei(ol);function pl(e){return null==e?[]:yn(e,rl(e))}var dl=fi(function(e,t,n){return t=t.toLowerCase(),e+(n?hl(t):t)});function hl(e){return xl(Va(e).toLowerCase())}function vl(e){return(e=Va(e))&&e.replace(Ze,xn).replace(_t,"")}var gl=fi(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),ml=fi(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),yl=ci("toLowerCase");var _l=fi(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var bl=fi(function(e,t,n){return e+(n?" ":"")+xl(t)});var wl=fi(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),xl=ci("toUpperCase");function kl(e,t,n){return e=Va(e),(t=n?i:t)===i?function(e){return kt.test(e)}(e)?function(e){return e.match(wt)||[]}(e):function(e){return e.match(ze)||[]}(e):e.match(t)||[]}var El=Eo(function(e,t){try{return Ht(e,i,t)}catch(e){return xa(e)?e:new o(e)}}),Cl=Ni(function(e,t){return Gt(t,function(t){t=cu(t),Ar(e,t,ta(e[t],e))}),e});function Tl(e){return function(){return e}}var Sl=di(),Ol=di(!0);function Pl(e){return e}function Nl(e){return lo("function"==typeof e?e:jr(e,p))}var Rl=Eo(function(e,t){return function(n){return ro(n,e,t)}}),Al=Eo(function(e,t){return function(n){return ro(e,n,t)}});function Ll(e,t,n){var r=rl(t),o=Zr(t,r);null!=n||Ta(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Zr(t,rl(t)));var i=!(Ta(n)&&"chain"in n&&!n.chain),u=ka(e);return Gt(o,function(n){var r=t[n];e[n]=r,u&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=ri(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function Ml(){}var jl=mi(Jt),Il=mi(Zt),Fl=mi(rn);function Dl(e){return Ki(e)?pn(cu(e)):function(e){return function(t){return Qr(t,e)}}(e)}var Ul=_i(),zl=_i(!0);function Bl(){return[]}function Wl(){return!1}var $l=gi(function(e,t){return e+t},0),Vl=xi("ceil"),Hl=gi(function(e,t){return e/t},1),ql=xi("floor");var Gl=gi(function(e,t){return e*t},1),Kl=xi("round"),Zl=gi(function(e,t){return e-t},0);return dr.after=function(e,t){if("function"!=typeof t)throw new rt(l);return e=za(e),function(){if(--e<1)return t.apply(this,arguments)}},dr.ary=Ju,dr.assign=Ha,dr.assignIn=qa,dr.assignInWith=Ga,dr.assignWith=Ka,dr.at=Za,dr.before=ea,dr.bind=ta,dr.bindAll=Cl,dr.bindKey=na,dr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ga(e)?e:[e]},dr.chain=Du,dr.chunk=function(e,t,r){t=(r?Gi(e,t,r):t===i)?1:Hn(za(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var u=0,a=0,l=n(Dn(o/t));uo?0:o+n),(r=r===i||r>o?o:za(r))<0&&(r+=o),r=n>r?0:Ba(r);n>>0)?(e=Va(e))&&("string"==typeof t||null!=t&&!Ra(t))&&!(t=Fo(t))&&Cn(e)?Zo(Ln(e),0,n):e.split(t,n):[]},dr.spread=function(e,t){if("function"!=typeof e)throw new rt(l);return t=null==t?0:Hn(za(t),0),Eo(function(n){var r=n[t],o=Zo(n,0,t);return r&&en(o,r),Ht(e,this,o)})},dr.tail=function(e){var t=null==e?0:e.length;return t?Ro(e,1,t):[]},dr.take=function(e,t,n){return e&&e.length?Ro(e,0,(t=n||t===i?1:za(t))<0?0:t):[]},dr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Ro(e,(t=r-(t=n||t===i?1:za(t)))<0?0:t,r):[]},dr.takeRightWhile=function(e,t){return e&&e.length?Bo(e,Ii(t,3),!1,!0):[]},dr.takeWhile=function(e,t){return e&&e.length?Bo(e,Ii(t,3)):[]},dr.tap=function(e,t){return t(e),e},dr.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new rt(l);return Ta(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ra(e,t,{leading:r,maxWait:t,trailing:o})},dr.thru=Uu,dr.toArray=Da,dr.toPairs=fl,dr.toPairsIn=sl,dr.toPath=function(e){return ga(e)?Jt(e,cu):Ma(e)?[e]:ri(lu(Va(e)))},dr.toPlainObject=$a,dr.transform=function(e,t,n){var r=ga(e),o=r||ba(e)||ja(e);if(t=Ii(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Ta(e)&&ka(i)?hr(Ot(e)):{}}return(o?Gt:Gr)(e,function(e,r,o){return t(n,e,r,o)}),n},dr.unary=function(e){return Ju(e,1)},dr.union=Su,dr.unionBy=Ou,dr.unionWith=Pu,dr.uniq=function(e){return e&&e.length?Do(e):[]},dr.uniqBy=function(e,t){return e&&e.length?Do(e,Ii(t,2)):[]},dr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Do(e,i,t):[]},dr.unset=function(e,t){return null==e||Uo(e,t)},dr.unzip=Nu,dr.unzipWith=Ru,dr.update=function(e,t,n){return null==e?e:zo(e,t,qo(n))},dr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:zo(e,t,qo(n),r)},dr.values=pl,dr.valuesIn=function(e){return null==e?[]:yn(e,ol(e))},dr.without=Au,dr.words=kl,dr.wrap=function(e,t){return ca(qo(t),e)},dr.xor=Lu,dr.xorBy=Mu,dr.xorWith=ju,dr.zip=Iu,dr.zipObject=function(e,t){return Vo(e||[],t||[],Or)},dr.zipObjectDeep=function(e,t){return Vo(e||[],t||[],So)},dr.zipWith=Fu,dr.entries=fl,dr.entriesIn=sl,dr.extend=qa,dr.extendWith=Ga,Ll(dr,dr),dr.add=$l,dr.attempt=El,dr.camelCase=dl,dr.capitalize=hl,dr.ceil=Vl,dr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Wa(n))==n?n:0),t!==i&&(t=(t=Wa(t))==t?t:0),Mr(Wa(e),t,n)},dr.clone=function(e){return jr(e,h)},dr.cloneDeep=function(e){return jr(e,p|h)},dr.cloneDeepWith=function(e,t){return jr(e,p|h,t="function"==typeof t?t:i)},dr.cloneWith=function(e,t){return jr(e,h,t="function"==typeof t?t:i)},dr.conformsTo=function(e,t){return null==t||Ir(e,t,rl(t))},dr.deburr=vl,dr.defaultTo=function(e,t){return null==e||e!=e?t:e},dr.divide=Hl,dr.endsWith=function(e,t,n){e=Va(e),t=Fo(t);var r=e.length,o=n=n===i?r:Mr(za(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},dr.eq=pa,dr.escape=function(e){return(e=Va(e))&&Ce.test(e)?e.replace(ke,kn):e},dr.escapeRegExp=function(e){return(e=Va(e))&&Le.test(e)?e.replace(Ae,"\\$&"):e},dr.every=function(e,t,n){var r=ga(e)?Zt:Br;return n&&Gi(e,t,n)&&(t=i),r(e,Ii(t,3))},dr.find=Wu,dr.findIndex=vu,dr.findKey=function(e,t){return un(e,Ii(t,3),Gr)},dr.findLast=$u,dr.findLastIndex=gu,dr.findLastKey=function(e,t){return un(e,Ii(t,3),Kr)},dr.floor=ql,dr.forEach=Vu,dr.forEachRight=Hu,dr.forIn=function(e,t){return null==e?e:Hr(e,Ii(t,3),ol)},dr.forInRight=function(e,t){return null==e?e:qr(e,Ii(t,3),ol)},dr.forOwn=function(e,t){return e&&Gr(e,Ii(t,3))},dr.forOwnRight=function(e,t){return e&&Kr(e,Ii(t,3))},dr.get=Ya,dr.gt=da,dr.gte=ha,dr.has=function(e,t){return null!=e&&$i(e,t,eo)},dr.hasIn=Ja,dr.head=yu,dr.identity=Pl,dr.includes=function(e,t,n,r){e=ya(e)?e:pl(e),n=n&&!r?za(n):0;var o=e.length;return n<0&&(n=Hn(o+n,0)),La(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&ln(e,t,n)>-1},dr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:za(n);return o<0&&(o=Hn(r+o,0)),ln(e,t,o)},dr.inRange=function(e,t,n){return t=Ua(t),n===i?(n=t,t=0):n=Ua(n),function(e,t,n){return e>=qn(t,n)&&e=-M&&e<=M},dr.isSet=Aa,dr.isString=La,dr.isSymbol=Ma,dr.isTypedArray=ja,dr.isUndefined=function(e){return e===i},dr.isWeakMap=function(e){return Sa(e)&&Wi(e)==ue},dr.isWeakSet=function(e){return Sa(e)&&Yr(e)==ae},dr.join=function(e,t){return null==e?"":$n.call(e,t)},dr.kebabCase=gl,dr.last=xu,dr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=za(n))<0?Hn(r+o,0):qn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):an(e,fn,o,!0)},dr.lowerCase=ml,dr.lowerFirst=yl,dr.lt=Ia,dr.lte=Fa,dr.max=function(e){return e&&e.length?Wr(e,Pl,Jr):i},dr.maxBy=function(e,t){return e&&e.length?Wr(e,Ii(t,2),Jr):i},dr.mean=function(e){return sn(e,Pl)},dr.meanBy=function(e,t){return sn(e,Ii(t,2))},dr.min=function(e){return e&&e.length?Wr(e,Pl,so):i},dr.minBy=function(e,t){return e&&e.length?Wr(e,Ii(t,2),so):i},dr.stubArray=Bl,dr.stubFalse=Wl,dr.stubObject=function(){return{}},dr.stubString=function(){return""},dr.stubTrue=function(){return!0},dr.multiply=Gl,dr.nth=function(e,t){return e&&e.length?mo(e,za(t)):i},dr.noConflict=function(){return Lt._===this&&(Lt._=ht),this},dr.noop=Ml,dr.now=Yu,dr.pad=function(e,t,n){e=Va(e);var r=(t=za(t))?An(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return yi(Un(o),n)+e+yi(Dn(o),n)},dr.padEnd=function(e,t,n){e=Va(e);var r=(t=za(t))?An(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Zn();return qn(e+o*(t-e+Pt("1e-"+((o+"").length-1))),t)}return xo(e,t)},dr.reduce=function(e,t,n){var r=ga(e)?tn:hn,o=arguments.length<3;return r(e,Ii(t,4),n,o,Ur)},dr.reduceRight=function(e,t,n){var r=ga(e)?nn:hn,o=arguments.length<3;return r(e,Ii(t,4),n,o,zr)},dr.repeat=function(e,t,n){return t=(n?Gi(e,t,n):t===i)?1:za(t),ko(Va(e),t)},dr.replace=function(){var e=arguments,t=Va(e[0]);return e.length<3?t:t.replace(e[1],e[2])},dr.result=function(e,t,n){var r=-1,o=(t=Go(t,e)).length;for(o||(o=1,e=i);++rM)return[];var n=F,r=qn(e,F);t=Ii(t),e-=F;for(var o=gn(r,t);++n=u)return e;var l=n-An(r);if(l<1)return r;var c=a?Zo(a,0,l).join(""):e.slice(0,l);if(o===i)return c+r;if(a&&(l+=c.length-l),Ra(o)){if(e.slice(l).search(o)){var f,s=c;for(o.global||(o=tt(o.source,Va($e.exec(o))+"g")),o.lastIndex=0;f=o.exec(s);)var p=f.index;c=c.slice(0,p===i?l:p)}}else if(e.indexOf(Fo(o),l)!=l){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+r},dr.unescape=function(e){return(e=Va(e))&&Ee.test(e)?e.replace(xe,Mn):e},dr.uniqueId=function(e){var t=++ft;return Va(e)+t},dr.upperCase=wl,dr.upperFirst=xl,dr.each=Vu,dr.eachRight=Hu,dr.first=yu,Ll(dr,function(){var e={};return Gr(dr,function(t,n){ct.call(dr.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),dr.VERSION="4.17.10",Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){dr[e].placeholder=dr}),Gt(["drop","take"],function(e,t){mr.prototype[e]=function(n){n=n===i?1:Hn(za(n),0);var r=this.__filtered__&&!t?new mr(this):this.clone();return r.__filtered__?r.__takeCount__=qn(n,r.__takeCount__):r.__views__.push({size:qn(n,F),type:e+(r.__dir__<0?"Right":"")}),r},mr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Gt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==R||3==n;mr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ii(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Gt(["head","last"],function(e,t){var n="take"+(t?"Right":"");mr.prototype[e]=function(){return this[n](1).value()[0]}}),Gt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");mr.prototype[e]=function(){return this.__filtered__?new mr(this):this[n](1)}}),mr.prototype.compact=function(){return this.filter(Pl)},mr.prototype.find=function(e){return this.filter(e).head()},mr.prototype.findLast=function(e){return this.reverse().find(e)},mr.prototype.invokeMap=Eo(function(e,t){return"function"==typeof e?new mr(this):this.map(function(n){return ro(n,e,t)})}),mr.prototype.reject=function(e){return this.filter(aa(Ii(e)))},mr.prototype.slice=function(e,t){e=za(e);var n=this;return n.__filtered__&&(e>0||t<0)?new mr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=za(t))<0?n.dropRight(-t):n.take(t-e)),n)},mr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},mr.prototype.toArray=function(){return this.take(F)},Gr(mr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=dr[r?"take"+("last"==t?"Right":""):t],u=r||/^find/.test(t);o&&(dr.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,l=t instanceof mr,c=a[0],f=l||ga(t),s=function(e){var t=o.apply(dr,en([e],a));return r&&p?t[0]:t};f&&n&&"function"==typeof c&&1!=c.length&&(l=f=!1);var p=this.__chain__,d=!!this.__actions__.length,h=u&&!p,v=l&&!d;if(!u&&f){t=v?t:new mr(this);var g=e.apply(t,a);return g.__actions__.push({func:Uu,args:[s],thisArg:i}),new gr(g,p)}return h&&v?e.apply(this,a):(g=this.thru(s),h?r?g.value()[0]:g.value():g)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);dr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(ga(o)?o:[],e)}return this[n](function(n){return t.apply(ga(n)?n:[],e)})}}),Gr(mr.prototype,function(e,t){var n=dr[t];if(n){var r=n.name+"";(or[r]||(or[r]=[])).push({name:t,func:n})}}),or[hi(i,y).name]=[{name:"wrapper",func:i}],mr.prototype.clone=function(){var e=new mr(this.__wrapped__);return e.__actions__=ri(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ri(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ri(this.__views__),e},mr.prototype.reverse=function(){if(this.__filtered__){var e=new mr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},mr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ga(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},dr.prototype.plant=function(e){for(var t,n=this;n instanceof vr;){var r=su(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},dr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof mr){var t=e;return this.__actions__.length&&(t=new mr(this)),(t=t.reverse()).__actions__.push({func:Uu,args:[Tu],thisArg:i}),new gr(t,this.__chain__)}return this.thru(Tu)},dr.prototype.toJSON=dr.prototype.valueOf=dr.prototype.value=function(){return Wo(this.__wrapped__,this.__actions__)},dr.prototype.first=dr.prototype.head,Ft&&(dr.prototype[Ft]=function(){return this}),dr}();Lt._=jn,(o=function(){return jn}.call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(this,n(12),n(39)(e))},function(e,t,n){"use strict";e.exports=n(40)},,function(e,t,n){"use strict"; + */(function(){var i,u=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="__lodash_hash_undefined__",f=500,s="__lodash_placeholder__",p=1,d=2,h=4,v=1,g=2,m=1,y=2,_=4,b=8,w=16,x=32,k=64,E=128,C=256,T=512,S=30,O="...",P=800,N=16,R=1,A=2,L=1/0,M=9007199254740991,I=1.7976931348623157e308,j=NaN,F=4294967295,D=F-1,U=F>>>1,z=[["ary",E],["bind",m],["bindKey",y],["curry",b],["curryRight",w],["flip",T],["partial",x],["partialRight",k],["rearg",C]],B="[object Arguments]",W="[object Array]",$="[object AsyncFunction]",V="[object Boolean]",H="[object Date]",q="[object DOMException]",G="[object Error]",K="[object Function]",Z="[object GeneratorFunction]",Q="[object Map]",X="[object Number]",Y="[object Null]",J="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",oe="[object Symbol]",ie="[object Undefined]",ue="[object WeakMap]",ae="[object WeakSet]",le="[object ArrayBuffer]",ce="[object DataView]",fe="[object Float32Array]",se="[object Float64Array]",pe="[object Int8Array]",de="[object Int16Array]",he="[object Int32Array]",ve="[object Uint8Array]",ge="[object Uint8ClampedArray]",me="[object Uint16Array]",ye="[object Uint32Array]",_e=/\b__p \+= '';/g,be=/\b(__p \+=) '' \+/g,we=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xe=/&(?:amp|lt|gt|quot|#39);/g,ke=/[&<>"']/g,Ee=RegExp(xe.source),Ce=RegExp(ke.source),Te=/<%-([\s\S]+?)%>/g,Se=/<%([\s\S]+?)%>/g,Oe=/<%=([\s\S]+?)%>/g,Pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ne=/^\w*$/,Re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ae=/[\\^$.*+?()[\]{}|]/g,Le=RegExp(Ae.source),Me=/^\s+|\s+$/g,Ie=/^\s+/,je=/\s+$/,Fe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,De=/\{\n\/\* \[wrapped with (.+)\] \*/,Ue=/,? & /,ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Be=/\\(\\)?/g,We=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$e=/\w*$/,Ve=/^[-+]0x[0-9a-f]+$/i,He=/^0b[01]+$/i,qe=/^\[object .+?Constructor\]$/,Ge=/^0o[0-7]+$/i,Ke=/^(?:0|[1-9]\d*)$/,Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qe=/($^)/,Xe=/['\n\r\u2028\u2029\\]/g,Ye="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Je="\\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",et="[\\ud800-\\udfff]",tt="["+Je+"]",nt="["+Ye+"]",rt="\\d+",ot="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",ut="[^\\ud800-\\udfff"+Je+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",at="\\ud83c[\\udffb-\\udfff]",lt="[^\\ud800-\\udfff]",ct="(?:\\ud83c[\\udde6-\\uddff]){2}",ft="[\\ud800-\\udbff][\\udc00-\\udfff]",st="[A-Z\\xc0-\\xd6\\xd8-\\xde]",pt="(?:"+it+"|"+ut+")",dt="(?:"+st+"|"+ut+")",ht="(?:"+nt+"|"+at+")"+"?",vt="[\\ufe0e\\ufe0f]?"+ht+("(?:\\u200d(?:"+[lt,ct,ft].join("|")+")[\\ufe0e\\ufe0f]?"+ht+")*"),gt="(?:"+[ot,ct,ft].join("|")+")"+vt,mt="(?:"+[lt+nt+"?",nt,ct,ft,et].join("|")+")",yt=RegExp("['’]","g"),_t=RegExp(nt,"g"),bt=RegExp(at+"(?="+at+")|"+mt+vt,"g"),wt=RegExp([st+"?"+it+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,st,"$"].join("|")+")",dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,st+pt,"$"].join("|")+")",st+"?"+pt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",st+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt,gt].join("|"),"g"),xt=RegExp("[\\u200d\\ud800-\\udfff"+Ye+"\\ufe0e\\ufe0f]"),kt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Et=["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"],Ct=-1,Tt={};Tt[fe]=Tt[se]=Tt[pe]=Tt[de]=Tt[he]=Tt[ve]=Tt[ge]=Tt[me]=Tt[ye]=!0,Tt[B]=Tt[W]=Tt[le]=Tt[V]=Tt[ce]=Tt[H]=Tt[G]=Tt[K]=Tt[Q]=Tt[X]=Tt[J]=Tt[te]=Tt[ne]=Tt[re]=Tt[ue]=!1;var St={};St[B]=St[W]=St[le]=St[ce]=St[V]=St[H]=St[fe]=St[se]=St[pe]=St[de]=St[he]=St[Q]=St[X]=St[J]=St[te]=St[ne]=St[re]=St[oe]=St[ve]=St[ge]=St[me]=St[ye]=!0,St[G]=St[K]=St[ue]=!1;var Ot={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Pt=parseFloat,Nt=parseInt,Rt="object"==typeof e&&e&&e.Object===Object&&e,At="object"==typeof self&&self&&self.Object===Object&&self,Lt=Rt||At||Function("return this")(),Mt="object"==typeof t&&t&&!t.nodeType&&t,It=Mt&&"object"==typeof r&&r&&!r.nodeType&&r,jt=It&&It.exports===Mt,Ft=jt&&Rt.process,Dt=function(){try{var e=It&&It.require&&It.require("util").types;return e||Ft&&Ft.binding&&Ft.binding("util")}catch(e){}}(),Ut=Dt&&Dt.isArrayBuffer,zt=Dt&&Dt.isDate,Bt=Dt&&Dt.isMap,Wt=Dt&&Dt.isRegExp,$t=Dt&&Dt.isSet,Vt=Dt&&Dt.isTypedArray;function Ht(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 qt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Yt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function wn(e,t){for(var n=e.length;n--&&ln(t,e[n],0)>-1;);return n}var xn=dn({"À":"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"}),kn=dn({"&":"&","<":"<",">":">",'"':""","'":"'"});function En(e){return"\\"+Ot[e]}function Cn(e){return xt.test(e)}function Tn(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 On(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var Mn=function e(t){var n=(t=null==t?Lt:Mn.defaults(Lt.Object(),t,Mn.pick(Lt,Et))).Array,r=t.Date,o=t.Error,Ye=t.Function,Je=t.Math,et=t.Object,tt=t.RegExp,nt=t.String,rt=t.TypeError,ot=n.prototype,it=Ye.prototype,ut=et.prototype,at=t["__core-js_shared__"],lt=it.toString,ct=ut.hasOwnProperty,ft=0,st=function(){var e=/[^.]+$/.exec(at&&at.keys&&at.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),pt=ut.toString,dt=lt.call(et),ht=Lt._,vt=tt("^"+lt.call(ct).replace(Ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=jt?t.Buffer:i,mt=t.Symbol,bt=t.Uint8Array,xt=gt?gt.allocUnsafe:i,Ot=Sn(et.getPrototypeOf,et),Rt=et.create,At=ut.propertyIsEnumerable,Mt=ot.splice,It=mt?mt.isConcatSpreadable:i,Ft=mt?mt.iterator:i,Dt=mt?mt.toStringTag:i,on=function(){try{var e=Di(et,"defineProperty");return e({},"",{}),e}catch(e){}}(),dn=t.clearTimeout!==Lt.clearTimeout&&t.clearTimeout,In=r&&r.now!==Lt.Date.now&&r.now,jn=t.setTimeout!==Lt.setTimeout&&t.setTimeout,Fn=Je.ceil,Dn=Je.floor,Un=et.getOwnPropertySymbols,zn=gt?gt.isBuffer:i,Bn=t.isFinite,Wn=ot.join,$n=Sn(et.keys,et),Vn=Je.max,Hn=Je.min,qn=r.now,Gn=t.parseInt,Kn=Je.random,Zn=ot.reverse,Qn=Di(t,"DataView"),Xn=Di(t,"Map"),Yn=Di(t,"Promise"),Jn=Di(t,"Set"),er=Di(t,"WeakMap"),tr=Di(et,"create"),nr=er&&new er,rr={},or=fu(Qn),ir=fu(Xn),ur=fu(Yn),ar=fu(Jn),lr=fu(er),cr=mt?mt.prototype:i,fr=cr?cr.valueOf:i,sr=cr?cr.toString:i;function pr(e){if(Sa(e)&&!ga(e)&&!(e instanceof gr)){if(e instanceof vr)return e;if(ct.call(e,"__wrapped__"))return su(e)}return new vr(e)}var dr=function(){function e(){}return function(t){if(!Ta(t))return{};if(Rt)return Rt(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function hr(){}function vr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function gr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=F,this.__views__=[]}function mr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Mr(e,t,n,r,o,u){var a,l=t&p,c=t&d,f=t&h;if(n&&(a=o?n(e,r,o,u):n(e)),a!==i)return a;if(!Ta(e))return e;var s=ga(e);if(s){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return ni(e,a)}else{var v=Bi(e),g=v==K||v==Z;if(ba(e))return Qo(e,l);if(v==J||v==B||g&&!o){if(a=c||g?{}:$i(e),!l)return c?function(e,t){return ri(e,zi(e),t)}(e,function(e,t){return e&&ri(t,ol(t),e)}(a,e)):function(e,t){return ri(e,Ui(e),t)}(e,Nr(a,e))}else{if(!St[v])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case le:return Xo(e);case V:case H:return new r(+e);case ce:return function(e,t){var n=t?Xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case fe:case se:case pe:case de:case he:case ve:case ge:case me:case ye:return Yo(e,n);case Q:return new r;case X:case re:return new r(e);case te:return function(e){var t=new e.constructor(e.source,$e.exec(e));return t.lastIndex=e.lastIndex,t}(e);case ne:return new r;case oe:return function(e){return fr?et(fr.call(e)):{}}(e)}}(e,v,l)}}u||(u=new wr);var m=u.get(e);if(m)return m;u.set(e,a),Aa(e)?e.forEach(function(r){a.add(Mr(r,t,n,r,e,u))}):Oa(e)&&e.forEach(function(r,o){a.set(o,Mr(r,t,n,o,e,u))});var y=s?i:(f?c?Ri:Ni:c?ol:rl)(e);return Gt(y||e,function(r,o){y&&(r=e[o=r]),Sr(a,o,Mr(r,t,n,o,e,u))}),a}function Ir(e,t,n){var r=n.length;if(null==e)return!r;for(e=et(e);r--;){var o=n[r],u=t[o],a=e[o];if(a===i&&!(o in e)||!u(a))return!1}return!0}function jr(e,t,n){if("function"!=typeof e)throw new rt(l);return ru(function(){e.apply(i,n)},t)}function Fr(e,t,n,r){var o=-1,i=Xt,a=!0,l=e.length,c=[],f=t.length;if(!l)return c;n&&(t=Jt(t,mn(n))),r?(i=Yt,a=!1):t.length>=u&&(i=_n,a=!1,t=new br(t));e:for(;++o-1},yr.prototype.set=function(e,t){var n=this.__data__,r=Or(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},_r.prototype.clear=function(){this.size=0,this.__data__={hash:new mr,map:new(Xn||yr),string:new mr}},_r.prototype.delete=function(e){var t=ji(this,e).delete(e);return this.size-=t?1:0,t},_r.prototype.get=function(e){return ji(this,e).get(e)},_r.prototype.has=function(e){return ji(this,e).has(e)},_r.prototype.set=function(e,t){var n=ji(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},br.prototype.add=br.prototype.push=function(e){return this.__data__.set(e,c),this},br.prototype.has=function(e){return this.__data__.has(e)},wr.prototype.clear=function(){this.__data__=new yr,this.size=0},wr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},wr.prototype.get=function(e){return this.__data__.get(e)},wr.prototype.has=function(e){return this.__data__.has(e)},wr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof yr){var r=n.__data__;if(!Xn||r.length0&&n(a)?t>1?$r(a,t-1,n,r,o):en(o,a):r||(o[o.length]=a)}return o}var Vr=ai(),Hr=ai(!0);function qr(e,t){return e&&Vr(e,t,rl)}function Gr(e,t){return e&&Hr(e,t,rl)}function Kr(e,t){return Qt(t,function(t){return ka(e[t])})}function Zr(e,t){for(var n=0,r=(t=qo(t,e)).length;null!=e&&nt}function Jr(e,t){return null!=e&&ct.call(e,t)}function eo(e,t){return null!=e&&t in et(e)}function to(e,t,r){for(var o=r?Yt:Xt,u=e[0].length,a=e.length,l=a,c=n(a),f=1/0,s=[];l--;){var p=e[l];l&&t&&(p=Jt(p,mn(t))),f=Hn(p.length,f),c[l]=!r&&(t||u>=120&&p.length>=120)?new br(l&&p):i}p=e[0];var d=-1,h=c[0];e:for(;++d=a)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)})}function yo(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)a!==e&&Mt.call(a,l,1),Mt.call(e,l,1);return e}function bo(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Hi(o)?Mt.call(e,o,1):Do(e,o)}}return e}function wo(e,t){return e+Dn(Kn()*(t-e+1))}function xo(e,t){var n="";if(!e||t<1||t>M)return n;do{t%2&&(n+=e),(t=Dn(t/2))&&(e+=e)}while(t);return n}function ko(e,t){return ou(Ji(e,t,Pl),e+"")}function Eo(e){return kr(pl(e))}function Co(e,t){var n=pl(e);return au(n,Lr(t,0,n.length))}function To(e,t,n,r){if(!Ta(e))return e;for(var o=-1,u=(t=qo(t,e)).length,a=u-1,l=e;null!=l&&++oi?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var u=n(i);++o>>1,u=e[i];null!==u&&!Ma(u)&&(n?u<=t:u=u){var f=t?null:xi(e);if(f)return Pn(f);a=!1,o=_n,c=new br}else c=t?[]:l;e:for(;++r=r?e:No(e,t,n)}var Zo=dn||function(e){return Lt.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var n=e.length,r=xt?xt(n):new e.constructor(n);return e.copy(r),r}function Xo(e){var t=new e.constructor(e.byteLength);return new bt(t).set(new bt(e)),t}function Yo(e,t){var n=t?Xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Jo(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,u=Ma(e),a=t!==i,l=null===t,c=t==t,f=Ma(t);if(!l&&!f&&!u&&e>t||u&&a&&c&&!l&&!f||r&&a&&c||!n&&c||!o)return 1;if(!r&&!u&&!f&&e1?n[o-1]:i,a=o>2?n[2]:i;for(u=e.length>3&&"function"==typeof u?(o--,u):i,a&&qi(n[0],n[1],a)&&(u=o<3?i:u,o=1),t=et(t);++r-1?o[u?t[a]:a]:i}}function pi(e){return Pi(function(t){var n=t.length,r=n,o=vr.prototype.thru;for(e&&t.reverse();r--;){var u=t[r];if("function"!=typeof u)throw new rt(l);if(o&&!a&&"wrapper"==Li(u))var a=new vr([],!0)}for(r=a?r:n;++r1&&b.reverse(),p&&fl))return!1;var f=u.get(e);if(f&&u.get(t))return f==t;var s=-1,p=!0,d=n&g?new br:i;for(u.set(e,t),u.set(t,e);++s-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Fe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Gt(z,function(n){var r="_."+n[0];t&n[1]&&!Xt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(De);return t?t[1].split(Ue):[]}(r),n)))}function uu(e){var t=0,n=0;return function(){var r=qn(),o=N-(r-n);if(n=r,o>0){if(++t>=P)return arguments[0]}else t=0;return e.apply(i,arguments)}}function au(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return Ru(e,n="function"==typeof n?(e.pop(),n):i)});function Du(e){var t=pr(e);return t.__chain__=!0,t}function Uu(e,t){return t(e)}var zu=Pi(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Ar(t,e)};return!(t>1||this.__actions__.length)&&r instanceof gr&&Hi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Uu,args:[o],thisArg:i}),new vr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});var Bu=oi(function(e,t,n){ct.call(e,n)?++e[n]:Rr(e,n,1)});var Wu=si(vu),$u=si(gu);function Vu(e,t){return(ga(e)?Gt:Dr)(e,Ii(t,3))}function Hu(e,t){return(ga(e)?Kt:Ur)(e,Ii(t,3))}var qu=oi(function(e,t,n){ct.call(e,n)?e[n].push(t):Rr(e,n,[t])});var Gu=ko(function(e,t,r){var o=-1,i="function"==typeof t,u=ya(e)?n(e.length):[];return Dr(e,function(e){u[++o]=i?Ht(t,e,r):no(e,t,r)}),u}),Ku=oi(function(e,t,n){Rr(e,n,t)});function Zu(e,t){return(ga(e)?Jt:so)(e,Ii(t,3))}var Qu=oi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Xu=ko(function(e,t){if(null==e)return[];var n=t.length;return n>1&&qi(e,t[0],t[1])?t=[]:n>2&&qi(t[0],t[1],t[2])&&(t=[t[0]]),mo(e,$r(t,1),[])}),Yu=In||function(){return Lt.Date.now()};function Ju(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ei(e,E,i,i,i,i,t)}function ea(e,t){var n;if("function"!=typeof t)throw new rt(l);return e=za(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var ta=ko(function(e,t,n){var r=m;if(n.length){var o=On(n,Mi(ta));r|=x}return Ei(e,r,t,n,o)}),na=ko(function(e,t,n){var r=m|y;if(n.length){var o=On(n,Mi(na));r|=x}return Ei(t,r,e,n,o)});function ra(e,t,n){var r,o,u,a,c,f,s=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new rt(l);function v(t){var n=r,u=o;return r=o=i,s=t,a=e.apply(u,n)}function g(e){var n=e-f;return f===i||n>=t||n<0||d&&e-s>=u}function m(){var e=Yu();if(g(e))return y(e);c=ru(m,function(e){var n=t-(e-f);return d?Hn(n,u-(e-s)):n}(e))}function y(e){return c=i,h&&r?v(e):(r=o=i,a)}function _(){var e=Yu(),n=g(e);if(r=arguments,o=this,f=e,n){if(c===i)return function(e){return s=e,c=ru(m,t),p?v(e):a}(f);if(d)return Zo(c),c=ru(m,t),v(f)}return c===i&&(c=ru(m,t)),a}return t=Wa(t)||0,Ta(n)&&(p=!!n.leading,u=(d="maxWait"in n)?Vn(Wa(n.maxWait)||0,t):u,h="trailing"in n?!!n.trailing:h),_.cancel=function(){c!==i&&Zo(c),s=0,r=f=o=c=i},_.flush=function(){return c===i?a:y(Yu())},_}var oa=ko(function(e,t){return jr(e,1,t)}),ia=ko(function(e,t,n){return jr(e,Wa(t)||0,n)});function ua(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new rt(l);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=e.apply(this,r);return n.cache=i.set(o,u)||i,u};return n.cache=new(ua.Cache||_r),n}function aa(e){if("function"!=typeof e)throw new rt(l);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)}}ua.Cache=_r;var la=Go(function(e,t){var n=(t=1==t.length&&ga(t[0])?Jt(t[0],mn(Ii())):Jt($r(t,1),mn(Ii()))).length;return ko(function(r){for(var o=-1,i=Hn(r.length,n);++o=t}),va=ro(function(){return arguments}())?ro:function(e){return Sa(e)&&ct.call(e,"callee")&&!At.call(e,"callee")},ga=n.isArray,ma=Ut?mn(Ut):function(e){return Sa(e)&&Xr(e)==le};function ya(e){return null!=e&&Ca(e.length)&&!ka(e)}function _a(e){return Sa(e)&&ya(e)}var ba=zn||Wl,wa=zt?mn(zt):function(e){return Sa(e)&&Xr(e)==H};function xa(e){if(!Sa(e))return!1;var t=Xr(e);return t==G||t==q||"string"==typeof e.message&&"string"==typeof e.name&&!Na(e)}function ka(e){if(!Ta(e))return!1;var t=Xr(e);return t==K||t==Z||t==$||t==ee}function Ea(e){return"number"==typeof e&&e==za(e)}function Ca(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=M}function Ta(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Sa(e){return null!=e&&"object"==typeof e}var Oa=Bt?mn(Bt):function(e){return Sa(e)&&Bi(e)==Q};function Pa(e){return"number"==typeof e||Sa(e)&&Xr(e)==X}function Na(e){if(!Sa(e)||Xr(e)!=J)return!1;var t=Ot(e);if(null===t)return!0;var n=ct.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&<.call(n)==dt}var Ra=Wt?mn(Wt):function(e){return Sa(e)&&Xr(e)==te};var Aa=$t?mn($t):function(e){return Sa(e)&&Bi(e)==ne};function La(e){return"string"==typeof e||!ga(e)&&Sa(e)&&Xr(e)==re}function Ma(e){return"symbol"==typeof e||Sa(e)&&Xr(e)==oe}var Ia=Vt?mn(Vt):function(e){return Sa(e)&&Ca(e.length)&&!!Tt[Xr(e)]};var ja=_i(fo),Fa=_i(function(e,t){return e<=t});function Da(e){if(!e)return[];if(ya(e))return La(e)?An(e):ni(e);if(Ft&&e[Ft])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ft]());var t=Bi(e);return(t==Q?Tn:t==ne?Pn:pl)(e)}function Ua(e){return e?(e=Wa(e))===L||e===-L?(e<0?-1:1)*I:e==e?e:0:0===e?e:0}function za(e){var t=Ua(e),n=t%1;return t==t?n?t-n:t:0}function Ba(e){return e?Lr(za(e),0,F):0}function Wa(e){if("number"==typeof e)return e;if(Ma(e))return j;if(Ta(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ta(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Me,"");var n=He.test(e);return n||Ge.test(e)?Nt(e.slice(2),n?2:8):Ve.test(e)?j:+e}function $a(e){return ri(e,ol(e))}function Va(e){return null==e?"":jo(e)}var Ha=ii(function(e,t){if(Qi(t)||ya(t))ri(t,rl(t),e);else for(var n in t)ct.call(t,n)&&Sr(e,n,t[n])}),qa=ii(function(e,t){ri(t,ol(t),e)}),Ga=ii(function(e,t,n,r){ri(t,ol(t),e,r)}),Ka=ii(function(e,t,n,r){ri(t,rl(t),e,r)}),Za=Pi(Ar);var Qa=ko(function(e,t){e=et(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&qi(t[0],t[1],o)&&(r=1);++n1),t}),ri(e,Ri(e),n),r&&(n=Mr(n,p|d|h,Si));for(var o=t.length;o--;)Do(n,t[o]);return n});var ll=Pi(function(e,t){return null==e?{}:function(e,t){return yo(e,t,function(t,n){return Ja(e,n)})}(e,t)});function cl(e,t){if(null==e)return{};var n=Jt(Ri(e),function(e){return[e]});return t=Ii(t),yo(e,n,function(e,n){return t(e,n[0])})}var fl=ki(rl),sl=ki(ol);function pl(e){return null==e?[]:yn(e,rl(e))}var dl=ci(function(e,t,n){return t=t.toLowerCase(),e+(n?hl(t):t)});function hl(e){return xl(Va(e).toLowerCase())}function vl(e){return(e=Va(e))&&e.replace(Ze,xn).replace(_t,"")}var gl=ci(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),ml=ci(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),yl=li("toLowerCase");var _l=ci(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var bl=ci(function(e,t,n){return e+(n?" ":"")+xl(t)});var wl=ci(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),xl=li("toUpperCase");function kl(e,t,n){return e=Va(e),(t=n?i:t)===i?function(e){return kt.test(e)}(e)?function(e){return e.match(wt)||[]}(e):function(e){return e.match(ze)||[]}(e):e.match(t)||[]}var El=ko(function(e,t){try{return Ht(e,i,t)}catch(e){return xa(e)?e:new o(e)}}),Cl=Pi(function(e,t){return Gt(t,function(t){t=cu(t),Rr(e,t,ta(e[t],e))}),e});function Tl(e){return function(){return e}}var Sl=pi(),Ol=pi(!0);function Pl(e){return e}function Nl(e){return ao("function"==typeof e?e:Mr(e,p))}var Rl=ko(function(e,t){return function(n){return no(n,e,t)}}),Al=ko(function(e,t){return function(n){return no(e,n,t)}});function Ll(e,t,n){var r=rl(t),o=Kr(t,r);null!=n||Ta(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Kr(t,rl(t)));var i=!(Ta(n)&&"chain"in n&&!n.chain),u=ka(e);return Gt(o,function(n){var r=t[n];e[n]=r,u&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=ni(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function Ml(){}var Il=gi(Jt),jl=gi(Zt),Fl=gi(rn);function Dl(e){return Gi(e)?pn(cu(e)):function(e){return function(t){return Zr(t,e)}}(e)}var Ul=yi(),zl=yi(!0);function Bl(){return[]}function Wl(){return!1}var $l=vi(function(e,t){return e+t},0),Vl=wi("ceil"),Hl=vi(function(e,t){return e/t},1),ql=wi("floor");var Gl=vi(function(e,t){return e*t},1),Kl=wi("round"),Zl=vi(function(e,t){return e-t},0);return pr.after=function(e,t){if("function"!=typeof t)throw new rt(l);return e=za(e),function(){if(--e<1)return t.apply(this,arguments)}},pr.ary=Ju,pr.assign=Ha,pr.assignIn=qa,pr.assignInWith=Ga,pr.assignWith=Ka,pr.at=Za,pr.before=ea,pr.bind=ta,pr.bindAll=Cl,pr.bindKey=na,pr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ga(e)?e:[e]},pr.chain=Du,pr.chunk=function(e,t,r){t=(r?qi(e,t,r):t===i)?1:Vn(za(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var u=0,a=0,l=n(Fn(o/t));uo?0:o+n),(r=r===i||r>o?o:za(r))<0&&(r+=o),r=n>r?0:Ba(r);n>>0)?(e=Va(e))&&("string"==typeof t||null!=t&&!Ra(t))&&!(t=jo(t))&&Cn(e)?Ko(An(e),0,n):e.split(t,n):[]},pr.spread=function(e,t){if("function"!=typeof e)throw new rt(l);return t=null==t?0:Vn(za(t),0),ko(function(n){var r=n[t],o=Ko(n,0,t);return r&&en(o,r),Ht(e,this,o)})},pr.tail=function(e){var t=null==e?0:e.length;return t?No(e,1,t):[]},pr.take=function(e,t,n){return e&&e.length?No(e,0,(t=n||t===i?1:za(t))<0?0:t):[]},pr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?No(e,(t=r-(t=n||t===i?1:za(t)))<0?0:t,r):[]},pr.takeRightWhile=function(e,t){return e&&e.length?zo(e,Ii(t,3),!1,!0):[]},pr.takeWhile=function(e,t){return e&&e.length?zo(e,Ii(t,3)):[]},pr.tap=function(e,t){return t(e),e},pr.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new rt(l);return Ta(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ra(e,t,{leading:r,maxWait:t,trailing:o})},pr.thru=Uu,pr.toArray=Da,pr.toPairs=fl,pr.toPairsIn=sl,pr.toPath=function(e){return ga(e)?Jt(e,cu):Ma(e)?[e]:ni(lu(Va(e)))},pr.toPlainObject=$a,pr.transform=function(e,t,n){var r=ga(e),o=r||ba(e)||Ia(e);if(t=Ii(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Ta(e)&&ka(i)?dr(Ot(e)):{}}return(o?Gt:qr)(e,function(e,r,o){return t(n,e,r,o)}),n},pr.unary=function(e){return Ju(e,1)},pr.union=Su,pr.unionBy=Ou,pr.unionWith=Pu,pr.uniq=function(e){return e&&e.length?Fo(e):[]},pr.uniqBy=function(e,t){return e&&e.length?Fo(e,Ii(t,2)):[]},pr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Fo(e,i,t):[]},pr.unset=function(e,t){return null==e||Do(e,t)},pr.unzip=Nu,pr.unzipWith=Ru,pr.update=function(e,t,n){return null==e?e:Uo(e,t,Ho(n))},pr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Uo(e,t,Ho(n),r)},pr.values=pl,pr.valuesIn=function(e){return null==e?[]:yn(e,ol(e))},pr.without=Au,pr.words=kl,pr.wrap=function(e,t){return ca(Ho(t),e)},pr.xor=Lu,pr.xorBy=Mu,pr.xorWith=Iu,pr.zip=ju,pr.zipObject=function(e,t){return $o(e||[],t||[],Sr)},pr.zipObjectDeep=function(e,t){return $o(e||[],t||[],To)},pr.zipWith=Fu,pr.entries=fl,pr.entriesIn=sl,pr.extend=qa,pr.extendWith=Ga,Ll(pr,pr),pr.add=$l,pr.attempt=El,pr.camelCase=dl,pr.capitalize=hl,pr.ceil=Vl,pr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Wa(n))==n?n:0),t!==i&&(t=(t=Wa(t))==t?t:0),Lr(Wa(e),t,n)},pr.clone=function(e){return Mr(e,h)},pr.cloneDeep=function(e){return Mr(e,p|h)},pr.cloneDeepWith=function(e,t){return Mr(e,p|h,t="function"==typeof t?t:i)},pr.cloneWith=function(e,t){return Mr(e,h,t="function"==typeof t?t:i)},pr.conformsTo=function(e,t){return null==t||Ir(e,t,rl(t))},pr.deburr=vl,pr.defaultTo=function(e,t){return null==e||e!=e?t:e},pr.divide=Hl,pr.endsWith=function(e,t,n){e=Va(e),t=jo(t);var r=e.length,o=n=n===i?r:Lr(za(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},pr.eq=pa,pr.escape=function(e){return(e=Va(e))&&Ce.test(e)?e.replace(ke,kn):e},pr.escapeRegExp=function(e){return(e=Va(e))&&Le.test(e)?e.replace(Ae,"\\$&"):e},pr.every=function(e,t,n){var r=ga(e)?Zt:zr;return n&&qi(e,t,n)&&(t=i),r(e,Ii(t,3))},pr.find=Wu,pr.findIndex=vu,pr.findKey=function(e,t){return un(e,Ii(t,3),qr)},pr.findLast=$u,pr.findLastIndex=gu,pr.findLastKey=function(e,t){return un(e,Ii(t,3),Gr)},pr.floor=ql,pr.forEach=Vu,pr.forEachRight=Hu,pr.forIn=function(e,t){return null==e?e:Vr(e,Ii(t,3),ol)},pr.forInRight=function(e,t){return null==e?e:Hr(e,Ii(t,3),ol)},pr.forOwn=function(e,t){return e&&qr(e,Ii(t,3))},pr.forOwnRight=function(e,t){return e&&Gr(e,Ii(t,3))},pr.get=Ya,pr.gt=da,pr.gte=ha,pr.has=function(e,t){return null!=e&&Wi(e,t,Jr)},pr.hasIn=Ja,pr.head=yu,pr.identity=Pl,pr.includes=function(e,t,n,r){e=ya(e)?e:pl(e),n=n&&!r?za(n):0;var o=e.length;return n<0&&(n=Vn(o+n,0)),La(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&ln(e,t,n)>-1},pr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:za(n);return o<0&&(o=Vn(r+o,0)),ln(e,t,o)},pr.inRange=function(e,t,n){return t=Ua(t),n===i?(n=t,t=0):n=Ua(n),function(e,t,n){return e>=Hn(t,n)&&e=-M&&e<=M},pr.isSet=Aa,pr.isString=La,pr.isSymbol=Ma,pr.isTypedArray=Ia,pr.isUndefined=function(e){return e===i},pr.isWeakMap=function(e){return Sa(e)&&Bi(e)==ue},pr.isWeakSet=function(e){return Sa(e)&&Xr(e)==ae},pr.join=function(e,t){return null==e?"":Wn.call(e,t)},pr.kebabCase=gl,pr.last=xu,pr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=za(n))<0?Vn(r+o,0):Hn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):an(e,fn,o,!0)},pr.lowerCase=ml,pr.lowerFirst=yl,pr.lt=ja,pr.lte=Fa,pr.max=function(e){return e&&e.length?Br(e,Pl,Yr):i},pr.maxBy=function(e,t){return e&&e.length?Br(e,Ii(t,2),Yr):i},pr.mean=function(e){return sn(e,Pl)},pr.meanBy=function(e,t){return sn(e,Ii(t,2))},pr.min=function(e){return e&&e.length?Br(e,Pl,fo):i},pr.minBy=function(e,t){return e&&e.length?Br(e,Ii(t,2),fo):i},pr.stubArray=Bl,pr.stubFalse=Wl,pr.stubObject=function(){return{}},pr.stubString=function(){return""},pr.stubTrue=function(){return!0},pr.multiply=Gl,pr.nth=function(e,t){return e&&e.length?go(e,za(t)):i},pr.noConflict=function(){return Lt._===this&&(Lt._=ht),this},pr.noop=Ml,pr.now=Yu,pr.pad=function(e,t,n){e=Va(e);var r=(t=za(t))?Rn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return mi(Dn(o),n)+e+mi(Fn(o),n)},pr.padEnd=function(e,t,n){e=Va(e);var r=(t=za(t))?Rn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Kn();return Hn(e+o*(t-e+Pt("1e-"+((o+"").length-1))),t)}return wo(e,t)},pr.reduce=function(e,t,n){var r=ga(e)?tn:hn,o=arguments.length<3;return r(e,Ii(t,4),n,o,Dr)},pr.reduceRight=function(e,t,n){var r=ga(e)?nn:hn,o=arguments.length<3;return r(e,Ii(t,4),n,o,Ur)},pr.repeat=function(e,t,n){return t=(n?qi(e,t,n):t===i)?1:za(t),xo(Va(e),t)},pr.replace=function(){var e=arguments,t=Va(e[0]);return e.length<3?t:t.replace(e[1],e[2])},pr.result=function(e,t,n){var r=-1,o=(t=qo(t,e)).length;for(o||(o=1,e=i);++rM)return[];var n=F,r=Hn(e,F);t=Ii(t),e-=F;for(var o=gn(r,t);++n=u)return e;var l=n-Rn(r);if(l<1)return r;var c=a?Ko(a,0,l).join(""):e.slice(0,l);if(o===i)return c+r;if(a&&(l+=c.length-l),Ra(o)){if(e.slice(l).search(o)){var f,s=c;for(o.global||(o=tt(o.source,Va($e.exec(o))+"g")),o.lastIndex=0;f=o.exec(s);)var p=f.index;c=c.slice(0,p===i?l:p)}}else if(e.indexOf(jo(o),l)!=l){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+r},pr.unescape=function(e){return(e=Va(e))&&Ee.test(e)?e.replace(xe,Ln):e},pr.uniqueId=function(e){var t=++ft;return Va(e)+t},pr.upperCase=wl,pr.upperFirst=xl,pr.each=Vu,pr.eachRight=Hu,pr.first=yu,Ll(pr,function(){var e={};return qr(pr,function(t,n){ct.call(pr.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),pr.VERSION="4.17.15",Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){pr[e].placeholder=pr}),Gt(["drop","take"],function(e,t){gr.prototype[e]=function(n){n=n===i?1:Vn(za(n),0);var r=this.__filtered__&&!t?new gr(this):this.clone();return r.__filtered__?r.__takeCount__=Hn(n,r.__takeCount__):r.__views__.push({size:Hn(n,F),type:e+(r.__dir__<0?"Right":"")}),r},gr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Gt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==R||3==n;gr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ii(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Gt(["head","last"],function(e,t){var n="take"+(t?"Right":"");gr.prototype[e]=function(){return this[n](1).value()[0]}}),Gt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");gr.prototype[e]=function(){return this.__filtered__?new gr(this):this[n](1)}}),gr.prototype.compact=function(){return this.filter(Pl)},gr.prototype.find=function(e){return this.filter(e).head()},gr.prototype.findLast=function(e){return this.reverse().find(e)},gr.prototype.invokeMap=ko(function(e,t){return"function"==typeof e?new gr(this):this.map(function(n){return no(n,e,t)})}),gr.prototype.reject=function(e){return this.filter(aa(Ii(e)))},gr.prototype.slice=function(e,t){e=za(e);var n=this;return n.__filtered__&&(e>0||t<0)?new gr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=za(t))<0?n.dropRight(-t):n.take(t-e)),n)},gr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},gr.prototype.toArray=function(){return this.take(F)},qr(gr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=pr[r?"take"+("last"==t?"Right":""):t],u=r||/^find/.test(t);o&&(pr.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,l=t instanceof gr,c=a[0],f=l||ga(t),s=function(e){var t=o.apply(pr,en([e],a));return r&&p?t[0]:t};f&&n&&"function"==typeof c&&1!=c.length&&(l=f=!1);var p=this.__chain__,d=!!this.__actions__.length,h=u&&!p,v=l&&!d;if(!u&&f){t=v?t:new gr(this);var g=e.apply(t,a);return g.__actions__.push({func:Uu,args:[s],thisArg:i}),new vr(g,p)}return h&&v?e.apply(this,a):(g=this.thru(s),h?r?g.value()[0]:g.value():g)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);pr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(ga(o)?o:[],e)}return this[n](function(n){return t.apply(ga(n)?n:[],e)})}}),qr(gr.prototype,function(e,t){var n=pr[t];if(n){var r=n.name+"";ct.call(rr,r)||(rr[r]=[]),rr[r].push({name:t,func:n})}}),rr[di(i,y).name]=[{name:"wrapper",func:i}],gr.prototype.clone=function(){var e=new gr(this.__wrapped__);return e.__actions__=ni(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ni(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ni(this.__views__),e},gr.prototype.reverse=function(){if(this.__filtered__){var e=new gr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},gr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ga(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},pr.prototype.plant=function(e){for(var t,n=this;n instanceof hr;){var r=su(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},pr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof gr){var t=e;return this.__actions__.length&&(t=new gr(this)),(t=t.reverse()).__actions__.push({func:Uu,args:[Tu],thisArg:i}),new vr(t,this.__chain__)}return this.thru(Tu)},pr.prototype.toJSON=pr.prototype.valueOf=pr.prototype.value=function(){return Bo(this.__wrapped__,this.__actions__)},pr.prototype.first=pr.prototype.head,Ft&&(pr.prototype[Ft]=function(){return this}),pr}();Lt._=Mn,(o=function(){return Mn}.call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(this,n(12),n(38)(e))},,function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT -*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,u,a=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l-1,c=o.indexOf(t)>-1,f=u.indexOf(getComputedStyle(e,"").position)>-1;return n=c?e:f?e.offsetParent:e.parentNode,r=l?n.offsetHeight:n.offsetWidth,!c&&f&&(a=getComputedStyle(n,""),r-=l?parseFloat(a.paddingTop)+parseFloat(a.paddingBottom):parseFloat(a.paddingRight)+parseFloat(a.paddingLeft)),r},r.DPI="undefined"==typeof window?96:r.getCreatedElementWidth(document.body,{width:"1in"}),r.ifZeroThenOne=function(e){return 0===e?1:e},e.exports=r},function(e,t,n){"use strict";e.exports=n(26)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__RewireAPI__=t.__ResetDependency__=t.__set__=t.__Rewire__=t.__GetDependency__=t.__get__=t.RedBoxError=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;ne.width.value?t.width:e.width,height:r.default.parse(""+(e.height.value+t.height.value)+t.height.unit),text:t.text.length>e.text.length?t.text:e.text}}):d(t)}},function(e,t,n){"use strict"; +*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,u,a=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l-1,c=o.indexOf(t)>-1,f=u.indexOf(getComputedStyle(e,"").position)>-1;return n=c?e:f?e.offsetParent:e.parentNode,r=l?n.offsetHeight:n.offsetWidth,!c&&f&&(a=getComputedStyle(n,""),r-=l?parseFloat(a.paddingTop)+parseFloat(a.paddingBottom):parseFloat(a.paddingRight)+parseFloat(a.paddingLeft)),r},r.DPI="undefined"==typeof window?96:r.getCreatedElementWidth(document.body,{width:"1in"}),r.ifZeroThenOne=function(e){return 0===e?1:e},e.exports=r},function(e,t,n){"use strict";e.exports=n(25)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__RewireAPI__=t.__ResetDependency__=t.__set__=t.__Rewire__=t.__GetDependency__=t.__get__=t.RedBoxError=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;nN.length&&N.push(e)}function L(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var i=!1;if(null===e)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case l:case c:i=!0}}if(i)return n(r,e,""===t?"."+M(e,0):t),1;if(i=0,t=""===t?".":t+":",Array.isArray(e))for(var u=0;uN.length&&N.push(e)}function L(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var i=!1;if(null===e)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case l:case c:i=!0}}if(i)return n(r,e,""===t?"."+M(e,0):t),1;if(i=0,t=""===t?".":t+":",Array.isArray(e))for(var u=0;uthis.eventPool.length&&this.eventPool.push(e)}function ke(e){e.eventPool=[],e.getPooled=we,e.release=xe}u(be.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=a.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=a.thatReturnsTrue)},persist:function(){this.isPersistent=a.thatReturnsTrue},isPersistent:a.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t=Oe),Re=String.fromCharCode(32),Ae={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Le=!1;function Me(e,t){switch(e){case"keyup":return-1!==Te.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function je(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ie=!1;var Fe={eventTypes:Ae,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(Se)e:{switch(e){case"compositionstart":o=Ae.compositionStart;break e;case"compositionend":o=Ae.compositionEnd;break e;case"compositionupdate":o=Ae.compositionUpdate;break e}o=void 0}else Ie?Me(e,n)&&(o=Ae.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=Ae.compositionStart);return o?(Ne&&(Ie||o!==Ae.compositionStart?o===Ae.compositionEnd&&Ie&&(i=ge()):(ve._root=r,ve._startText=me(),Ie=!0)),o=Ee.getPooled(o,t,n,r),i?o.data=i:null!==(i=je(n))&&(o.data=i),ee(o),i=o):i=null,(e=Pe?function(e,t){switch(e){case"compositionend":return je(t);case"keypress":return 32!==t.which?null:(Le=!0,Re);case"textInput":return(e=t.data)===Re&&Le?null:e;default:return null}}(e,n):function(e,t){if(Ie)return"compositionend"===e||!Se&&Me(e,t)?(e=ge(),ve._root=null,ve._startText=null,ve._fallbackText=null,Ie=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1