!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("128-ui",[],t):"object"==typeof exports?exports["128-ui"]=t():e["128-ui"]=t()}(window,function(){return r={},e.m=t={0:function(e,t){e.exports=require("react")},2:function(e,t){e.exports=require("classnames")},22:function(e,t){e.exports=require("@material-ui/core")},3:function(e,t){e.exports=require("lodash")},5:function(e,t){e.exports=require("prop-types")},61:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(62);t.default=n.default},62:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=r(5),o=r(2),u=r(3),c=r(22),i="CaseSensitive",s="WholeWord",p="Regex",f=c.makeStyles(function(e){return{matched:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,borderRadius:3}}});function l(e){var t=e.text,r=e.searchString,a=e.matchTypes,c=f(),l=new Set(a),d=u.toString(t);if(/\S+/.test(r)){var m;if(l.has(p))try{m=new RegExp(r,"g")}catch(e){return n.createElement("span",{className:"ui-128 ui-128__match-text"},d)}else{var y=l.has(i)?"g":"ig",x=l.has(s)?"\\b".concat(u.escapeRegExp(r),"\\b"):u.escapeRegExp(r);m=new RegExp(x,y)}var h=d.split(m),b=d.match(m),g=u.map(h,function(e,t){return n.createElement("span",{className:"ui-128__match-text--unmatched",key:"unmatched/".concat(e,"/").concat(t)},e)}),_=u.map(b,function(e,t){return n.createElement("span",{className:o("ui-128__match-text--matched",c.matched),key:"matched/".concat(e,"/").concat(t)},e)}),v=u.chain(g).zip(_).flatten().value();return n.createElement("span",{className:"ui-128 ui-128__match-text"},v)}return n.createElement("span",{className:"ui-128 ui-128__match-text"},d)}l.propTypes={text:a.oneOfType([a.string,a.number]).isRequired,searchString:a.string.isRequired,matchTypes:a.arrayOf(a.oneOf([p,i,s]))},l.defaultProps={matchTypes:[]},t.default=l}},e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var a in t)e.d(n,a,function(e){return t[e]}.bind(null,a));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="",e(e.s=61);function e(n){if(r[n])return r[n].exports;var a=r[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var t,r});