mirror of
https://github.com/nomadic-labs/safesupport-chatbox
synced 2024-11-15 07:04:55 +00:00
120 lines
1.3 MiB
JavaScript
120 lines
1.3 MiB
JavaScript
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(541)},function(e,t,n){e.exports=n(578)()},function(e,t,n){var r=n(7),o=n(543);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(e,t,n){"use strict";var r=n(7),o=n(22),i=n(103),a=n(102),u=n(36),l=n(193),c=n(285),s=n(23),f=n(43),p=n(116),d=n(30),h=n(39),y=n(60),v=n(68),m=n(114),g=n(112),b=n(104),O=n(117),w=n(136),E=n(518),x=n(191),S=n(92),_=n(51),k=n(133),T=n(69),j=n(58),P=n(187),C=n(134),A=n(115),M=n(135),I=n(28),R=n(289),N=n(34),L=n(93),D=n(86),z=n(87).forEach,F=C("hidden"),B=I("toPrimitive"),H=D.set,U=D.getterFor("Symbol"),W=Object.prototype,K=o.Symbol,G=i("JSON","stringify"),V=S.f,q=_.f,$=E.f,Y=k.f,X=P("symbols"),J=P("op-symbols"),Z=P("string-to-symbol-registry"),Q=P("symbol-to-string-registry"),ee=P("wks"),te=o.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=u&&s((function(){return 7!=b(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=V(W,t);r&&delete W[t],q(e,t,n),r&&e!==W&&q(W,t,r)}:q,oe=function(e,t){var n=X[e]=b(K.prototype);return H(n,{type:"Symbol",tag:e,description:t}),u||(n.description=t),n},ie=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof K},ae=function(e,t,n){e===W&&ae(J,t,n),h(e);var r=m(t,!0);return h(n),f(X,r)?(n.enumerable?(f(e,F)&&e[F][r]&&(e[F][r]=!1),n=b(n,{enumerable:g(0,!1)})):(f(e,F)||q(e,F,g(1,{})),e[F][r]=!0),re(e,r,n)):q(e,r,n)},ue=function(e,t){h(e);var n=v(t),r=O(n).concat(fe(n));return z(r,(function(t){u&&!le.call(n,t)||ae(e,t,n[t])})),e},le=function(e){var t=m(e,!0),n=Y.call(this,t);return!(this===W&&f(X,t)&&!f(J,t))&&(!(n||!f(this,t)||!f(X,t)||f(this,F)&&this[F][t])||n)},ce=function(e,t){var n=v(e),r=m(t,!0);if(n!==W||!f(X,r)||f(J,r)){var o=V(n,r);return!o||!f(X,r)||f(n,F)&&n[F][r]||(o.enumerable=!0),o}},se=function(e){var t=$(v(e)),n=[];return z(t,(function(e){f(X,e)||f(A,e)||n.push(e)})),n},fe=function(e){var t=e===W,n=$(t?J:v(e)),r=[];return z(n,(function(e){!f(X,e)||t&&!f(W,e)||r.push(X[e])})),r};(l||(j((K=function(){if(this instanceof K)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=M(e),n=function(e){this===W&&n.call(J,e),f(this,F)&&f(this[F],t)&&(this[F][t]=!1),re(this,t,g(1,e))};return u&&ne&&re(W,t,{configurable:!0,set:n}),oe(t,e)}).prototype,"toString",(function(){return U(this).tag})),j(K,"withoutSetter",(function(e){return oe(M(e),e)})),k.f=le,_.f=ae,S.f=ce,w.f=E.f=se,x.f=fe,R.f=function(e){return oe(I(e),e)},u&&(q(K.prototype,"description",{configurable:!0,get:function(){return U(this).description}}),a||j(W,"propertyIsEnumerable",le,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:K}),z(O(ee),(function(e){N(e)})),r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=String(e);if(f(Z,t))return Z[t];var n=K(t);return Z[t]=n,Q[n]=t,n},keyFor:function(e){if(!ie(e))throw TypeError(e+" is not a symbol");if(f(Q,e))return Q[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!u},{create:function(e,t){return void 0===t?b(e):ue(b(e),t)},defineProperty:ae,defineProperties:ue,getOwnPropertyDescriptor:ce}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:se,getOwnPropertySymbols:fe}),r({target:"Object",stat:!0,forced:s((function(){x.f(1)}))},{getOwnPropertySymbols:function(e){return x.f(y(e))}}),G)&&r({target:"JSON",stat:!0,forced:!l||s((function(){var e=K();return"[null]"!=G([e])||"{}"!=G({a:e})||"{}"!=G(Object(e))}))},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(d(t)||void 0!==e)&&!ie(e))return p(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ie(t))return t}),o[1]=t,G.apply(null,o)}});K.prototype[B]||T(K.prototype,B,K.prototype.valueOf),L(K,"Symbol"),A[F]=!0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={styled:!0,createGlobal:!0,createReset:!0,lighten:!0,darken:!0};Object.defineProperty(t,"createGlobal",{enumerable:!0,g
|
||
|
/**!
|
||
|
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
||
|
* @version 1.16.1
|
||
|
* @license
|
||
|
* Copyright (c) 2016 Federico Zivolo and contributors
|
||
|
*
|
||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
|
* of this software and associated documentation files (the "Software"), to deal
|
||
|
* in the Software without restriction, including without limitation the rights
|
||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||
|
* copies of the Software, and to permit persons to whom the Software is
|
||
|
* furnished to do so, subject to the following conditions:
|
||
|
*
|
||
|
* The above copyright notice and this permission notice shall be included in all
|
||
|
* copies or substantial portions of the Software.
|
||
|
*
|
||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||
|
* SOFTWARE.
|
||
|
*/
|
||
|
var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var o=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function i(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function u(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:l(u(e))}function c(e){return e&&e.referenceNode?e.referenceNode:e}var s=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function p(e){return 11===e?s:10===e?f:s||f}function d(e){if(!e)return document.documentElement;for(var t=p(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?d(n):n:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function y(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,u,l=i.commonAncestorContainer;if(e!==l&&t!==l||r.contains(o))return"BODY"===(u=(a=l).nodeName)||"HTML"!==u&&d(a.firstElementChild)!==a?d(l):l;var c=h(e);return c.host?y(c.host,t):y(e,h(t).host)}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=v(t,"top"),o=v(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function g(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function b(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],p(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function O(e){var t=e.body,n=e.documentElement,r=p(10)&&getComputedStyle(n);return{height:b("Height",t,n,r),width:b("Width",t,n,r)}}var w=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},E=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),x=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function _(e){return S({},e,{right:e.left+e.width,bottom:e.top+e.height})}function k(e){var t={};try{if(p(10)){t=e.getBoundingClientRect();var n=v(e,"top"),r=v(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?O(e.ownerDocument):{},u=i.width||e.clientWidth||o.width,l=i.height||e.clientHeight||o.height,c=e.offsetWidth-u,s=e.offsetHeight-l;if(c||s){var f=a(e);c-=g(f,"x"),s-
|
||
|
/*
|
||
|
object-assign
|
||
|
(c) Sindre Sorhus
|
||
|
@license MIT
|
||
|
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}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,l=a(e),c=1;c<arguments.length;c++){for(var s in n=Object(arguments[c]))o.call(n,s)&&(l[s]=n[s]);if(r){u=r(n);for(var f=0;f<u.length;f++)i.call(n,u[f])&&(l[u[f]]=n[u[f]])}}return l}},function(e,t,n){"use strict";var r=n(87).forEach,o=n(95),i=n(61),a=o("forEach"),u=i("forEach");e.exports=a&&u?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var r=n(36),o=n(117),i=n(68),a=n(133).f,u=function(e){return function(t){for(var n,u=i(t),l=o(u),c=l.length,s=0,f=[];c>s;)n=l[s++],r&&!a.call(u,n)||f.push(e?[n,u[n]]:u[n]);return f}};e.exports={entries:u(!0),values:u(!1)}},function(e,t,n){"use strict";var r=n(103),o=n(51),i=n(28),a=n(36),u=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[u]&&n(t,u,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(28),o=n(119),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,t,n){var r=n(286),o=n(119),i=n(28)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){var r=n(39);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r=n(39),o=n(94),i=n(28)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},function(e,t,n){var r=n(195);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){"use strict";var r=n(94),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){"use strict";var r;n(54),n(77),Object.defineProperty(t,"__esModule",{value:!0}),t.isSupportedType=function(e){return!!Object.values(r).find((function(t){return t===e}))},t.types=void 0,t.types=r,function(e){e.TAB="tab",e.PANEL="panel",e.TOOL="tool",e.PREVIEW="preview",e.NOTES_ELEMENT="notes-element"}(r||(t.types=r={}))},function(e,t,n){"use strict";var r,o,i,a=n(201),u=n(69),l=n(43),c=n(28),s=n(102),f=c("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):p=!0),null==r&&(r={}),s||l(r,f)||u(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(e,t,n){var r=n(23);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){"use strict";var r=n(39);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var r=n(137),o=n(57),i=function(e){return function(t,n){var i,a,u=String(o(t)),l=r(n),c=u.length;return l<0||l>=c?e?
|
||
|
/*!
|
||
|
* https://github.com/es-shims/es5-shim
|
||
|
* @license es5-shim Copyright 2009-2015 by contributors, MIT License
|
||
|
* see https://github.com/es-shims/es5-shim/blob/master/LICENSE
|
||
|
*/!function(i,a){"use strict";void 0===(o="function"==typeof(r=function(){var e,t,n=Array,r=n.prototype,o=Object,i=o.prototype,a=Function,u=a.prototype,l=String,c=l.prototype,s=Number,f=s.prototype,p=r.slice,d=r.splice,h=r.push,y=r.unshift,v=r.concat,m=r.join,g=u.call,b=u.apply,O=Math.max,w=Math.min,E=i.toString,x="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,S=Function.prototype.toString,_=/^\s*class /,k=function(e){try{var t=S.call(e).replace(/\/\/.*\n/g,"").replace(/\/\*[.\s\S]*\*\//g,"").replace(/\n/gm," ").replace(/ {2}/g," ");return _.test(t)}catch(e){return!1}},T=function(e){try{return!k(e)&&(S.call(e),!0)}catch(e){return!1}},j="[object Function]",P="[object GeneratorFunction]",C=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(x)return T(e);if(k(e))return!1;var t=E.call(e);return t===j||t===P},A=RegExp.prototype.exec,M=function(e){try{return A.call(e),!0}catch(e){return!1}},I="[object RegExp]";e=function(e){return"object"==typeof e&&(x?M(e):E.call(e)===I)};var R=String.prototype.valueOf,N=function(e){try{return R.call(e),!0}catch(e){return!1}},L="[object String]";t=function(e){return"string"==typeof e||"object"==typeof e&&(x?N(e):E.call(e)===L)};var D=o.defineProperty&&function(){try{var e={};for(var t in o.defineProperty(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),z=(W=i.hasOwnProperty,K=D?function(e,t,n,r){!r&&t in e||o.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:n})}:function(e,t,n,r){!r&&t in e||(e[t]=n)},function(e,t,n){for(var r in t)W.call(t,r)&&K(e,r,t[r],n)}),F=function(e){var t=typeof e;return null===e||"object"!==t&&"function"!==t},B=s.isNaN||function(e){return e!=e},H={ToInteger:function(e){var t=+e;return B(t)?t=0:0!==t&&t!==1/0&&t!==-1/0&&(t=(t>0||-1)*Math.floor(Math.abs(t))),t},ToPrimitive:function(e){var t,n,r;if(F(e))return e;if(n=e.valueOf,C(n)&&(t=n.call(e),F(t)))return t;if(r=e.toString,C(r)&&(t=r.call(e),F(t)))return t;throw new TypeError},ToObject:function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return o(e)},ToUint32:function(e){return e>>>0}},U=function(){};var W,K;z(u,{bind:function(e){var t=this;if(!C(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,r=p.call(arguments,1),i=function(){if(this instanceof n){var i=b.call(t,this,v.call(r,p.call(arguments)));return o(i)===i?i:this}return b.call(t,e,v.call(r,p.call(arguments)))},u=O(0,t.length-r.length),l=[],c=0;c<u;c++)h.call(l,"$"+c);return n=a("binder","return function ("+m.call(l,",")+"){ return binder.apply(this, arguments); }")(i),t.prototype&&(U.prototype=t.prototype,n.prototype=new U,U.prototype=null),n}});var G=g.bind(i.hasOwnProperty),V=g.bind(i.toString),q=g.bind(p),$=b.bind(p);if("object"==typeof document&&document&&document.documentElement)try{q(document.documentElement.childNodes)}catch(e){var Y=q,X=$;q=function(e){for(var t=[],n=e.length;n-- >0;)t[n]=e[n];return X(t,Y(arguments,1))},$=function(e,t){return X(q(e),t)}}var J=g.bind(c.slice),Z=g.bind(c.split),Q=g.bind(c.indexOf),ee=g.bind(h),te=g.bind(i.propertyIsEnumerable),ne=g.bind(r.sort),re=n.isArray||function(e){return"[object Array]"===V(e)},oe=1!==[].unshift(0);z(r,{unshift:function(){return y.apply(this,arguments),this.length}},oe),z(n,{isArray:re});var ie=o("a"),ae="a"!==ie[0]||!(0 in ie),ue=function(e){var t=!0,n=!0,r=!1;if(e)try{e.call("foo",(function(e,n,r){"object"!=typeof r&&(t=!1)})),e.call([1],(function(){n="string"==typeof this}),"x")}catch(e){r=!0}return!!e&&!r&&t&&n};z(r,{forEach:function(e){var n,r=H.ToObject(this),o=ae&&t(this)?Z(this,""):r,i=-1,a=H.ToUint32(o.length);if(arguments.length>1&&(n=arguments[1]),!C(e))throw new TypeError("Array.prototype.forEach callback must be a function");for(;++i<a;)i in o&&(void 0===n?e(o[i],i,r):e.call(n,o[i],i,r))}},!ue(r.forEach)),z(r,{map:function(e){var r,o=H.ToObject(this),i=ae&&t(this)?Z(this,""):o,a=H.ToUint32(i.length),u=n(a);if(arguments.length>1&&(r=arguments[1]),!C(e))throw new TypeError("Array.prototype.map callback must be a function");for(va
|
||
|
/*!
|
||
|
* https://github.com/es-shims/es5-shim
|
||
|
* @license es5-shim Copyright 2009-2015 by contributors, MIT License
|
||
|
* see https://github.com/es-shims/es5-shim/blob/master/LICENSE
|
||
|
*/!function(i,a){"use strict";void 0===(o="function"==typeof(r=function(){var e,t,n,r,o=Function.call,i=Object.prototype,a=o.bind(i.hasOwnProperty),u=o.bind(i.propertyIsEnumerable),l=o.bind(i.toString),c=a(i,"__defineGetter__");c&&(e=o.bind(i.__defineGetter__),t=o.bind(i.__defineSetter__),n=o.bind(i.__lookupGetter__),r=o.bind(i.__lookupSetter__));var s=function(e){return null==e||"object"!=typeof e&&"function"!=typeof e};Object.getPrototypeOf||(Object.getPrototypeOf=function(e){var t=e.__proto__;return t||null===t?t:"[object Function]"===l(e.constructor)?e.constructor.prototype:e instanceof Object?i:null});var f=function(e){try{return e.sentinel=0,0===Object.getOwnPropertyDescriptor(e,"sentinel").value}catch(e){return!1}};if(Object.defineProperty){var p=f({});if(!("undefined"==typeof document||f(document.createElement("div")))||!p)var d=Object.getOwnPropertyDescriptor}if(!Object.getOwnPropertyDescriptor||d){Object.getOwnPropertyDescriptor=function(e,t){if(s(e))throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object: "+e);if(d)try{return d.call(Object,e,t)}catch(e){}var o;if(!a(e,t))return o;if(o={enumerable:u(e,t),configurable:!0},c){var l=e.__proto__,f=e!==i;f&&(e.__proto__=i);var p=n(e,t),h=r(e,t);if(f&&(e.__proto__=l),p||h)return p&&(o.get=p),h&&(o.set=h),o}return o.value=e[t],o.writable=!0,o}}Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){return Object.keys(e)});if(!Object.create){var h;h=!({__proto__:null}instanceof Object)||"undefined"==typeof document?function(){return{__proto__:null}}:function(){var e=function(){if(!document.domain)return!1;try{return!!new ActiveXObject("htmlfile")}catch(e){return!1}}()?function(){var e,t;return(t=new ActiveXObject("htmlfile")).write("<script><\/script>"),t.close(),e=t.parentWindow.Object.prototype,t=null,e}():function(){var e,t=document.createElement("iframe"),n=document.body||document.documentElement;return t.style.display="none",n.appendChild(t),t.src="javascript:",e=t.contentWindow.Object.prototype,n.removeChild(t),t=null,e}();delete e.constructor,delete e.hasOwnProperty,delete e.propertyIsEnumerable,delete e.isPrototypeOf,delete e.toLocaleString,delete e.toString,delete e.valueOf;var t=function(){};return t.prototype=e,h=function(){return new t},new t},Object.create=function(e,t){var n,r=function(){};if(null===e)n=h();else{if(null!==e&&s(e))throw new TypeError("Object prototype may only be an Object or null");r.prototype=e,(n=new r).__proto__=e}return void 0!==t&&Object.defineProperties(n,t),n}}var y=function(e){try{return Object.defineProperty(e,"sentinel",{}),"sentinel"in e}catch(e){return!1}};if(Object.defineProperty){var v=y({}),m="undefined"==typeof document||y(document.createElement("div"));if(!v||!m)var g=Object.defineProperty,b=Object.defineProperties}if(!Object.defineProperty||g){Object.defineProperty=function(o,a,u){if(s(o))throw new TypeError("Object.defineProperty called on non-object: "+o);if(s(u))throw new TypeError("Property description must be an object: "+u);if(g)try{return g.call(Object,o,a,u)}catch(e){}if("value"in u)if(c&&(n(o,a)||r(o,a))){var l=o.__proto__;o.__proto__=i,delete o[a],o[a]=u.value,o.__proto__=l}else o[a]=u.value;else{var f="get"in u,p="set"in u;if(!c&&(f||p))throw new TypeError("getters & setters can not be defined on this javascript engine");f&&e(o,a,u.get),p&&t(o,a,u.set)}return o}}Object.defineProperties&&!b||(Object.defineProperties=function(e,t){if(b)try{return b.call(Object,e,t)}catch(e){}return Object.keys(t).forEach((function(n){"__proto__"!==n&&Object.defineProperty(e,n,t[n])})),e});Object.seal||(Object.seal=function(e){if(Object(e)!==e)throw new TypeError("Object.seal can only be called on Objects.");return e});Object.freeze||(Object.freeze=function(e){if(Object(e)!==e)throw new TypeError("Object.freeze can only be called on Objects.");return e});try{Object.freeze((function(){}))}catch(e){Object.freeze=(O=Object.freeze,function(e){return"function"==typeof e?e:O(e)})}var O;Object.preventExtensions||(Object.preventExtensions=function(e){if(Object(e)!==e)throw new TypeError("Object.preventEx
|
||
|
/*!
|
||
|
* https://github.com/paulmillr/es6-shim
|
||
|
* @license es6-shim Copyright 2013-2016 by Paul Miller (http://paulmillr.com)
|
||
|
* and contributors, MIT License
|
||
|
* es6-shim: v0.35.4
|
||
|
* see https://github.com/paulmillr/es6-shim/blob/0.35.3/LICENSE
|
||
|
* Details and documentation:
|
||
|
* https://github.com/paulmillr/es6-shim/
|
||
|
*/void 0===(a="function"==typeof(i=function(){"use strict";var e,t=Function.call.bind(Function.apply),n=Function.call.bind(Function.call),i=Array.isArray,a=Object.keys,u=function(e){return function(){return!t(e,this,arguments)}},l=function(e){try{return e(),!1}catch(e){return!0}},c=function(e){try{return e()}catch(e){return!1}},s=u(l),f=function(){return!l((function(){return Object.defineProperty({},"x",{get:function(){}})}))},p=!!Object.defineProperty&&f(),d="foo"===function(){}.name,h=Function.call.bind(Array.prototype.forEach),y=Function.call.bind(Array.prototype.reduce),v=Function.call.bind(Array.prototype.filter),m=Function.call.bind(Array.prototype.some),g=function(e,t,n,r){!r&&t in e||(p?Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:n}):e[t]=n)},b=function(e,t,n){h(a(t),(function(r){var o=t[r];g(e,r,o,!!n)}))},O=Function.call.bind(Object.prototype.toString),w=function(e){return"function"==typeof e},E={getter:function(e,t,n){if(!p)throw new TypeError("getters require true ES5 support");Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get:n})},proxy:function(e,t,n){if(!p)throw new TypeError("getters require true ES5 support");var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,{configurable:r.configurable,enumerable:r.enumerable,get:function(){return e[t]},set:function(n){e[t]=n}})},redefine:function(e,t,n){if(p){var r=Object.getOwnPropertyDescriptor(e,t);r.value=n,Object.defineProperty(e,t,r)}else e[t]=n},defineByDescriptor:function(e,t,n){p?Object.defineProperty(e,t,n):"value"in n&&(e[t]=n.value)},preserveToString:function(e,t){t&&w(t.toString)&&g(e,"toString",t.toString.bind(t),!0)}},x=Object.create||function(e,t){var n=function(){};n.prototype=e;var r=new n;return void 0!==t&&a(t).forEach((function(e){E.defineByDescriptor(r,e,t[e])})),r},S=function(e,t){return!!Object.setPrototypeOf&&c((function(){var n=function t(n){var r=new e(n);return Object.setPrototypeOf(r,t.prototype),r};return Object.setPrototypeOf(n,e),n.prototype=x(e.prototype,{constructor:{value:n}}),t(n)}))},_=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r)return r;throw new Error("unable to locate global object")},k=_(),T=k.isFinite,j=Function.call.bind(String.prototype.indexOf),P=Function.apply.bind(Array.prototype.indexOf),C=Function.call.bind(Array.prototype.concat),A=Function.call.bind(String.prototype.slice),M=Function.call.bind(Array.prototype.push),I=Function.apply.bind(Array.prototype.push),R=Function.call.bind(Array.prototype.shift),N=Math.max,L=Math.min,D=Math.floor,z=Math.abs,F=Math.exp,B=Math.log,H=Math.sqrt,U=Function.call.bind(Object.prototype.hasOwnProperty),W=function(){},K=k.Map,G=K&&K.prototype.delete,V=K&&K.prototype.get,q=K&&K.prototype.has,$=K&&K.prototype.set,Y=k.Symbol||{},X=Y.species||"@@species",J=Number.isNaN||function(e){return e!=e},Z=Number.isFinite||function(e){return"number"==typeof e&&T(e)},Q=w(Math.sign)?Math.sign:function(e){var t=Number(e);return 0===t?t:J(t)?t:t<0?-1:1},ee=function(e){var t=Number(e);return t<-1||J(t)?NaN:0===t||t===1/0?t:-1===t?-1/0:1+t-1==0?t:t*(B(1+t)/(1+t-1))},te=function(e){return"[object Arguments]"===O(e)},ne=function(e){return null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==O(e)&&"[object Function]"===O(e.callee)},re=te(arguments)?te:ne,oe={primitive:function(e){return null===e||"function"!=typeof e&&"object"!=typeof e},string:function(e){return"[object String]"===O(e)},regex:function(e){return"[object RegExp]"===O(e)},symbol:function(e){return"function"==typeof k.Symbol&&"symbol"==typeof e}},ie=function(e,t,n){var r=e[t];g(e,t,n,!0),E.preserveToString(e[t],r)},ae="function"==typeof Y&&"function"==typeof Y.for&&oe.symbol(Y()),ue=oe.symbol(Y.iterator)?Y.iterator:"_es6-shim iterator_";k.Set&&"function"==typeof(new k.Set)["@@iterator"]&&(ue="@@iterator"),k.Reflect||g(k,"Reflect",{},!0);var le,ce=k.Reflect,se=String,fe="undefined"!=typeof document&&document?document.all:null,pe=null==fe?function(e){return null==e}:function(e){return null
|
||
|
/** @license React v16.12.0
|
||
|
* react.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var r=n(290),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,u=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,s=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.forward_ref"):60112,d=o?Symbol.for("react.suspense"):60113;o&&Symbol.for("react.suspense_list");var h=o?Symbol.for("react.memo"):60115,y=o?Symbol.for("react.lazy"):60116;o&&Symbol.for("react.fundamental"),o&&Symbol.for("react.responder"),o&&Symbol.for("react.scope");var v="function"==typeof Symbol&&Symbol.iterator;function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function O(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||g}function w(){}function E(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||g}O.prototype.isReactComponent={},O.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(m(85));this.updater.enqueueSetState(this,e,t,"setState")},O.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=O.prototype;var x=E.prototype=new w;x.constructor=E,r(x,O.prototype),x.isPureReactComponent=!0;var S={current:null},_={current:null},k=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function j(e,t,n){var r,o={},a=null,u=null;if(null!=t)for(r in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,r)&&!T.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var c=Array(l),s=0;s<l;s++)c[s]=arguments[s+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:u,props:o,_owner:_.current}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var C=/\/+/g,A=[];function M(e,t,n,r){if(A.length){var o=A.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function I(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>A.length&&A.push(e)}function R(e,t,n){return null==e?0:function e(t,n,r,o){var u=typeof t;"undefined"!==u&&"boolean"!==u||(t=null);var l=!1;if(null===t)l=!0;else switch(u){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case i:case a:l=!0}}if(l)return r(o,t,""===n?"."+N(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var s=n+N(u=t[c],c);l+=e(u,s,r,o)}else if(null===t||"object"!=typeof t?s=null:s="function"==typeof(s=v&&t[v]||t["@@iterator"])?s:null,"function"==typeof s)for(t=s.call(t),c=0;!(u=t.next()).done;)l+=e(u=u.value,s=n+N(u,c++),r,o);else if("object"===u)throw r=""+t,Error(m(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return l}(e,"",t,n)}function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function L(e,t){e.func.call(e.context,t,e.count++)}function D(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?z(e,r,n,(function(e){return e})):null!=e&&(P(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(C,"$&/")+"/")+n)),r.push(e))}function z(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(C,"$&/")+"/"),R(e,D,t=M(t,i,r,o)),I(t)}function F(){var e=S.current;if(null===e)throw Error(m(321));return e}var B={Children:{map:function(e,t,n){if(null==e)return e;var r=[];retur
|
||
|
/** @license React v16.12.0
|
||
|
* react-is.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,y=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,O=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case p:case a:case l:case u:case h:return e;default:switch(e=e&&e.$$typeof){case s:case d:case m:case v:case c:return e;default:return t}}case i:return t}}}function E(e){return w(e)===p}t.typeOf=w,t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=s,t.ContextProvider=c,t.Element=o,t.ForwardRef=d,t.Fragment=a,t.Lazy=m,t.Memo=v,t.Portal=i,t.Profiler=l,t.StrictMode=u,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===l||e===u||e===h||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===c||e.$$typeof===s||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===O)},t.isAsyncMode=function(e){return E(e)||w(e)===f},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===s},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===u},t.isSuspense=function(e){return w(e)===h}},function(e,t,n){"use strict";n(2),n(47),Object.defineProperty(t,"__esModule",{value:!0}),t.createGlobal=t.createReset=void 0;var r,o=(r=n(48))&&r.__esModule?r:{default:r};var i=(0,o.default)(1)((function(e){var t=e.typography;return{body:{fontFamily:t.fonts.base,fontSize:t.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:t.weight.regular,margin:0,padding:0},"button, input, textarea, select":{outline:"none",fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, em":{fontWeight:t.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:t.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:t.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}}));t.createReset=i;var a=(0,o.default)(1)((function(e){var t=e.color,n=e.background,r=e.typography,o=i({typography:r});return Object.assign({},o,{body:Object.assign({},o.body,{color:t.defaultText,background:n.app,overflow:"hidden"}),hr:Object.assign({},o.hr,{borderTop:"1px solid ".concat(t.border)})})}));t.createGlobal=a},function(e,t,n){"use strict";n(2),Object.defineProperty(t,"__esModule",{value:!0}),t.create=t.themes=void 0;var r=i(n(206)),o=i(n(570));function i(e){return e&&e.__esModule?e:{default:e}}var a={light:r.default,dark:o.default,normal:r.default};t.themes=a;t.create=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{base:"light"},t=arguments.length>1?arguments[1]:void 0,n=Object.assign({},a.light,{},a
|
||
|
/** @license React v16.12.0
|
||
|
* react-dom.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var r=n(0),o=n(290),i=n(661);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var u=null,l={};function c(){if(u)for(var e in l){var t=l[e],n=u.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!f[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in f[n]=t,n=t.eventTypes){var o=void 0,i=n[r],c=t,d=r;if(p.hasOwnProperty(d))throw Error(a(99,d));p[d]=i;var h=i.phasedRegistrationNames;if(h){for(o in h)h.hasOwnProperty(o)&&s(h[o],c,d);o=!0}else i.registrationName?(s(i.registrationName,c,d),o=!0):o=!1;if(!o)throw Error(a(98,r,e))}}}}function s(e,t,n){if(d[e])throw Error(a(100,e));d[e]=t,h[e]=t.eventTypes[n].dependencies}var f=[],p={},d={},h={};function y(e,t,n,r,o,i,a,u,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var v=!1,m=null,g=!1,b=null,O={onError:function(e){v=!0,m=e}};function w(e,t,n,r,o,i,a,u,l){v=!1,m=null,y.apply(O,arguments)}var E=null,x=null,S=null;function _(e,t,n){var r=e.type||"unknown-event";e.currentTarget=S(n),function(e,t,n,r,o,i,u,l,c){if(w.apply(this,arguments),v){if(!v)throw Error(a(198));var s=m;v=!1,m=null,g||(g=!0,b=s)}}(r,t,void 0,e),e.currentTarget=null}function k(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function T(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var j=null;function P(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)_(e,t[r],n[r]);else t&&_(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function C(e){if(null!==e&&(j=k(j,e)),e=j,j=null,e){if(T(e,P),j)throw Error(a(95));if(g)throw e=b,g=!1,b=null,e}}var A={injectEventPluginOrder:function(e){if(u)throw Error(a(101));u=Array.prototype.slice.call(e),c()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!l.hasOwnProperty(t)||l[t]!==r){if(l[t])throw Error(a(102,t));l[t]=r,n=!0}}n&&c()}};function M(e,t){var n=e.stateNode;if(!n)return null;var r=E(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var I=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;I.hasOwnProperty("ReactCurrentDispatcher")||(I.ReactCurrentDispatcher={current:null}),I.hasOwnProperty("ReactCurrentBatchConfig")||(I.ReactCurrentBatchConfig={suspense:null});var R=/^(.*)[\\\/]/,N="function"==typeof Symbol&&Symbol.for,L=N?Symbol.for("react.element"):60103,D=N?Symbol.for("react.portal"):60106,z=N?Symbol.for("react.fragment"):60107,F=N?Symbol.for("react.strict_mode"):60108,B=N?Symbol.for("react.profiler"):60114,H=N?Symbol.for("react.provider"):60109,U=N?Symbol.for("react.context"):60110,W=N?Symbol.for("react.concurrent_mode"):60111,K=N?Symbol.for("react.forward_ref"):60112,G=N?Symbol.for("react.suspense"):60113,V=N?Symbol.for("react.suspense_list"):60120,q=N?Symbol.for("react.memo"):60115,$=N?Symbol.for("react.lazy"):60116;N&&Symbol.for("react.fundamental"),N&&Symbol.for("react.responder"),N&&Symbol.for("react.scope");var Y="function"==typeof Symbol&&Symbol.iterator;function X(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Y&&e[Y]||e["@@iterator"])?e:null}function J(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case z:return"Fragment";case D:return"P
|
||
|
/** @license React v0.18.0
|
||
|
* scheduler.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var r,o,i,a,u;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,c=null,s=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(s,0),e}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(s,0))},o=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},a=function(){return!1},u=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,d=window.Date,h=window.setTimeout,y=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var m=d.now();t.unstable_now=function(){return d.now()-m}}var g=!1,b=null,O=-1,w=5,E=0;a=function(){return t.unstable_now()>=E},u=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,S=x.port2;x.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();E=e+w;try{b(!0,e)?S.postMessage(null):(g=!1,b=null)}catch(e){throw S.postMessage(null),e}}else g=!1},r=function(e){b=e,g||(g=!0,S.postMessage(null))},o=function(e,n){O=h((function(){e(t.unstable_now())}),n)},i=function(){y(O),O=-1}}function _(e,t){var n=e.length;e.push(t);e:for(;;){var r=Math.floor((n-1)/2),o=e[r];if(!(void 0!==o&&0<j(o,t)))break e;e[r]=t,e[n]=o,n=r}}function k(e){return void 0===(e=e[0])?null:e}function T(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],u=i+1,l=e[u];if(void 0!==a&&0>j(a,n))void 0!==l&&0>j(l,a)?(e[r]=l,e[u]=n,r=u):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==l&&0>j(l,n)))break e;e[r]=l,e[u]=n,r=u}}}return t}return null}function j(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],C=[],A=1,M=null,I=3,R=!1,N=!1,L=!1;function D(e){for(var t=k(C);null!==t;){if(null===t.callback)T(C);else{if(!(t.startTime<=e))break;T(C),t.sortIndex=t.expirationTime,_(P,t)}t=k(C)}}function z(e){if(L=!1,D(e),!N)if(null!==k(P))N=!0,r(F);else{var t=k(C);null!==t&&o(z,t.startTime-e)}}function F(e,n){N=!1,L&&(L=!1,i()),R=!0;var r=I;try{for(D(n),M=k(P);null!==M&&(!(M.expirationTime>n)||e&&!a());){var u=M.callback;if(null!==u){M.callback=null,I=M.priorityLevel;var l=u(M.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?M.callback=l:M===k(P)&&T(P),D(n)}else T(P);M=k(P)}if(null!==M)var c=!0;else{var s=k(C);null!==s&&o(z,s.startTime-n),c=!1}return c}finally{M=null,I=r,R=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var H=u;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_scheduleCallback=function(e,n,a){var u=t.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?u+l:u,a="number"==typeof a.timeout?a.timeout:B(e)}else a=B(e),l=u;return e={id:A++,callback:n,priorityLevel:e,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>u?(e.sortIndex=l,_(C,e),null===k(P)&&e===k(C)&&(L?i():L=!0,o(z,l-u))):(e.sortIndex=a,_(P,e),N||R||(N=!0,r(F))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallbac
|
||
|
//! stable.js 0.1.8, https://github.com/Two-Screen/stable
|
||
|
//! © 2018 Angry Bytes and contributors. MIT licensed.
|
||
|
e.exports=function(){"use strict";var e=function(e,n){return t(e.slice(),n)};function t(e,t){"function"!=typeof t&&(t=function(e,t){return String(e).localeCompare(t)});var r=e.length;if(r<=1)return e;for(var o=new Array(r),i=1;i<r;i*=2){n(e,t,i,o);var a=e;e=o,o=a}return e}e.inplace=function(e,r){var o=t(e,r);return o!==e&&n(o,null,e.length,e),e};var n=function(e,t,n,r){var o,i,a,u,l,c=e.length,s=0,f=2*n;for(o=0;o<c;o+=f)for(a=(i=o+n)+n,i>c&&(i=c),a>c&&(a=c),u=o,l=i;;)if(u<i&&l<a)t(e[u],e[l])<=0?r[s++]=e[u++]:r[s++]=e[l++];else if(u<i)r[s++]=e[u++];else{if(!(l<a))break;r[s++]=e[l++]}};return e}()},function(e,t,n){"use strict";n(20),n(121),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(70))&&r.__esModule?r:{default:r};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(t){var n=this,r=t.channel,i=t.storyStore,a=t.clientApi,u=t.clearDecorators;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._channel=void 0,this._storyStore=void 0,this._clearDecorators=void 0,this.clientApi=void 0,this.configure=function(e,t){t.hot&&(t.hot.accept(),t.hot.dispose((function(){n._clearDecorators()}))),n._channel?(!function(){var t=[];try{e&&e()}catch(e){t.push(e)}if(!t.length)try{n._renderMain()}catch(e){t.push(e)}if(t.length)throw n._storyStore.setSelection(void 0,t[0]),t[0];n._storyStore.setSelection(void 0,null)}(),setTimeout((function(){return n._channel.emit(o.default.STORIES_CONFIGURED)}),0)):e()},this._channel=r,this._storyStore=i,this._clearDecorators=u,this.clientApi=a}var t,n,r;return t=e,(n=[{key:"_renderMain",value:function(){this._storyStore.emit(o.default.STORY_INIT)}},{key:"_renderError",value:function(e){var t={stack:e.stack,message:e.message};this._storyStore.setSelection(void 0,t)}}])&&i(t.prototype,n),r&&i(t,r),e}();t.default=a},function(e,t,n){"use strict";n(32),n(64),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error("Invalid path '".concat(e,"', must start with '/story/'"));return t[1]}},function(e,t,n){"use strict";n(32),n(126),Object.defineProperty(t,"__esModule",{value:!0}),t.getQueryParam=t.getQueryParams=void 0;var r,o=n(26),i=(r=n(347))&&r.__esModule?r:{default:r};var a=function(){return o.document&&o.document.location&&o.document.location.search?i.default.parse(o.document.location.search,{ignoreQueryPrefix:!0}):{}};t.getQueryParams=a;t.getQueryParam=function(e){return a()[e]}},function(e,t,n){n(825).register()},function(e,t,n){"use strict";function r(e){return(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})(e)}n(38),Object.defineProperty(t,"__esModule",{value:!0}),t.register=void 0;var o,i=(o=n(88))&&o.__esModule?o:{default:o},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(826));function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}t.register=function(){i.default.register(a.ADDON_ID,(function(e){i.default.getChannel().on(a.default.REQUEST,(function(t){var n=t.kind,r=t.name,o=e.storyId(n,r);e.emit(a.default.RECEIVE,o)}))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ADDON_ID=void 0;var r="storybook/links";t.ADDON_ID=r;var o={NAVIGATE:"".concat(r,"/navigate"),REQUEST:"".concat(r,"/request"),RECEIVE:"".concat(r,"/receive")};t.default=o},function(e,t,n){"use strict";var r=n(26),o=a(n(373))
|
||
|
/*!
|
||
|
* isobject <https://github.com/jonschlinkert/isobject>
|
||
|
*
|
||
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||
|
* Released under the MIT License.
|
||
|
*/
|
||
|
function r(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}n.r(t),n.d(t,"default",(function(){return r}))},function(e,t,n){"use strict";n(42),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(238))&&r.__esModule?r:{default:r};var i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return(0,o.default)(e,t)}),{})};t.default=i},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var o;function i(e,t,n){var r=Object.keys(e);return r.indexOf(t)>=0?t:r.length?r[0]:n}n(3),n(10),n(12),n(35),n(9),n(16),n(11),n(17),n(2),n(20),n(44),n(6),n(8),n(21),n(13),n(37),n(14),Object.defineProperty(t,"__esModule",{value:!0}),t.ensurePanel=i,t.default=t.types=void 0,t.types=o,function(e){e.TAB="tab",e.PANEL="panel",e.TOOL="tool",e.PREVIEW="preview",e.NOTES_ELEMENT="notes-element"}(o||(t.types=o={}));t.default=function(e){var t=e.provider,n=e.store,a={getElements:function(e){return t.getElements(e)},getPanels:function(){return a.getElements(o.PANEL)},getStoryPanels:function(){var e=a.getPanels(),t=n.getState(),o=t.storyId,i=t.storiesHash,u=o&&i[o];if(!e||!u)return e;var l=u.parameters,c={};return Object.entries(e).forEach((function(e){var t=r(e,2),n=t[0],o=t[1],i=o.paramKey;i&&l&&l[i]&&l[i].disabled||(c[n]=o)})),c},getSelectedPanel:function(){var e=n.getState().selectedPanel;return i(a.getPanels(),e,e)},setSelectedPanel:function(e){n.setState({selectedPanel:e},{persistence:"session"})},setAddonState:function(e,t,r){var o,i,u,l,c=n.getState().addons;"function"==typeof t?o=t(a.getAddonState(e)):o=t;return n.setState({addons:Object.assign({},c,(i={},u=e,l=o,u in i?Object.defineProperty(i,u,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[u]=l,i))},r).then((function(){return a.getAddonState(e)}))},getAddonState:function(e){return n.getState().addons[e]}};return{api:a,state:{selectedPanel:i(a.getPanels(),n.getState().selectedPanel),addons:{}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(144))&&r.__esModule?r:{default:r},i=n(70);t.default=function(e){var t=e.provider,n={getChannel:function(){return t.channel},on:function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return r?t.channel.addPeerListener(e,n):t.channel.addListener(e,n),function(){return t.channel.removeListener(e,n)}},off:function(e,n){return t.channel.removeListener(e,n)},emit:function(e,n){return t.channel.emit(e,n)},once:function(e,n){return t.channel.once(e,n)},onStory:(0,o.default)((function(e){return n.on(i.STORY_CHANGED,e)}),"onStory(...) has been replaced with on(STORY_CHANGED, ...)")};return{api:n}}},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function o(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function i(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}n(3),n(10),n(12),n(19),n(63),n(54),n(56),n(16),n(11),n(17),n(8),n(21),n(13),n(14),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.store,n={addNotification:function(e){n.clearNotification(e.id);var a,u=t.getState().notifications;t.setState({notifications:[].concat((a=u,i(a)||o(a)||r()),[e])})},clearNotification:function(e){var n=t.getState().notifications;t.setState({notifications:n.filter((function(t){return t.id!==e}))});var r=n.find((function(t){return t.id===e}));r&&r.onClear&&r.onClear()}};return{api:n,state:{notifications:[]}}}},function(e,t,n
|
||
|
/*!
|
||
|
Copyright (c) 2017 Jed Watson.
|
||
|
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<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var u in r)n.call(r,u)&&r[u]&&e.push(u)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){var r=n(7),o=r.default,i=r.DraggableCore;e.exports=o,e.exports.default=o,e.exports.DraggableCore=i},function(e,t,n){"use strict";var r=n(6);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(0),a=n.n(i),u=n(2),l=n.n(u),c=n(3),s=n.n(c);function f(e,t){for(var n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function p(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)}function d(e){return"number"==typeof e&&!isNaN(e)}function h(e){return parseInt(e,10)}function y(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}var v=["Moz","Webkit","O","ms"];function m(e,t){return t?"".concat(t).concat(function(e){for(var t="",n=!0,r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}var g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window||void 0===window.document)return"";var t=window.document.documentElement.style;if(e in t)return"";for(var n=0;n<v.length;n++)if(m(e,v[n])in t)return v[n];return""}();function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w="";function E(e,t){return w||(w=f(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return p(e[t])}))),!!p(e[w])&&e[w](t)}function x(e,t,n){var r=e;do{if(E(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function S(e,t,n){e&&(e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener?e.addEventListener(t,n,!0):e["on"+t]=n)}function _(e,t,n){e&&(e.detachEvent?e.detachEvent("on"+t,n):e.removeEventListener?e.removeEventListener(t,n,!0):e["on"+t]=null)}function k(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t+=h(n.borderTopWidth))+h(n.borderBottomWidth)}function T(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t+=h(n.borderLeftWidth))+h(n.borderRightWidth)}function j(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t-=h(n.paddingTop))-h(n.paddingBottom)}function P(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t-=h(n.paddingLeft))-h(n.paddingRight)}function C(e,t,n){var r=e.x,o=e.y,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){var a="".concat("string"==typeof t.x?t.x:t.x+n),u="".concat("string"==typeof t.y?t.y:t.y+n);i="translate(".concat(a,", ").concat(u,")")+i}return i}function A(e){if(e){var t,n,r=e.getElementById("react-draggable-style-el");r||((r=e.createElement("style")).type="text/css",r.id="react-draggable
|
||
|
/*!
|
||
|
* Fuse.js v3.4.6 - Lightweight fuzzy-search (http://fusejs.io)
|
||
|
*
|
||
|
* Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)
|
||
|
* All Rights Reserved. Apache Software License 2.0
|
||
|
*
|
||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||
|
*/
|
||
|
e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t){e.exports=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){function r(e){return(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})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=n(2),a=n(8),u=n(0),l=function(){function e(t,n){var r=n.location,o=void 0===r?0:r,i=n.distance,u=void 0===i?100:i,l=n.threshold,c=void 0===l?.6:l,s=n.maxPatternLength,f=void 0===s?32:s,p=n.caseSensitive,d=void 0!==p&&p,h=n.tokenSeparator,y=void 0===h?/ +/g:h,v=n.findAllMatches,m=void 0!==v&&v,g=n.minMatchCharLength,b=void 0===g?1:g,O=n.id,w=void 0===O?null:O,E=n.keys,x=void 0===E?[]:E,S=n.shouldSort,_=void 0===S||S,k=n.getFn,T=void 0===k?a:k,j=n.sortFn,P=void 0===j?function(e,t){return e.score-t.score}:j,C=n.tokenize,A=void 0!==C&&C,M=n.matchAllTokens,I=void 0!==M&&M,R=n.includeMatches,N=void 0!==R&&R,L=n.includeScore,D=void 0!==L&&L,z=n.verbose,F=void 0!==z&&z;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={location:o,distance:u,threshold:c,maxPatternLength:f,isCaseSensitive:d,tokenSeparator:y,findAllMatches:m,minMatchCharLength:b,id:w,keys:x,includeMatches:N,includeScore:D,shouldSort:_,getFn:T,sortFn:P,verbose:F,tokenize:A,matchAllTokens:I},this.setCollection(t)}var t,n;return t=e,(n=[{key:"setCollection",value:function(e){return this.list=e,e}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{limit:!1};this._log('---------\nSearch pattern: "'.concat(e,'"'));var n=this._prepareSearchers(e),r=n.tokenSearchers,o=n.fullSearcher,i=this._search(r,o),a=i.weights,u=i.results;return this._computeScore(a,u),this.options.shouldSort&&this._sort(u),t.limit&&"number"==typeof t.limit&&(u=u.slice(0,t.limit)),this._format(u)}},{key:"_prepareSearchers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];if(this.options.tokenize)for(var n=e.split(this.options.tokenSeparator),r=0,o=n.length;r<o;r+=1)t.push(new i(n[r],this.options));return{tokenSearchers:t,fullSearcher:new i(e,this.options)}}},{key:"_search",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=this.list,r={},o=[];if("string"==typeof n[0]){for(var i=0,a=n.length;i<a;i+=1)this._analyze({key:"",value:n[i],record:i,index:i},{resultMap:r,results:o,tokenSearchers:e,fullSearcher:t});return{weights:null,results:o}}for(var u={},l=0,c=n.length;l<c;l+=1)for(var s=n[l],f=0,p=this.options.keys.length;f<p;f+=1){var d=this.options.keys[f];if("string"!=typeof d){if(u[d.name]={weight:1-d.weight||1},d.weight<=0||d.weight>1)throw new Error("Key weight has to be > 0 and <= 1");d=d.name}else u[d]={weight:1};this._analyze({key:d,value:this.options.getFn(s,d),record:s,index:l},{resultMap:r,results:o,tokenSearchers:e,fullSearcher:t})}r
|
||
|
/*!
|
||
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||
|
*
|
||
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||
|
* Released under the MIT License.
|
||
|
*/
|
||
|
function r(e){return!0==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t))&&"[object Object]"===Object.prototype.toString.call(e);
|
||
|
/*!
|
||
|
* isobject <https://github.com/jonschlinkert/isobject>
|
||
|
*
|
||
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||
|
* Released under the MIT License.
|
||
|
*/
|
||
|
var t}function o(e){var t,n;return!1!==r(e)&&("function"==typeof(t=e.constructor)&&(!1!==r(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}n.r(t),n.d(t,"default",(function(){return o}))}]]);
|