You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
58 KiB
1 line
58 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[72879],{84567:function(e,t,r){"use strict";r.d(t,{Z:function(){return O}});var n=r(94184),o=r.n(n),i=r(95860),a=r(67294),s=r(53124),l=r(98866),u=r(65223);var c=a.createContext(null),f=r(63185),d=r(45353),p=r(17415),h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const g=(e,t)=>{var r;const{prefixCls:n,className:g,rootClassName:v,children:m,indeterminate:y=!1,style:b,onMouseEnter:w,onMouseLeave:C,skipGroup:E=!1,disabled:P}=e,O=h(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:x,direction:S,checkbox:T}=a.useContext(s.E_),A=a.useContext(c),{isFormItemInput:R}=a.useContext(u.aM),M=a.useContext(l.Z),N=null!==(r=(null==A?void 0:A.disabled)||P)&&void 0!==r?r:M,L=a.useRef(O.value);a.useEffect((()=>{null==A||A.registerValue(O.value)}),[]),a.useEffect((()=>{if(!E)return O.value!==L.current&&(null==A||A.cancelValue(L.current),null==A||A.registerValue(O.value),L.current=O.value),()=>null==A?void 0:A.cancelValue(O.value)}),[O.value]);const B=x("checkbox",n),[k,_]=(0,f.ZP)(B),I=Object.assign({},O);A&&!E&&(I.onChange=function(){O.onChange&&O.onChange.apply(O,arguments),A.toggleOption&&A.toggleOption({label:m,value:O.value})},I.name=A.name,I.checked=A.value.includes(O.value));const j=o()(`${B}-wrapper`,{[`${B}-rtl`]:"rtl"===S,[`${B}-wrapper-checked`]:I.checked,[`${B}-wrapper-disabled`]:N,[`${B}-wrapper-in-form-item`]:R},null==T?void 0:T.className,g,v,_),D=o()({[`${B}-indeterminate`]:y},p.A,_),U=y?"mixed":void 0;return k(a.createElement(d.Z,{component:"Checkbox",disabled:N},a.createElement("label",{className:j,style:Object.assign(Object.assign({},null==T?void 0:T.style),b),onMouseEnter:w,onMouseLeave:C},a.createElement(i.Z,Object.assign({"aria-checked":U},I,{prefixCls:B,className:D,disabled:N,ref:t})),void 0!==m&&a.createElement("span",null,m))))};var v=a.forwardRef(g),m=r(74902),y=r(10366),b=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const w=(e,t)=>{const{defaultValue:r,children:n,options:i=[],prefixCls:l,className:u,rootClassName:d,style:p,onChange:h}=e,g=b(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:w,direction:C}=a.useContext(s.E_),[E,P]=a.useState(g.value||r||[]),[O,x]=a.useState([]);a.useEffect((()=>{"value"in g&&P(g.value||[])}),[g.value]);const S=a.useMemo((()=>i.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[i]),T=w("checkbox",l),A=`${T}-group`,[R,M]=(0,f.ZP)(T),N=(0,y.Z)(g,["value","disabled"]),L=i.length?S.map((e=>a.createElement(v,{prefixCls:T,key:e.value.toString(),disabled:"disabled"in e?e.disabled:g.disabled,value:e.value,checked:E.includes(e.value),onChange:e.onChange,className:`${A}-item`,style:e.style,title:e.title},e.label))):n,B={toggleOption:e=>{const t=E.indexOf(e.value),r=(0,m.Z)(E);-1===t?r.push(e.value):r.splice(t,1),"value"in g||P(r),null==h||h(r.filter((e=>O.includes(e))).sort(((e,t)=>S.findIndex((t=>t.value===e))-S.findIndex((e=>e.value===t)))))},value:E,disabled:g.disabled,name:g.name,registerValue:e=>{x((t=>[].concat((0,m.Z)(t),[e])))},cancelValue:e=>{x((t=>t.filter((t=>t!==e))))}},k=o()(A,{[`${A}-rtl`]:"rtl"===C},u,d,M);return R(a.createElement("div",Object.assign({className:k,style:p},N,{ref:t}),a.createElement(c.Provider,{value:B},L)))},C=a.forwardRef(w);var E=a.memo(C);const P=v;P.Group=E,P.__ANT_CHECKBOX=!0;var O=P},85418:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(56153),o=r(94184),i=r.n(o),a=r(67294),s=r(64582),l=r(71577),u=r(53124),c=r(93421),f=r(4173),d=r(66748),p=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const h=e=>{const{getPopupContainer:t,getPrefixCls:r,direction:o}=a.useContext(u.E_),{prefixCls:h,type:g="default",danger:v,disabled:m,loading:y,onClick:b,htmlType:w,children:C,className:E,menu:P,arrow:O,autoFocus:x,overlay:S,trigger:T,align:A,open:R,onOpenChange:M,placement:N,getPopupContainer:L,href:B,icon:k=a.createElement(s.Z,null),title:_,buttonsRender:I=(e=>e),mouseEnterDelay:j,mouseLeaveDelay:D,overlayClassName:U,overlayStyle:z,destroyPopupOnHide:Z,dropdownRender:F}=e,Y=p(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),$=r("dropdown",h),H=`${$}-button`,[V,K]=(0,d.Z)($),J={menu:P,arrow:O,autoFocus:x,align:A,disabled:m,trigger:m?[]:T,onOpenChange:M,getPopupContainer:L||t,mouseEnterDelay:j,mouseLeaveDelay:D,overlayClassName:U,overlayStyle:z,destroyPopupOnHide:Z,dropdownRender:F},{compactSize:q,compactItemClassnames:W}=(0,f.ri)($,o),Q=i()(H,W,E,K);"overlay"in e&&(J.overlay=S),"open"in e&&(J.open=R),J.placement="placement"in e?N:"rtl"===o?"bottomLeft":"bottomRight";const G=a.createElement(l.ZP,{type:g,danger:v,disabled:m,loading:y,onClick:b,htmlType:w,href:B,title:_},C),X=a.createElement(l.ZP,{type:g,danger:v,icon:k}),[ee,te]=I([G,X]);return V(a.createElement(c.Z.Compact,Object.assign({className:Q,size:q,block:!0},Y),ee,a.createElement(n.Z,Object.assign({},J),te)))};h.__ANT_BUTTON=!0;var g=h;const v=n.Z;v.Button=g;var m=v},11486:function(e,t,r){"use strict";r.d(t,{Z:function(){return B}});var n=r(94184),o=r.n(n),i=r(67294),a=r(53124),s=r(65223),l=r(47673);var u=e=>{const{getPrefixCls:t,direction:r}=(0,i.useContext)(a.E_),{prefixCls:n,className:u}=e,c=t("input-group",n),f=t("input"),[d,p]=(0,l.ZP)(f),h=o()(c,{[`${c}-lg`]:"large"===e.size,[`${c}-sm`]:"small"===e.size,[`${c}-compact`]:e.compact,[`${c}-rtl`]:"rtl"===r},p,u),g=(0,i.useContext)(s.aM),v=(0,i.useMemo)((()=>Object.assign(Object.assign({},g),{isFormItemInput:!1})),[g]);return d(i.createElement("span",{className:h,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},i.createElement(s.aM.Provider,{value:v},e.children)))},c=r(82586),f=r(87462),d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},p=r(44327),h=function(e,t){return i.createElement(p.Z,(0,f.Z)({},e,{ref:t,icon:d}))};var g=i.forwardRef(h),v=r(43481),m=r(10366),y=r(17799),b=r(72922),w=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const C=e=>e?i.createElement(v.Z,null):i.createElement(g,null),E={click:"onClick",hover:"onMouseOver"};var P=i.forwardRef(((e,t)=>{const{visibilityToggle:r=!0}=e,n="object"==typeof r&&void 0!==r.visible,[s,l]=(0,i.useState)((()=>!!n&&r.visible)),u=(0,i.useRef)(null);i.useEffect((()=>{n&&l(r.visible)}),[n,r]);const f=(0,b.Z)(u),d=()=>{const{disabled:t}=e;t||(s&&f(),l((e=>{var t;const n=!e;return"object"==typeof r&&(null===(t=r.onVisibleChange)||void 0===t||t.call(r,n)),n})))},{className:p,prefixCls:h,inputPrefixCls:g,size:v}=e,P=w(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:O}=i.useContext(a.E_),x=O("input",g),S=O("input-password",h),T=r&&(t=>{const{action:r="click",iconRender:n=C}=e,o=E[r]||"",a=n(s),l={[o]:d,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return i.cloneElement(i.isValidElement(a)?a:i.createElement("span",null,a),l)})(S),A=o()(S,p,{[`${S}-${v}`]:!!v}),R=Object.assign(Object.assign({},(0,m.Z)(P,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:A,prefixCls:x,suffix:T});return v&&(R.size=v),i.createElement(c.Z,Object.assign({ref:(0,y.sQ)(t,u)},R))})),O=r(42480),x=r(96159),S=r(71577),T=r(98675),A=r(4173),R=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};var M=i.forwardRef(((e,t)=>{const{prefixCls:r,inputPrefixCls:n,className:s,size:l,suffix:u,enterButton:f=!1,addonAfter:d,loading:p,disabled:h,onSearch:g,onChange:v,onCompositionStart:m,onCompositionEnd:b}=e,w=R(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:C,direction:E}=i.useContext(a.E_),P=i.useRef(!1),M=C("input-search",r),N=C("input",n),{compactSize:L}=(0,A.ri)(M,E),B=(0,T.Z)((e=>{var t;return null!==(t=null!=l?l:L)&&void 0!==t?t:e})),k=i.useRef(null),_=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},I=e=>{var t,r;g&&g(null===(r=null===(t=k.current)||void 0===t?void 0:t.input)||void 0===r?void 0:r.value,e,{source:"input"})},j="boolean"==typeof f?i.createElement(O.Z,null):null,D=`${M}-button`;let U;const z=f||{},Z=z.type&&!0===z.type.__ANT_BUTTON;U=Z||"button"===z.type?(0,x.Tm)(z,Object.assign({onMouseDown:_,onClick:e=>{var t,r;null===(r=null===(t=null==z?void 0:z.props)||void 0===t?void 0:t.onClick)||void 0===r||r.call(t,e),I(e)},key:"enterButton"},Z?{className:D,size:B}:{})):i.createElement(S.ZP,{className:D,type:f?"primary":void 0,size:B,disabled:h,key:"enterButton",onMouseDown:_,onClick:I,loading:p,icon:j},f),d&&(U=[U,(0,x.Tm)(d,{key:"addonAfter"})]);const F=o()(M,{[`${M}-rtl`]:"rtl"===E,[`${M}-${B}`]:!!B,[`${M}-with-button`]:!!f},s);return i.createElement(c.Z,Object.assign({ref:(0,y.sQ)(k,t),onPressEnter:e=>{P.current||p||I(e)}},w,{size:B,onCompositionStart:e=>{P.current=!0,null==m||m(e)},onCompositionEnd:e=>{P.current=!1,null==b||b(e)},prefixCls:N,addonAfter:U,suffix:u,onChange:e=>{e&&e.target&&"click"===e.type&&g&&g(e.target.value,e,{source:"clear"}),v&&v(e)},className:F,disabled:h}))})),N=r(96330);const L=c.Z;L.Group=u,L.Search=M,L.TextArea=N.Z,L.Password=P;var B=L},93421:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(67294),o=r(94184),i=r.n(o),a=r(37419),s=r(53124),l=r(4173);const u=n.createContext({latestIndex:0}),c=u.Provider;var f=e=>{let{className:t,index:r,children:o,split:i,style:a}=e;const{latestIndex:s}=n.useContext(u);return null==o?null:n.createElement(n.Fragment,null,n.createElement("div",{className:t,style:a},o),r<s&&i&&n.createElement("span",{className:`${t}-split`},i))},d=r(51916);function p(e){return["small","middle","large"].includes(e)}function h(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}var g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const v=n.forwardRef(((e,t)=>{var r,o;const{getPrefixCls:l,space:u,direction:v}=n.useContext(s.E_),{size:m=(null==u?void 0:u.size)||"small",align:y,className:b,rootClassName:w,children:C,direction:E="horizontal",prefixCls:P,split:O,style:x,wrap:S=!1,classNames:T,styles:A}=e,R=g(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[M,N]=Array.isArray(m)?m:[m,m],L=p(N),B=p(M),k=h(N),_=h(M),I=(0,a.Z)(C,{keepEmpty:!0}),j=void 0===y&&"horizontal"===E?"center":y,D=l("space",P),[U,z]=(0,d.Z)(D),Z=i()(D,null==u?void 0:u.className,z,`${D}-${E}`,{[`${D}-rtl`]:"rtl"===v,[`${D}-align-${j}`]:j,[`${D}-gap-row-${N}`]:L,[`${D}-gap-col-${M}`]:B},b,w),F=i()(`${D}-item`,null!==(r=null==T?void 0:T.item)&&void 0!==r?r:null===(o=null==u?void 0:u.classNames)||void 0===o?void 0:o.item);let Y=0;const $=I.map(((e,t)=>{var r,o;null!=e&&(Y=t);const i=e&&e.key||`${F}-${t}`;return n.createElement(f,{className:F,key:i,index:t,split:O,style:null!==(r=null==A?void 0:A.item)&&void 0!==r?r:null===(o=null==u?void 0:u.styles)||void 0===o?void 0:o.item},e)})),H=n.useMemo((()=>({latestIndex:Y})),[Y]);if(0===I.length)return null;const V={};return S&&(V.flexWrap="wrap"),!B&&_&&(V.columnGap=M),!L&&k&&(V.rowGap=N),U(n.createElement("div",Object.assign({ref:t,className:Z,style:Object.assign(Object.assign(Object.assign({},V),null==u?void 0:u.style),x)},R),n.createElement(c,{value:H},$)))}));const m=v;m.Compact=l.ZP;var y=m},68351:function(e,t,r){"use strict";var n=r(67294),o=r(8745),i=r(45741),a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const{TimePicker:s,RangePicker:l}=i.Z,u=n.forwardRef(((e,t)=>n.createElement(l,Object.assign({},e,{picker:"time",mode:void 0,ref:t})))),c=n.forwardRef(((e,t)=>{var{addon:r,renderExtraFooter:o}=e,i=a(e,["addon","renderExtraFooter"]);const l=n.useMemo((()=>o||(r||void 0)),[r,o]);return n.createElement(s,Object.assign({},i,{mode:void 0,ref:t,renderExtraFooter:l}))}));const f=(0,o.Z)(c,"picker");c._InternalPanelDoNotUseOrYouWillBeFired=f,c.RangePicker=u,c._InternalPanelDoNotUseOrYouWillBeFired=f,t.Z=c},43481:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(87462),o=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},a=r(44327),s=function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))};var l=o.forwardRef(s)},20640:function(e,t,r){"use strict";var n=r(11742),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,i,a,s,l,u,c=!1;t||(t={}),r=t.debug||!1;try{if(a=n(),s=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(u),s.selectNodeContents(u),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(n){r&&console.error("unable to copy using execCommand: ",n),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(n){r&&console.error("unable to copy using clipboardData: ",n),r&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return c}},65987:function(e){"use strict";var t={single_source_shortest_paths:function(e,r,n){var o={},i={};i[r]=0;var a,s,l,u,c,f,d,p=t.PriorityQueue.make();for(p.push(r,0);!p.empty();)for(l in s=(a=p.pop()).value,u=a.cost,c=e[s]||{})c.hasOwnProperty(l)&&(f=u+c[l],d=i[l],(void 0===i[l]||d>f)&&(i[l]=f,p.push(l,f),o[l]=s));if(void 0!==n&&void 0===i[n]){var h=["Could not find a path from ",r," to ",n,"."].join("");throw new Error(h)}return o},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t;n;)r.push(n),e[n],n=e[n];return r.reverse(),r},find_path:function(e,r,n){var o=t.single_source_shortest_paths(e,r,n);return t.extract_shortest_path_from_predecessor_list(o,n)},PriorityQueue:{make:function(e){var r,n=t.PriorityQueue,o={};for(r in e=e||{},n)n.hasOwnProperty(r)&&(o[r]=n[r]);return o.queue=[],o.sorter=e.sorter||n.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var r={value:e,cost:t};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},5826:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},92592:function(e,t,r){var n=r(47138),o=r(95115),i=r(6907),a=r(93776);function s(e,t,r,i,a){var s=[].slice.call(arguments,1),l=s.length,u="function"==typeof s[l-1];if(!u&&!n())throw new Error("Callback required as last argument");if(!u){if(l<1)throw new Error("Too few arguments provided");return 1===l?(r=t,t=i=void 0):2!==l||t.getContext||(i=r,r=t,t=void 0),new Promise((function(n,a){try{var s=o.create(r,i);n(e(s,t,i))}catch(e){a(e)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(a=r,r=t,t=i=void 0):3===l&&(t.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=r,r=t,t=void 0));try{var c=o.create(r,i);a(null,e(c,t,i))}catch(e){a(e)}}t.create=o.create,t.toCanvas=s.bind(null,i.render),t.toDataURL=s.bind(null,i.renderToDataURL),t.toString=s.bind(null,(function(e,t,r){return a.render(e,r)}))},47138:function(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},21845:function(e,t,r){var n=r(10242).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];for(var t=Math.floor(e/7)+2,r=n(e),o=145===r?26:2*Math.ceil((r-13)/(2*t-2)),i=[r-7],a=1;a<t-1;a++)i[a]=i[a-1]-o;return i.push(6),i.reverse()},t.getPositions=function(e){for(var r=[],n=t.getRowColCoords(e),o=n.length,i=0;i<o;i++)for(var a=0;a<o;a++)0===i&&0===a||0===i&&a===o-1||i===o-1&&0===a||r.push([n[i],n[a]]);return r}},8260:function(e,t,r){var n=r(76910),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(e){this.mode=n.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){var t;for(t=0;t+2<=this.data.length;t+=2){var r=45*o.indexOf(this.data[t]);r+=o.indexOf(this.data[t+1]),e.put(r,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},e.exports=i},97245:function(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var r=0;r<t;r++)this.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},73280:function(e,t,r){var n=r(99131);function o(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=n.alloc(e*e),this.reservedBit=n.alloc(e*e)}o.prototype.set=function(e,t,r,n){var o=e*this.size+t;this.data[o]=r,n&&(this.reservedBit[o]=!0)},o.prototype.get=function(e,t){return this.data[e*this.size+t]},o.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},o.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=o},43424:function(e,t,r){var n=r(99131),o=r(76910);function i(e){this.mode=o.BYTE,this.data=n.from(e)}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(var t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)},e.exports=i},35393:function(e,t,r){var n=r(64908),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case n.L:return o[4*(e-1)+0];case n.M:return o[4*(e-1)+1];case n.Q:return o[4*(e-1)+2];case n.H:return o[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case n.L:return i[4*(e-1)+0];case n.M:return i[4*(e-1)+1];case n.Q:return i[4*(e-1)+2];case n.H:return i[4*(e-1)+3];default:return}}},64908:function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return r}}},76526:function(e,t,r){var n=r(10242).getSymbolSize;t.getPositions=function(e){var t=n(e);return[[0,0],[t-7,0],[0,t-7]]}},2103:function(e,t,r){var n=r(10242),o=n.getBCHDigit(1335);t.getEncodedBits=function(e,t){for(var r=e.bit<<3|t,i=r<<10;n.getBCHDigit(i)-o>=0;)i^=1335<<n.getBCHDigit(i)-o;return 21522^(r<<10|i)}},69729:function(e,t,r){var n=r(99131),o=n.alloc(512),i=n.alloc(256);!function(){for(var e=1,t=0;t<255;t++)o[t]=e,i[e]=t,256&(e<<=1)&&(e^=285);for(t=255;t<512;t++)o[t]=o[t-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return i[e]},t.exp=function(e){return o[e]},t.mul=function(e,t){return 0===e||0===t?0:o[i[e]+i[t]]}},35442:function(e,t,r){var n=r(76910),o=r(10242);function i(e){this.mode=n.KANJI,this.data=e}i.getBitsLength=function(e){return 13*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){var t;for(t=0;t<this.data.length;t++){var r=o.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),e.put(r,13)}},e.exports=i},27126:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var r=3,n=3,o=40,i=10;function a(e,r,n){switch(e){case t.Patterns.PATTERN000:return(r+n)%2==0;case t.Patterns.PATTERN001:return r%2==0;case t.Patterns.PATTERN010:return n%3==0;case t.Patterns.PATTERN011:return(r+n)%3==0;case t.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2==0;case t.Patterns.PATTERN101:return r*n%2+r*n%3==0;case t.Patterns.PATTERN110:return(r*n%2+r*n%3)%2==0;case t.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){for(var t=e.size,n=0,o=0,i=0,a=null,s=null,l=0;l<t;l++){o=i=0,a=s=null;for(var u=0;u<t;u++){var c=e.get(l,u);c===a?o++:(o>=5&&(n+=r+(o-5)),a=c,o=1),(c=e.get(u,l))===s?i++:(i>=5&&(n+=r+(i-5)),s=c,i=1)}o>=5&&(n+=r+(o-5)),i>=5&&(n+=r+(i-5))}return n},t.getPenaltyN2=function(e){for(var t=e.size,r=0,o=0;o<t-1;o++)for(var i=0;i<t-1;i++){var a=e.get(o,i)+e.get(o,i+1)+e.get(o+1,i)+e.get(o+1,i+1);4!==a&&0!==a||r++}return r*n},t.getPenaltyN3=function(e){for(var t=e.size,r=0,n=0,i=0,a=0;a<t;a++){n=i=0;for(var s=0;s<t;s++)n=n<<1&2047|e.get(a,s),s>=10&&(1488===n||93===n)&&r++,i=i<<1&2047|e.get(s,a),s>=10&&(1488===i||93===i)&&r++}return r*o},t.getPenaltyN4=function(e){for(var t=0,r=e.data.length,n=0;n<r;n++)t+=e.data[n];return Math.abs(Math.ceil(100*t/r/5)-10)*i},t.applyMask=function(e,t){for(var r=t.size,n=0;n<r;n++)for(var o=0;o<r;o++)t.isReserved(o,n)||t.xor(o,n,a(e,o,n))},t.getBestMask=function(e,r){for(var n=Object.keys(t.Patterns).length,o=0,i=1/0,a=0;a<n;a++){r(a),t.applyMask(a,e);var s=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),s<i&&(i=s,o=a)}return o}},76910:function(e,t,r){var n=r(43114),o=r(7007);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!n.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return r}}},41085:function(e,t,r){var n=r(76910);function o(e){this.mode=n.NUMERIC,this.data=e.toString()}o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){var t,r,n;for(t=0;t+3<=this.data.length;t+=3)r=this.data.substr(t,3),n=parseInt(r,10),e.put(n,10);var o=this.data.length-t;o>0&&(r=this.data.substr(t),n=parseInt(r,10),e.put(n,3*o+1))},e.exports=o},26143:function(e,t,r){var n=r(99131),o=r(69729);t.mul=function(e,t){for(var r=n.alloc(e.length+t.length-1),i=0;i<e.length;i++)for(var a=0;a<t.length;a++)r[i+a]^=o.mul(e[i],t[a]);return r},t.mod=function(e,t){for(var r=n.from(e);r.length-t.length>=0;){for(var i=r[0],a=0;a<t.length;a++)r[a]^=o.mul(t[a],i);for(var s=0;s<r.length&&0===r[s];)s++;r=r.slice(s)}return r},t.generateECPolynomial=function(e){for(var r=n.from([1]),i=0;i<e;i++)r=t.mul(r,[1,o.exp(i)]);return r}},95115:function(e,t,r){var n=r(99131),o=r(10242),i=r(64908),a=r(97245),s=r(73280),l=r(21845),u=r(76526),c=r(27126),f=r(35393),d=r(52882),p=r(23103),h=r(2103),g=r(76910),v=r(16130),m=r(5826);function y(e,t,r){var n,o,i=e.size,a=h.getEncodedBits(t,r);for(n=0;n<15;n++)o=1==(a>>n&1),n<6?e.set(n,8,o,!0):n<8?e.set(n+1,8,o,!0):e.set(i-15+n,8,o,!0),n<8?e.set(8,i-n-1,o,!0):n<9?e.set(8,15-n-1+1,o,!0):e.set(8,15-n-1,o,!0);e.set(i-8,8,1,!0)}function b(e,t,r){var i=new a;r.forEach((function(t){i.put(t.mode.bit,4),i.put(t.getLength(),g.getCharCountIndicator(t.mode,e)),t.write(i)}));var s=8*(o.getSymbolTotalCodewords(e)-f.getTotalCodewordsCount(e,t));for(i.getLengthInBits()+4<=s&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);for(var l=(s-i.getLengthInBits())/8,u=0;u<l;u++)i.put(u%2?17:236,8);return function(e,t,r){for(var i=o.getSymbolTotalCodewords(t),a=f.getTotalCodewordsCount(t,r),s=i-a,l=f.getBlocksCount(t,r),u=l-i%l,c=Math.floor(i/l),p=Math.floor(s/l),h=p+1,g=c-p,v=new d(g),m=0,y=new Array(l),b=new Array(l),w=0,C=n.from(e.buffer),E=0;E<l;E++){var P=E<u?p:h;y[E]=C.slice(m,m+P),b[E]=v.encode(y[E]),m+=P,w=Math.max(w,P)}var O,x,S=n.alloc(i),T=0;for(O=0;O<w;O++)for(x=0;x<l;x++)O<y[x].length&&(S[T++]=y[x][O]);for(O=0;O<g;O++)for(x=0;x<l;x++)S[T++]=b[x][O];return S}(i,e,t)}function w(e,t,r,n){var i;if(m(e))i=v.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");var a=t;if(!a){var f=v.rawSplit(e);a=p.getBestVersionForData(f,r)}i=v.fromString(e,a||40)}var d=p.getBestVersionForData(i,r);if(!d)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<d)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+d+".\n")}else t=d;var h=b(t,r,i),g=o.getSymbolSize(t),w=new s(g);return function(e,t){for(var r=e.size,n=u.getPositions(t),o=0;o<n.length;o++)for(var i=n[o][0],a=n[o][1],s=-1;s<=7;s++)if(!(i+s<=-1||r<=i+s))for(var l=-1;l<=7;l++)a+l<=-1||r<=a+l||(s>=0&&s<=6&&(0===l||6===l)||l>=0&&l<=6&&(0===s||6===s)||s>=2&&s<=4&&l>=2&&l<=4?e.set(i+s,a+l,!0,!0):e.set(i+s,a+l,!1,!0))}(w,t),function(e){for(var t=e.size,r=8;r<t-8;r++){var n=r%2==0;e.set(r,6,n,!0),e.set(6,r,n,!0)}}(w),function(e,t){for(var r=l.getPositions(t),n=0;n<r.length;n++)for(var o=r[n][0],i=r[n][1],a=-2;a<=2;a++)for(var s=-2;s<=2;s++)-2===a||2===a||-2===s||2===s||0===a&&0===s?e.set(o+a,i+s,!0,!0):e.set(o+a,i+s,!1,!0)}(w,t),y(w,r,0),t>=7&&function(e,t){for(var r,n,o,i=e.size,a=p.getEncodedBits(t),s=0;s<18;s++)r=Math.floor(s/3),n=s%3+i-8-3,o=1==(a>>s&1),e.set(r,n,o,!0),e.set(n,r,o,!0)}(w,t),function(e,t){for(var r=e.size,n=-1,o=r-1,i=7,a=0,s=r-1;s>0;s-=2)for(6===s&&s--;;){for(var l=0;l<2;l++)if(!e.isReserved(o,s-l)){var u=!1;a<t.length&&(u=1==(t[a]>>>i&1)),e.set(o,s-l,u),-1==--i&&(a++,i=7)}if((o+=n)<0||r<=o){o-=n,n=-n;break}}}(w,h),isNaN(n)&&(n=c.getBestMask(w,y.bind(null,w,r))),c.applyMask(n,w),y(w,r,n),{modules:w,version:t,errorCorrectionLevel:r,maskPattern:n,segments:i}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");var r,n,a=i.M;return void 0!==t&&(a=i.from(t.errorCorrectionLevel,i.M),r=p.from(t.version),n=c.from(t.maskPattern),t.toSJISFunc&&o.setToSJISFunction(t.toSJISFunc)),w(e,r,a,n)}},52882:function(e,t,r){var n=r(99131),o=r(26143),i=r(48764).lW;function a(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}a.prototype.initialize=function(e){this.degree=e,this.genPoly=o.generateECPolynomial(this.degree)},a.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var t=n.alloc(this.degree),r=i.concat([e,t],e.length+this.degree),a=o.mod(r,this.genPoly),s=this.degree-a.length;if(s>0){var l=n.alloc(this.degree);return a.copy(l,s),l}return a},e.exports=a},7007:function(e,t){var r="[0-9]+",n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",o="(?:(?![A-Z0-9 $%*+\\-./:]|"+(n=n.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=new RegExp(n,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(o,"g"),t.NUMERIC=new RegExp(r,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var i=new RegExp("^"+n+"$"),a=new RegExp("^"+r+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return i.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},16130:function(e,t,r){var n=r(76910),o=r(41085),i=r(8260),a=r(43424),s=r(35442),l=r(7007),u=r(10242),c=r(65987);function f(e){return unescape(encodeURIComponent(e)).length}function d(e,t,r){for(var n,o=[];null!==(n=e.exec(r));)o.push({data:n[0],index:n.index,mode:t,length:n[0].length});return o}function p(e){var t,r,o=d(l.NUMERIC,n.NUMERIC,e),i=d(l.ALPHANUMERIC,n.ALPHANUMERIC,e);return u.isKanjiModeEnabled()?(t=d(l.BYTE,n.BYTE,e),r=d(l.KANJI,n.KANJI,e)):(t=d(l.BYTE_KANJI,n.BYTE,e),r=[]),o.concat(i,t,r).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function h(e,t){switch(t){case n.NUMERIC:return o.getBitsLength(e);case n.ALPHANUMERIC:return i.getBitsLength(e);case n.KANJI:return s.getBitsLength(e);case n.BYTE:return a.getBitsLength(e)}}function g(e,t){var r,l=n.getBestModeForData(e);if((r=n.from(t,l))!==n.BYTE&&r.bit<l.bit)throw new Error('"'+e+'" cannot be encoded with mode '+n.toString(r)+".\n Suggested mode is: "+n.toString(l));switch(r!==n.KANJI||u.isKanjiModeEnabled()||(r=n.BYTE),r){case n.NUMERIC:return new o(e);case n.ALPHANUMERIC:return new i(e);case n.KANJI:return new s(e);case n.BYTE:return new a(e)}}t.fromArray=function(e){return e.reduce((function(e,t){return"string"==typeof t?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e}),[])},t.fromString=function(e,r){for(var o=function(e){for(var t=[],r=0;r<e.length;r++){var o=e[r];switch(o.mode){case n.NUMERIC:t.push([o,{data:o.data,mode:n.ALPHANUMERIC,length:o.length},{data:o.data,mode:n.BYTE,length:o.length}]);break;case n.ALPHANUMERIC:t.push([o,{data:o.data,mode:n.BYTE,length:o.length}]);break;case n.KANJI:t.push([o,{data:o.data,mode:n.BYTE,length:f(o.data)}]);break;case n.BYTE:t.push([{data:o.data,mode:n.BYTE,length:f(o.data)}])}}return t}(p(e,u.isKanjiModeEnabled())),i=function(e,t){for(var r={},o={start:{}},i=["start"],a=0;a<e.length;a++){for(var s=e[a],l=[],u=0;u<s.length;u++){var c=s[u],f=""+a+u;l.push(f),r[f]={node:c,lastCount:0},o[f]={};for(var d=0;d<i.length;d++){var p=i[d];r[p]&&r[p].node.mode===c.mode?(o[p][f]=h(r[p].lastCount+c.length,c.mode)-h(r[p].lastCount,c.mode),r[p].lastCount+=c.length):(r[p]&&(r[p].lastCount=c.length),o[p][f]=h(c.length,c.mode)+4+n.getCharCountIndicator(c.mode,t))}}i=l}for(d=0;d<i.length;d++)o[i[d]].end=0;return{map:o,table:r}}(o,r),a=c.find_path(i.map,"start","end"),s=[],l=1;l<a.length-1;l++)s.push(i.table[a[l]].node);return t.fromArray(function(e){return e.reduce((function(e,t){var r=e.length-1>=0?e[e.length-1]:null;return r&&r.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(s))},t.rawSplit=function(e){return t.fromArray(p(e,u.isKanjiModeEnabled()))}},10242:function(e,t){var r,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return n[e]},t.getBCHDigit=function(e){for(var t=0;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');r=e},t.isKanjiModeEnabled=function(){return void 0!==r},t.toSJIS=function(e){return r(e)}},43114:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},23103:function(e,t,r){var n=r(10242),o=r(35393),i=r(64908),a=r(76910),s=r(43114),l=r(5826),u=n.getBCHDigit(7973);function c(e,t){return a.getCharCountIndicator(e,t)+4}function f(e,t){var r=0;return e.forEach((function(e){var n=c(e.mode,t);r+=n+e.getBitsLength()})),r}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,r){if(!s.isValid(e))throw new Error("Invalid QR Code version");void 0===r&&(r=a.BYTE);var i=8*(n.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,t));if(r===a.MIXED)return i;var l=i-c(r,e);switch(r){case a.NUMERIC:return Math.floor(l/10*3);case a.ALPHANUMERIC:return Math.floor(l/11*2);case a.KANJI:return Math.floor(l/13);case a.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,r){var n,o=i.from(r,i.M);if(l(e)){if(e.length>1)return function(e,r){for(var n=1;n<=40;n++)if(f(e,n)<=t.getCapacity(n,r,a.MIXED))return n}(e,o);if(0===e.length)return 1;n=e[0]}else n=e;return function(e,r,n){for(var o=1;o<=40;o++)if(r<=t.getCapacity(o,n,e))return o}(n.mode,n.getLength(),o)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");for(var t=e<<12;n.getBCHDigit(t)-u>=0;)t^=7973<<n.getBCHDigit(t)-u;return e<<12|t}},6907:function(e,t,r){var n=r(89653);t.render=function(e,t,r){var o=r,i=t;void 0!==o||t&&t.getContext||(o=t,t=void 0),t||(i=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),o=n.getOptions(o);var a=n.getImageWidth(e.modules.size,o),s=i.getContext("2d"),l=s.createImageData(a,a);return n.qrToImageData(l.data,e,o),function(e,t,r){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=r,t.width=r,t.style.height=r+"px",t.style.width=r+"px"}(s,i,a),s.putImageData(l,0,0),i},t.renderToDataURL=function(e,r,n){var o=n;void 0!==o||r&&r.getContext||(o=r,r=void 0),o||(o={});var i=t.render(e,r,o),a=o.type||"image/png",s=o.rendererOpts||{};return i.toDataURL(a,s.quality)}},93776:function(e,t,r){var n=r(89653);function o(e,t){var r=e.a/255,n=t+'="'+e.hex+'"';return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function i(e,t,r){var n=e+t;return void 0!==r&&(n+=" "+r),n}t.render=function(e,t,r){var a=n.getOptions(t),s=e.modules.size,l=e.modules.data,u=s+2*a.margin,c=a.color.light.a?"<path "+o(a.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",f="<path "+o(a.color.dark,"stroke")+' d="'+function(e,t,r){for(var n="",o=0,a=!1,s=0,l=0;l<e.length;l++){var u=Math.floor(l%t),c=Math.floor(l/t);u||a||(a=!0),e[l]?(s++,l>0&&u>0&&e[l-1]||(n+=a?i("M",u+r,.5+c+r):i("m",o,0),o=0,a=!1),u+1<t&&e[l+1]||(n+=i("h",s),s=0)):o++}return n}(l,s,a.margin)+'"/>',d='viewBox="0 0 '+u+" "+u+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+d+' shape-rendering="crispEdges">'+c+f+"</svg>\n";return"function"==typeof r&&r(null,p),p}},89653:function(e,t){function r(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");var r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});var t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:n,scale:n?4:o,margin:t,color:{dark:r(e.color.dark||"#000000ff"),light:r(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,r){var n=t.getScale(e,r);return Math.floor((e+2*r.margin)*n)},t.qrToImageData=function(e,r,n){for(var o=r.modules.size,i=r.modules.data,a=t.getScale(o,n),s=Math.floor((o+2*n.margin)*a),l=n.margin*a,u=[n.color.light,n.color.dark],c=0;c<s;c++)for(var f=0;f<s;f++){var d=4*(c*s+f),p=n.color.light;if(c>=l&&f>=l&&c<s-l&&f<s-l)p=u[i[Math.floor((c-l)/a)*o+Math.floor((f-l)/a)]?1:0];e[d++]=p.r,e[d++]=p.g,e[d++]=p.b,e[d]=p.a}}},99131:function(e,t,r){"use strict";var n=r(5826);i.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}();var o=i.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function i(e,t,r){return i.TYPED_ARRAY_SUPPORT||this instanceof i?"number"==typeof e?l(this,e):function(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');if("undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer)return function(e,t,r,n){if(r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");var o;o=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);i.TYPED_ARRAY_SUPPORT?o.__proto__=i.prototype:o=u(e,o);return o}(e,t,r,n);if("string"==typeof t)return function(e,t){var r=0|f(t),n=s(e,r),o=n.write(t);o!==r&&(n=n.slice(0,o));return n}(e,t);return function(e,t){if(i.isBuffer(t)){var r=0|a(t.length),n=s(e,r);return 0===n.length||t.copy(n,0,0,r),n}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(o=t.length)!=o?s(e,0):u(e,t);if("Buffer"===t.type&&Array.isArray(t.data))return u(e,t.data)}var o;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}(this,e,t,r):new i(e,t,r)}function a(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function s(e,t){var r;return i.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(t)).__proto__=i.prototype:(null===(r=e)&&(r=new i(t)),r.length=t),r}function l(e,t){var r=s(e,t<0?0:0|a(t));if(!i.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)r[n]=0;return r}function u(e,t){for(var r=t.length<0?0:0|a(t.length),n=s(e,r),o=0;o<r;o+=1)n[o]=255&t[o];return n}function c(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function f(e){return i.isBuffer(e)?e.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)?e.byteLength:("string"!=typeof e&&(e=""+e),0===e.length?0:c(e).length)}i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),i.prototype.write=function(e,t,r){void 0===t||void 0===r&&"string"==typeof t?(r=this.length,t=0):isFinite(t)&&(t|=0,isFinite(r)?r|=0:r=void 0);var n=this.length-t;if((void 0===r||r>n)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(e,t,r,n){return function(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}(c(t,e.length-r),e,r,n)}(this,e,t,r)},i.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),i.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=i.prototype;else{var o=t-e;r=new i(o,void 0);for(var a=0;a<o;++a)r[a]=this[a+e]}return r},i.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o,a=n-r;if(this===e&&r<t&&t<n)for(o=a-1;o>=0;--o)e[o+t]=this[o+r];else if(a<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),t);return a},i.prototype.fill=function(e,t,r){if("string"==typeof e){if("string"==typeof t?(t=0,r=this.length):"string"==typeof r&&(r=this.length),1===e.length){var n=e.charCodeAt(0);n<256&&(e=n)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=i.isBuffer(e)?e:new i(e),s=a.length;for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this},i.concat=function(e,t){if(!n(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s(null,0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var o=l(null,t),a=0;for(r=0;r<e.length;++r){var u=e[r];if(!i.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(o,a),a+=u.length}return o},i.byteLength=f,i.prototype._isBuffer=!0,i.isBuffer=function(e){return!(null==e||!e._isBuffer)},e.exports.alloc=function(e){var t=new i(e);return t.fill(0),t},e.exports.from=function(e){return new i(e)}},64217:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(1413),o="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),i="aria-",a="data-";function s(e,t){return 0===e.indexOf(t)}function l(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===r?{aria:!0,data:!0,attr:!0}:!0===r?{aria:!0}:(0,n.Z)({},r);var l={};return Object.keys(e).forEach((function(r){(t.aria&&("role"===r||s(r,i))||t.data&&s(r,a)||t.attr&&o.includes(r))&&(l[r]=e[r])})),l}},74300:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var n=i(r(67294)),o=i(r(20640));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="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},a(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?p(e):t}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=function(e){function t(){var e,r;u(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return g(p(r=f(this,(e=d(t)).call.apply(e,[this].concat(a)))),"onClick",(function(e){var t=r.props,i=t.text,a=t.onCopy,s=t.children,l=t.options,u=n.default.Children.only(s),c=(0,o.default)(i,l);a&&a(i,c),u&&u.props&&"function"==typeof u.props.onClick&&u.props.onClick(e)})),r}var r,i,a;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&&h(e,t)}(t,e),r=t,i=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),r=l(e,["text","onCopy","options","children"]),o=n.default.Children.only(t);return n.default.cloneElement(o,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(r,!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r,{onClick:this.onClick}))}}],i&&c(r.prototype,i),a&&c(r,a),t}(n.default.PureComponent);t.CopyToClipboard=v,g(v,"defaultProps",{onCopy:void 0,options:void 0})},74855:function(e,t,r){"use strict";var n=r(74300).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},57761:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r(67294),i=s(o),a=s(r(45697));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.scrollListener=r.scrollListener.bind(r),r.eventListenerOptions=r.eventListenerOptions.bind(r),r.mousewheelListener=r.mousewheelListener.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){var e=this.props.useCapture;return this.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,r=this.getParentElement(e),n=void 0;if(this.props.useWindow){var o=document.documentElement||document.body.parentNode||document.body,i=void 0!==t.pageYOffset?t.pageYOffset:o.scrollTop;n=this.props.isReverse?i:this.calculateOffset(e,i)}else n=this.props.isReverse?r.scrollTop:e.scrollHeight-r.scrollTop-r.clientHeight;n<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=r.scrollHeight,this.beforeScrollTop=r.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),r=t.children,n=t.element,o=t.hasMore,a=(t.initialLoad,t.isReverse),s=t.loader,l=(t.loadMore,t.pageStart,t.ref),u=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));u.ref=function(t){e.scrollComponent=t,l&&l(t)};var c=[r];return o&&(s?a?c.unshift(s):c.push(s):this.defaultLoader&&(a?c.unshift(this.defaultLoader):c.push(this.defaultLoader))),i.default.createElement(n,u,c)}}]),t}(o.Component);l.propTypes={children:a.default.node.isRequired,element:a.default.node,hasMore:a.default.bool,initialLoad:a.default.bool,isReverse:a.default.bool,loader:a.default.node,loadMore:a.default.func.isRequired,pageStart:a.default.number,ref:a.default.func,getScrollParent:a.default.func,threshold:a.default.number,useCapture:a.default.bool,useWindow:a.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},246:function(e,t,r){e.exports=r(57761)},11742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach((function(t){e.addRange(t)})),t&&t.focus()}}}}]); |