2 lines
13 KiB
JavaScript
2 lines
13 KiB
JavaScript
/*! For license information please see 78.dcc88498.chunk.js.LICENSE.txt */
|
|
(this.webpackJsonp=this.webpackJsonp||[]).push([[78],{"5GCO":function(e,t,r){"use strict";var n=r("Thnc"),i=r("T/97"),o=r("Y4yM"),a=r("x08Q"),s=TypeError,c="Reduce of empty array with no initial value",u=function(e){return function(t,r,u,l){var f=i(t),p=o(f),d=a(f);if(n(r),0===d&&u<2)throw new s(c);var h=e?d-1:0,v=e?-1:1;if(u<2)for(;;){if(h in p){l=p[h],h+=v;break}if(h+=v,e?h<0:d<=h)throw new s(c)}for(;e?h>=0:d>h;h+=v)h in p&&(l=r(l,p[h],h,f));return l}};e.exports={left:u(!1),right:u(!0)}},HlTd:function(e,t,r){"use strict";var n=r("Xgsc");e.exports=n},JUWB:function(e,t,r){"use strict";r("yBKE");var n=r("dktu");e.exports=n.Object.entries},KYsz:function(e,t,r){e.exports=r("fHRf")},MnKc:function(e,t,r){"use strict";var n=r("JUWB");e.exports=n},RLMD:function(e,t,r){"use strict";r("TAYc");var n=r("wY6U");e.exports=n("Array","reduce")},"S/P8":function(e,t,r){"use strict";var n=r("wbIY"),i=r("Bvq2"),o=r("zhhU"),a=r("V3kF"),s=r("oBZR"),c=r("pCEo"),u=o(r("cEPT").f),l=o([].push),f=n&&i((function(){var e=Object.create(null);return e[2]=2,!u(e,2)})),p=function(e){return function(t){for(var r,i=c(t),o=s(i),p=f&&null===a(i),d=o.length,h=0,v=[];d>h;)r=o[h++],n&&!(p?r in i:u(i,r))||l(v,e?[r,i[r]]:i[r]);return v}};e.exports={entries:p(!0),values:p(!1)}},TAYc:function(e,t,r){"use strict";var n=r("pevS"),i=r("5GCO").left,o=r("n2Hk"),a=r("93JC");n({target:"Array",proto:!0,forced:!r("1otG")&&a>79&&a<83||!o("reduce")},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},VbXa:function(e,t,r){var n=r("SksO");e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},Xgsc:function(e,t,r){"use strict";r("kQON"),r("b4mI");var n=r("wY6U");e.exports=n("Array","values")},fHRf:function(e,t,r){"use strict";var n=r("szfI");e.exports=n},i5y0:function(e,t,r){e.exports=r("MnKc")},j6J1:function(e,t,r){e.exports=r("yhWF")},szfI:function(e,t,r){"use strict";var n=r("Q3sF"),i=r("RLMD"),o=Array.prototype;e.exports=function(e){var t=e.reduce;return e===o||n(o,e)&&t===o.reduce?i:t}},"tA+R":function(e,t,r){"use strict";var n=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,i=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,o=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,a=/\\([\u000b\u0020-\u00ff])/g,s=/([\\"])/g,c=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function u(e){var t=String(e);if(o.test(t))return t;if(t.length>0&&!i.test(t))throw new TypeError("invalid parameter value");return'"'+t.replace(s,"\\$1")+'"'}function l(e){this.parameters=Object.create(null),this.type=e}t.format=function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var t=e.parameters,r=e.type;if(!r||!c.test(r))throw new TypeError("invalid type");var n=r;if(t&&"object"==typeof t)for(var i,a=Object.keys(t).sort(),s=0;s<a.length;s++){if(i=a[s],!o.test(i))throw new TypeError("invalid parameter name");n+="; "+i+"="+u(t[i])}return n},t.parse=function(e){if(!e)throw new TypeError("argument string is required");var t="object"==typeof e?function(e){var t;if("function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]),"string"!=typeof t)throw new TypeError("content-type header is missing from object");return t}(e):e;if("string"!=typeof t)throw new TypeError("argument string is required to be a string");var r=t.indexOf(";"),i=-1!==r?t.slice(0,r).trim():t.trim();if(!c.test(i))throw new TypeError("invalid media type");var o=new l(i.toLowerCase());if(-1!==r){var s,u,f;for(n.lastIndex=r;u=n.exec(t);){if(u.index!==r)throw new TypeError("invalid parameter format");r+=u[0].length,s=u[1].toLowerCase(),34===(f=u[2]).charCodeAt(0)&&-1!==(f=f.slice(1,-1)).indexOf("\\")&&(f=f.replace(a,"$1")),o.parameters[s]=f}if(r!==t.length)throw new TypeError("invalid parameter format")}return o}},y6dH:function(e,t,r){"use strict";r.d(t,"a",(function(){return k}));var n=r("8OQS"),i=r.n(n),o=r("pVnL"),a=r.n(o),s=r("VbXa"),c=r.n(s);function u(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var l=r("tA+R"),f=new Map,p=function(e){return e.cloneNode(!0)},d=function(){return"file:"===window.location.protocol},h=function(e,t,r){var n=new XMLHttpRequest;n.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&2===n.readyState){var t=n.getResponseHeader("Content-Type");if(!t)throw new Error("Content type not found");var i=Object(l.parse)(t).type;if("image/svg+xml"!==i&&"text/plain"!==i)throw new Error("Invalid content type: ".concat(i))}if(4===n.readyState){if(404===n.status||null===n.responseXML)throw new Error(d()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(!(200===n.status||d()&&0===n.status))throw new Error("There was a problem injecting the SVG: "+n.status+" "+n.statusText);r(null,n)}}catch(e){if(n.abort(),!(e instanceof Error))throw e;r(e,n)}},n.open("GET",e),n.withCredentials=t,n.overrideMimeType&&n.overrideMimeType("text/xml"),n.send()},v={},m=function(e,t){v[e]=v[e]||[],v[e].push(t)},w=function(e,t,r){if(f.has(e)){var n=f.get(e);if(void 0===n)return void m(e,r);if(n instanceof SVGSVGElement)return void r(null,p(n))}f.set(e,void 0),m(e,r),h(e,t,(function(t,r){var n;t?f.set(e,t):(null===(n=r.responseXML)||void 0===n?void 0:n.documentElement)instanceof SVGSVGElement&&f.set(e,r.responseXML.documentElement),function(e){for(var t=function(t,r){setTimeout((function(){if(Array.isArray(v[e])){var r=f.get(e),n=v[e][t];r instanceof SVGSVGElement&&n(null,p(r)),r instanceof Error&&n(r),t===v[e].length-1&&delete v[e]}}),0)},r=0,n=v[e].length;r<n;r++)t(r)}(e)}))},g=function(e,t,r){h(e,t,(function(e,t){var n;e?r(e):(null===(n=t.responseXML)||void 0===n?void 0:n.documentElement)instanceof SVGSVGElement&&r(null,t.responseXML.documentElement)}))},y=0,b=[],E={},A="http://www.w3.org/1999/xlink",S=function(e,t,r,n,i,o,a){var s=e.getAttribute("data-src")||e.getAttribute("src");if(s){if(-1!==b.indexOf(e))return b.splice(b.indexOf(e),1),void(e=null);b.push(e),e.setAttribute("src",""),(n?w:g)(s,i,(function(n,i){if(!i)return b.splice(b.indexOf(e),1),e=null,void a(n);var c=e.getAttribute("id");c&&i.setAttribute("id",c);var l=e.getAttribute("title");l&&i.setAttribute("title",l);var f=e.getAttribute("width");f&&i.setAttribute("width",f);var p=e.getAttribute("height");p&&i.setAttribute("height",p);var d=Array.from(new Set(u(u(u([],(i.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();i.setAttribute("class",d);var h=e.getAttribute("style");h&&i.setAttribute("style",h),i.setAttribute("data-src",s);var v=[].filter.call(e.attributes,(function(e){return/^data-\w[\w-]*$/.test(e.name)}));if(Array.prototype.forEach.call(v,(function(e){e.name&&e.value&&i.setAttribute(e.name,e.value)})),r){var m,w,g,S,x,R={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(R).forEach((function(e){m=e,g=R[e];for(var t=function(e,t){var r;S=w[e].id,x=S+"-"+ ++y,Array.prototype.forEach.call(g,(function(e){for(var t=0,n=(r=i.querySelectorAll("["+e+'*="'+S+'"]')).length;t<n;t++){var o=r[t].getAttribute(e);o&&!o.match(new RegExp('url\\("?#'+S+'"?\\)'))||r[t].setAttribute(e,"url(#"+x+")")}}));for(var n=i.querySelectorAll("[*|href]"),o=[],a=0,s=n.length;a<s;a++){var c=n[a].getAttributeNS(A,"href");c&&c.toString()==="#"+w[e].id&&o.push(n[a])}for(var u=0,l=o.length;u<l;u++)o[u].setAttributeNS(A,"href","#"+x);w[e].id=x},r=0,n=(w=i.querySelectorAll(m+"[id]")).length;r<n;r++)t(r)}))}i.removeAttribute("xmlns:a");for(var j,k,C=i.querySelectorAll("script"),T=[],I=0,O=C.length;I<O;I++)(k=C[I].getAttribute("type"))&&"application/ecmascript"!==k&&"application/javascript"!==k&&"text/javascript"!==k||((j=C[I].innerText||C[I].textContent)&&T.push(j),i.removeChild(C[I]));if(T.length>0&&("always"===t||"once"===t&&!E[s])){for(var q=0,G=T.length;q<G;q++)new Function(T[q])(window);E[s]=!0}var M=i.querySelectorAll("style");if(Array.prototype.forEach.call(M,(function(e){e.textContent+=""})),i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("xmlns:xlink",A),o(i),!e.parentNode)return b.splice(b.indexOf(e),1),e=null,void a(new Error("Parent node is null"));e.parentNode.replaceChild(i,e),b.splice(b.indexOf(e),1),e=null,a(null,i)}))}else a(new Error("Invalid data-src or src attribute"))},x=r("17x9"),R=r("cDcd"),j=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],k=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).initialState={hasError:!1,isLoading:!0},t.state=t.initialState,t._isMounted=!1,t.reactWrapper=void 0,t.nonReactWrapper=void 0,t.refCallback=function(e){t.reactWrapper=e},t}c()(t,e);var r=t.prototype;return r.renderSVG=function(){var e,t=this;if(this.reactWrapper instanceof(e=this.reactWrapper,((null==e?void 0:e.ownerDocument)||document).defaultView||window).Node){var r,n,i=this.props,o=i.desc,a=i.evalScripts,s=i.httpRequestWithCredentials,c=i.renumerateIRIElements,u=i.src,l=i.title,f=i.useRequestCache,p=this.props.onError,d=this.props.beforeInjection,h=this.props.afterInjection,v=this.props.wrapper;"svg"===v?((r=document.createElementNS("http://www.w3.org/2000/svg",v)).setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),n=document.createElementNS("http://www.w3.org/2000/svg",v)):(r=document.createElement(v),n=document.createElement(v)),r.appendChild(n),n.dataset.src=u,this.nonReactWrapper=this.reactWrapper.appendChild(r);var m=function(e){t.removeSVG(),t._isMounted?t.setState((function(){return{hasError:!0,isLoading:!1}}),(function(){p(e)})):p(e)};!function(e,t){var r=void 0===t?{}:t,n=r.afterAll,i=void 0===n?function(){}:n,o=r.afterEach,a=void 0===o?function(){}:o,s=r.beforeEach,c=void 0===s?function(){}:s,u=r.cacheRequests,l=void 0===u||u,f=r.evalScripts,p=void 0===f?"never":f,d=r.httpRequestWithCredentials,h=void 0!==d&&d,v=r.renumerateIRIElements,m=void 0===v||v;if(e&&"length"in e)for(var w=0,g=0,y=e.length;g<y;g++)S(e[g],p,m,l,h,c,(function(t,r){a(t,r),e&&"length"in e&&e.length===++w&&i(w)}));else e?S(e,p,m,l,h,c,(function(t,r){a(t,r),i(1),e=null})):i(0)}(n,{afterEach:function(e,r){e?m(e):t._isMounted&&t.setState((function(){return{isLoading:!1}}),(function(){try{h(r)}catch(e){m(e)}}))},beforeEach:function(e){if(e.setAttribute("role","img"),o){var t=e.querySelector(":scope > desc");t&&e.removeChild(t);var r=document.createElement("desc");r.innerHTML=o,e.prepend(r)}if(l){var n=e.querySelector(":scope > title");n&&e.removeChild(n);var i=document.createElement("title");i.innerHTML=l,e.prepend(i)}try{d(e)}catch(e){m(e)}},cacheRequests:f,evalScripts:a,httpRequestWithCredentials:s,renumerateIRIElements:c})}},r.removeSVG=function(){var e;null!=(e=this.nonReactWrapper)&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},r.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},r.componentDidUpdate=function(e){var t=this;(function(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1})(a()({},e),this.props)&&this.setState((function(){return t.initialState}),(function(){t.removeSVG(),t.renderSVG()}))},r.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},r.render=function(){var e=this.props;e.afterInjection,e.beforeInjection,e.desc,e.evalScripts;var t=e.fallback;e.httpRequestWithCredentials;var r=e.loading;e.renumerateIRIElements,e.src,e.title,e.useRequestCache;var n=e.wrapper,o=i()(e,j),s=n;return R.createElement(s,a()({},o,{ref:this.refCallback},"svg"===n?{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"}:{}),this.state.isLoading&&r&&R.createElement(r,null),this.state.hasError&&t&&R.createElement(t,null))},t}(R.Component);k.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},k.propTypes={afterInjection:x.func,beforeInjection:x.func,desc:x.string,evalScripts:x.oneOf(["always","once","never"]),fallback:x.oneOfType([x.func,x.object,x.string]),httpRequestWithCredentials:x.bool,loading:x.oneOfType([x.func,x.object,x.string]),onError:x.func,renumerateIRIElements:x.bool,src:x.string.isRequired,title:x.string,useRequestCache:x.bool,wrapper:x.oneOf(["div","span","svg"])}},yBKE:function(e,t,r){"use strict";var n=r("pevS"),i=r("S/P8").entries;n({target:"Object",stat:!0},{entries:function(e){return i(e)}})},yhWF:function(e,t,r){"use strict";r("UUWy");var n=r("j5XY"),i=r("Dm96"),o=r("Q3sF"),a=r("HlTd"),s=Array.prototype,c={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.values;return e===s||o(s,e)&&t===s.values||i(c,n(e))?a:t}}}]); |